PDA

View Full Version : Is there any way to make the username of each different usergroup a different colour?


PleaseHelpUs
03-19-2012, 11:49 PM
Could someone kindly instruct me as to how to change the colour of the font on the usernames to different colours for each different usergroup?

Thanks so much! :)

kh99
03-20-2012, 12:04 AM
In the adminCP, Usergroup > Usergroup Manager > Edit Usergroup > Username HTML Markup, you can add html markup for before and after the user names. I think normally you'd add <span> and </span> with whatever attributes you wanted.

PleaseHelpUs
03-20-2012, 12:10 AM
Thanks so much.

So, in the two boxes that are next to each other on the Username HTML Markup if I would just put <span> then does the color go here? and then </span>

Sorry if I sound confused. All new to this.

Iain M
03-20-2012, 12:17 AM
You would put <span style="color: #FF0000;"> in the first box, and </span> in the second.

Change #FF0000 to the color you want the username to be. You can find a list of color hex codes here: http://www.w3schools.com/html/html_colors.asp

PleaseHelpUs
03-20-2012, 12:20 AM
Awesome!! Thanks 1000%

kh99
03-20-2012, 12:20 AM
In the first box you'd need something like <span style="color:green"> or <span style="color:#FF0000">. Or you could define classes for each usergroup (by putting the CSS in the additional.css template) then use <span class="admin"> or whatever.

The second box would just be </span>.