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.

Adding more color to an already colored post?

3 posters

Go down

Solved Adding more color to an already colored post?

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

So, I followed this tutorial recently https://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
avatar
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 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
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

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

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

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

Keep up the excellent work. Smile
avatar
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 March 8th 2014, 2:40 am

Problem solved & topic archived.


Adding more color to an already colored post? Slgray10

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

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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