MyBB Community Forums

Full Version: Different Admin/Moderator/Member/etc. font colors for each theme.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, quick question:

How do I make it so that the Administrator, Moderator, Member, etc. font colors are different for each of my themes?
The only way I know of to change these colors in the first place is by managing the groups and throwing a <font color=whatever> tag around the {username} part... which works fine if I only want to have one theme -- but I don't. Big Grin

So, I guess I need to know how to set these colors up in the CSS of each theme or whatnot.
...or of an even easier way if I'm just missing something.

Thanks!
Okey, do this.
In the groups and so on, instead of using <font color=whatever>
use this.
<div id="admin">{username}</div>
change admin to whatever you want.
then you add.
#admin {
color: whatever;
}
to your css additional info at the bottom, extra css.
Change admin here as well to whatever you chose above.
It doesn't matter if you don't have it in some css themes though.
Perfect.
Thanks again. Wink
Don't know why I didn't think of that.
Well I tend to black out on "primary" stuff like that myself from time to time.
Anyways, your very welcomed Smile
CrakteR,

I created CS classes (instead of ID) such as:
<span class="user_admin">{username}</span>

Then to the Additional CSS section of my theme:
.user_admin {
color: whatever;
}

I use <span> instead of <div> because <div> is a block element (as opposed to inline) and class instead of id because it is possible (and even likely) that multiple people from the same user display group will be online at the same time. Technically, each id on a page is supposed to be unique.

One other note: all <font> tags should be replaced with the proper <span> because <font> isn't proper XHTML.
True, I forgot about the fact it actually can be more then one admin.
div would work fine though, but yea, span is probably your best shot.