vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Alternate usergroup colours (https://vborg.vbsupport.ru/showthread.php?t=293014)

CyberEdge 12-15-2012 07:24 PM

Alternate usergroup colours
 
Does anyone know of a way to alternate usergroup colours depending on the theme?

Example:

https://vborg.vbsupport.ru/external/2012/12/19.jpg vs https://vborg.vbsupport.ru/external/2012/12/20.jpg

If I wanted the Administrator to appear Black on the light theme, and White on the dark theme.

kh99 12-15-2012 07:30 PM

I think what you could do is make the html markups like this:

Code:

<span class="admin_username"> ... </span>

Then you can edit the additional.css template in each style and put in different CSS for each.

CyberEdge 12-15-2012 07:39 PM

Quote:

Originally Posted by kh99 (Post 2390947)
I think what you could do is make the html markups like this:

Code:

<span class="admin_username"> ... </span>

Then you can edit the additional.css template in each style and put in different CSS for each.

Wow thanks, would it go anywhere in the additional.css?

kh99 12-15-2012 07:51 PM

Yeah. I mean, of course you wouldn't put it in the middle of another class def, but other than that it doesn't matter.

Edit: just for completeness, you'd add something like this:

Code:

.admin_username
{
  color:black; /* or "color:#000000;" , if you'd rather do it like that */
}


probably at the bottom of the additional.css, assuming there's anything in there to start with. Also, that example is just for admin usernames of course - you'd have to create a different class for each usergroup where you wanted to specify a different color.

CyberEdge 12-15-2012 08:02 PM

Quote:

Originally Posted by kh99 (Post 2390950)
Yeah. I mean, of course you wouldn't put it in the middle of another class def, but other than that it doesn't matter.

Cheers, you've helped me out on my other vBulletin accounts before, you're a credit to the forum.


All times are GMT. The time now is 11:16 AM.

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.01173 seconds
  • Memory Usage 1,719KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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