View Full Version : Want my moderators to have different font color
singa
05-18-2009, 03:53 PM
Hi
Everyone has the same blue color but I want members to see who is a moderator and who isn't.
How can I get my moderators to have different font color in their name, for example red?
Thanks
wolfstream
05-18-2009, 04:22 PM
Hi
Everyone has the same blue color but I want members to see who is a moderator and who isn't.
How can I get my moderators to have different font color in their name, for example red?
Thanks
Go to admincp ->usergroups -> moderators
Take a look at username html markup.
Change that to something like this:
<span class="moderator">
</span>
in the boxes, respectively (ie: the first one gets the first line, the second one gets the second line)
Then go to the template -> main CSS section, and in the very bottom CSS (additional css definitions), add something like this:
.moderator{
color : #0000FF ;
font-class : bold;
}
You can do that with all of the usergroups if you like, it's really very simple. If you need color definitions, check out this page (http://www.htmlgoodies.com/tutors/colors.html)
BlueNinjaGo
05-18-2009, 04:31 PM
Or just put <font color="#0000FF"> </font> in the html markup.
wolfstream
05-18-2009, 04:41 PM
Or just put <font color="#0000FF"> </font> in the html markup.
It's best to do it the other way , for validity purposes. The <font> tag has been removed for quite some time, in favor of css. Yeah, it still works, but as far as validity is concerned, that is NOT valid html.
BlueNinjaGo
05-18-2009, 05:11 PM
It's best to do it the other way , for validity purposes. The <font> tag has been removed for quite some time, in favor of css. Yeah, it still works, but as far as validity is concerned, that is NOT valid html.
Fair enough. HTML isn't my strong suit, so I'll take your word on that. It just seemed simpler and has worked w/o any issues for me.
But for TC, I'd go ahead and do what wolfstream suggested.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.