Current time: 05-24-2012, 11:17 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Setting Different Name Styles for Different Themes
10-25-2006, 01:09 AM
Post: #1
Setting Different Name Styles for Different Themes
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.

Code:
.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:

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

For Registered

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

For Moderators

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

For Super Moderators

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

For Administrators

Code:
<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,

ryanashbrook.co - My Blog - @ryanashbrook
Do NOT PM me for Support!
Visit this user's website Find all posts by this user
Quote this message in a reply
03-27-2007, 12:14 PM
Post: #2
RE: Setting Different Name Styles for Different Themes
AH yes, Ive always used this style of usergroup defining. A fine tutorial Smile

[Image: premium_mybb_themes-500x100.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication