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.

Adding more color to an already colored post?

View previous topic View next topic Go down

Solved Adding more color to an already colored post?

Post by MDillon on March 8th 2014, 12:27 am

So, I followed this tutorial recently http://help.forumotion.com/t127662-how-to-change-post-text-background-color-change and I had a few issues that have been solved...

However, my question now? On my posts, I have three color setups. Administrator posts are gold and moderators are seperated into green and light grey...

How do I go about altering the above code to apply it to the bar under the post that has the online button, the message button and profile button? All of which are directly under the post.

Any help is gladly appreciated...


Last edited by MDillon on March 8th 2014, 2:38 am; edited 1 time in total

MDillon
New Member

Posts : 6
Reputation : 1
Language : English

http://steadfast.betaboard.net

Back to top Go down

Solved Re: Adding more color to an already colored post?

Post by Ange Tuteur on March 8th 2014, 1:58 am

Hi MDillon,

Change your CSS to :
Code:
td .admin-post {
background:#f0f0f0 url(http://i55.servimg.com/u/f55/18/77/13/80/goldbg11.png) repeat-y
}
td .fmod-post {
background:#f0f0f0 url(http://i55.servimg.com/u/f55/18/77/13/80/greenb10.png) repeat-y
}
td .igmod-post {
background:#f0f0f0 url(http://i55.servimg.com/u/f55/18/77/13/80/goldbg12.png) repeat-y
}

and add this script :
Administration Panel > Modules > Javascript codes management > Create a new script

Title : what you wish
Placement : in the topics
Code:
$(function() {
  $('.post:has(.admin-post) + tr td').addClass('admin-post');
  $('.post:has(.fmod-post) + tr td').addClass('fmod-post');
  $('.post:has(.igmod-post) + tr td').addClass('igmod-post');
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Adding more color to an already colored post?

Post by MDillon on March 8th 2014, 2:38 am

You are just awesome, you know that? Thank you! ^.^

Keep up the excellent work. Smile

MDillon
New Member

Posts : 6
Reputation : 1
Language : English

http://steadfast.betaboard.net

Back to top Go down

Solved Re: Adding more color to an already colored post?

Post by SLGray on March 8th 2014, 2:40 am

Problem solved & topic archived.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36639
Reputation : 2441
Language : English
Location : United States

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