MyBB Community Forums

Full Version: Give diff Color for Sticky, Closed thread from normal
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

I looking how to give different color for sticky, closed threads from normal threads as shown in mybb community.

Is there any plugin used for this?
Add a class to global.css called forumdisplay_sticky and it'll style sticky threads. Styling closed thread would need further code additions.
Pl give full details where to add class in global css and how and what about closed threads
You could install the MySupport plugin made by MattRogowski, or you could easily do what Matt said above.
Just add it anywhere in global.css, the bottom will be fine. ACP > Templates & Style > **choose theme** > global.css > Edit in advanced mode.

For closed threads, in the forumdisplay_thread, forumdisplay_thread_modbit and forumdisplay_thread_rating templates, find all instances of:

{$bgcolor}

change to:

{$bgcolor} closed_thread_{$thread['closed']}

Then add this to global.css:

.closed_thread_1 {
background: #ADCBE7;
}
Added this code and it works

.forumdisplay_sticky{
background: #F2F2F2;

}