vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Is there any way to make the username of each different usergroup a different colour? (https://vborg.vbsupport.ru/showthread.php?t=280371)

PleaseHelpUs 03-19-2012 11:49 PM

Is there any way to make the username of each different usergroup a different colour?
 
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>.


All times are GMT. The time now is 08:27 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01135 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete