Login Register






[MyBB] Changing user style per theme filter_list
Author
Message
[MyBB] Changing user style per theme #1
Posted this before on HackForums, but I thought I'd give you guys some content as well with this simple guide on how to make different username styles per different themes. If you ever had let's say a light theme and a dark, you could fix your usergroups for each one so they don't conflict and look like shit.

Step 1 -
Go to your ACP > Users & Groups > Group you wish to change

Step 2 - 
Find your group's username style. So for the admin for example let's just say it looked like this:

Code:
<span style="color: red;"><strong><em>{username}</em></strong></span>

Step 3 -
Delete the CURRENT username style that is listed, like how it is above and REPLACE it with:

Code:
<span class="admin_name">{username}</span>
(You can put whatever class name you wish. This is just an example.)

Step 4 - 
Go to your ACP > Themes & Templates > Theme you wish to add this in > Edit global.css

Step 5 - 
Add this code at the bottom of your global.css

Code:
.admin_name { color: yellow; font-weight: bold; }

Obviously you can add WAY more to that, like text shadow, sparkles or whatever using the proper CSS.
[Image: gNNKUYE.gif]

Reply

RE: [MyBB] Changing user style per theme #2
Can't believe I never thought about calling class in the user name instead of styling, Going to come in handy, thanks a lot!

Reply

RE: [MyBB] Changing user style per theme #3
Oh cool,

I"m working on a mybb site

Thanks for this!

Reply