View Full Version : Alternate usergroup colours
CyberEdge
12-15-2012, 07:24 PM
Does anyone know of a way to alternate usergroup colours depending on the theme?
Example:
https://vborg.vbsupport.ru/external/2012/12/19.jpg vs https://vborg.vbsupport.ru/external/2012/12/20.jpg
If I wanted the Administrator to appear Black on the light theme, and White on the dark theme.
I think what you could do is make the html markups like this:
<span class="admin_username"> ... </span>
Then you can edit the additional.css template in each style and put in different CSS for each.
CyberEdge
12-15-2012, 07:39 PM
I think what you could do is make the html markups like this:
<span class="admin_username"> ... </span>
Then you can edit the additional.css template in each style and put in different CSS for each.
Wow thanks, would it go anywhere in the additional.css?
Yeah. I mean, of course you wouldn't put it in the middle of another class def, but other than that it doesn't matter.
Edit: just for completeness, you'd add something like this:
.admin_username
{
color:black; /* or "color:#000000;" , if you'd rather do it like that */
}
probably at the bottom of the additional.css, assuming there's anything in there to start with. Also, that example is just for admin usernames of course - you'd have to create a different class for each usergroup where you wanted to specify a different color.
CyberEdge
12-15-2012, 08:02 PM
Yeah. I mean, of course you wouldn't put it in the middle of another class def, but other than that it doesn't matter.
Cheers, you've helped me out on my other vBulletin accounts before, you're a credit to the forum.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.