PDA

View Full Version : How to Change The Background / Text Color For Sticky Threadbits


Jake Bunce
Fri 26th May '06, 11:43am
This mod allows you to define a different background color for sticky threadbits on forumdisplay pages (e.g. http://www.vbulletin.com/forum/forumdisplay.php?f=1)

In this template:

Admin CP -> Styles & Templates -> Style Manager -> « » -> Threadbit Templates -> threadbit

Replace all instances of:


class="alt1"


...and:


class="alt2"


...with:


class="<if condition="$show['sticky']">alt1_sticky<else />alt1</if>"


...and:


class="<if condition="$show['sticky']">alt2_sticky<else />alt2</if>"


...respectively.

Then define new CSS classes in your:

Admin CP -> Styles & Templates -> Style Manager -> Main CSS (in the menu)

Scroll down to the bottom where it says Additional CSS Definitions. In the bottom box add this code. Change the red color codes appropriately (background and text colors):


.alt1_sticky
{
background: #F5F5FF;
color: #000000;
}
.alt2_sticky
{
background: #E1E4F2;
color: #000000;
}