Sinisterly
[MyBB] Changing user style per theme - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Design (https://sinister.li/Forum-Design)
+--- Forum: Web Design (https://sinister.li/Forum-Web-Design)
+--- Thread: [MyBB] Changing user style per theme (/Thread-MyBB-Changing-user-style-per-theme)



[MyBB] Changing user style per theme - Angelic - 12-21-2015

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.


RE: [MyBB] Changing user style per theme - Spartan_mybb_import20058 - 12-21-2015

Can't believe I never thought about calling class in the user name instead of styling, Going to come in handy, thanks a lot!


RE: [MyBB] Changing user style per theme - Jupiter_mybb_import19992 - 12-21-2015

Oh cool,

I"m working on a mybb site

Thanks for this!