PDA

View Full Version : Colored Backgrounds(Like Runescape Forums)


shawn_RS
11-14-2008, 08:08 PM
Alright. Not sure if any of you have ever seen the runescape forums. If a Jagex Mod(admin) posts their background is gold. If a forum mod posts their background is a nice green.

How can I do this for VB? On all skins. Basically I need a script I can place into the Vbulletin filles(or if I must, a template based script) that makes this happen.

I want Admin = Gold
Mod = Dark green

Nightcop
05-22-2011, 07:27 PM
Have you managed to find an answer, because I'm interested in this too.

BirdOPrey5
05-23-2011, 08:19 PM
You would do this with a template conditional in your postbit or postbit_legacy template. It doesn't specify if this is for vBulletin 3.x or 4.x but the code is a little different.

In VB 3.x you find $post[message] in the template...

Look for a <div> or <td> tag above it, find which one you want to use (some HTML knowledge is required here)

Inside the tag you'd add something like:


<if condition="is_member_of($bbuserinfo, 6)">style="background:gold;"</if><if condition="is_member_of($bbuserinfo, 5,7)">style="background:green;"</if>


6 is the usual admin group, 5 and 7 are usually mods and super-mods...