The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

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

View previous topic View next topic Go down

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

Post by Van-Helsing on 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

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.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 on 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');
});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://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 on May 2nd 2014, 3:59 pm

Hi Ange,
Thank you very much its working perfectly.

Best Regards,
Dark-Avenger

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.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 on 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

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://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 on May 2nd 2014, 4:06 pm

Thank you very much Ange its amazing.
:wouhou:

Best Regards,
Dark-Avenger

Van-Helsing
Hyperactive

Male Posts : 2198
Reputation : 82
Language : English, Greek

http://helpgr.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 on May 2nd 2014, 4:09 pm

You're welcome Very Happy

Topic solved and archived

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


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