How can I change the background of Stickies, Announcements Global Announcements table? Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.
2 posters

    How can I change the background of Stickies, Announcements Global Announcements table?

    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    Solved How can I change the background of Stickies, Announcements Global Announcements table?

    Post by Van-Helsing May 2nd 2014, 3:47 pm

    Hi all,
    How can I change the background of Stickies, Announcements and Global Announcements table http://prntscr.com/3fg0hm ? My forum version is Punbb.

    Best Regards,
    Dark-Avenger


    Last edited by Dark-Avenger on May 2nd 2014, 4:00 pm; edited 1 time in total
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: How can I change the background of Stickies, Announcements Global Announcements table?

    Post by Ange Tuteur May 2nd 2014, 3:55 pm

    Hello Dark-Avenger,

    Try this :
    Administration Panel > Modules > Javascript codes management > create a new script

    Title : what you wish
    Placement : in the sub forums, or all pages if you want
    Paste the code below and save :
    Code:
    $(function() {
        $('.statused tr:contains(Global announcement:)').css('background-color','#FFDF8F');
    });
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    Solved Re: How can I change the background of Stickies, Announcements Global Announcements table?

    Post by Van-Helsing May 2nd 2014, 3:59 pm

    Hi Ange,
    Thank you very much its working perfectly.

    Best Regards,
    Dark-Avenger
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: How can I change the background of Stickies, Announcements Global Announcements table?

    Post by Ange Tuteur May 2nd 2014, 4:02 pm

    If you want to create it for others you must do the following.

    Copy the declaration for the global and double it :
    Code:
    $(function() {
        $('.statused tr:contains(Global announcement:)').css('background-color','#FFDF8F');
        $('.statused tr:contains(Global announcement:)').css('background-color','#FFDF8F');
    });

    Lastly just change Global announcement: to the other texts of one of your topic icons.
    Code:
    $(function() {
        $('.statused tr:contains(Global announcement:)').css('background-color','#FFDF8F');
        $('.statused tr:contains(Sticky:)').css('background-color','green');
    });

    Don't forget to change the color too ! Razz
    Van-Helsing
    Van-Helsing
    Hyperactive


    Male Posts : 2431
    Reputation : 116
    Language : English, Greek

    Solved Re: How can I change the background of Stickies, Announcements Global Announcements table?

    Post by Van-Helsing May 2nd 2014, 4:06 pm

    Thank you very much Ange its amazing.
     :wouhou: 

    Best Regards,
    Dark-Avenger
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: How can I change the background of Stickies, Announcements Global Announcements table?

    Post by Ange Tuteur May 2nd 2014, 4:09 pm

    You're welcome Very Happy

    Topic solved and archived