MyBB Community Forums

Full Version: Setting Different Name Styles for Different Themes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have this issue... so I have worked out this little workaround.

This tutorial requires basic knowledge of CSS.

In the Theme Editor put the following into the Additional CSS box of every one of your themes.

.name_style_registered
{
CSS Code Here
}

.name_style_mods
{
CSS Code Here
}

.name_style_smods
{
CSS Code Here
}

.name_style_admins
{
CSS Code Here
}

.name_style_banned
{
CSS Code Here
}

Insert your CSS code where it says "CSS Code Here" for each usergroup, based on each theme.

Then put the following in your Username Style box of the usergroups:

<span class="name_style_registered">{username}</span>

For Registered

<span class="name_style_mods">{username}</span>

For Moderators

<span class="name_style_smods">{username}</span>

For Super Moderators

<span class="name_style_admins">{username}</span>

For Administrators

<span class="name_style_banned">{username}</span>

For Banned

And you're done! Now each usergroup will have a different Username Styles for each of your themes!

You'll be able to see this in effect at my forums: http://ryan.mybb-templates.com/music/

You will have to register to see the effects because I don't have a Theme Changer on there yet,
AH yes, Ive always used this style of usergroup defining. A fine tutorial Smile