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.

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

2 posters

Go down

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

Post by Van-Helsing 2/5/2014, 08:47

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 2/5/2014, 09:00; edited 1 time in total
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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

Post by Ange Tuteur 2/5/2014, 08:55

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');
});
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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

Post by Van-Helsing 2/5/2014, 08:59

Hi Ange,
Thank you very much its working perfectly.

Best Regards,
Dark-Avenger
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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

Post by Ange Tuteur 2/5/2014, 09:02

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
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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

Post by Van-Helsing 2/5/2014, 09:06

Thank you very much Ange its amazing.
 :wouhou: 

Best Regards,
Dark-Avenger
Van-Helsing
Van-Helsing
Hyperactive

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

http://itexperts.forumgreek.com/

Back to top Go down

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

Post by Ange Tuteur 2/5/2014, 09:09

You're welcome Very Happy

Topic solved and archived
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum