vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Overriding usergroup color markup? (https://vborg.vbsupport.ru/showthread.php?t=282703)

RetroDreams 05-09-2012 05:26 PM

Overriding usergroup color markup?
 
I've got colors defined per usergroup like many forums do. However, on profile pages some of the colors clash because of the block's background color. Is there any way to override the usergroup colors for a singular color on the member profiles?

I know what CSS variable it is but nothing I do seems to work.

Lynne 05-09-2012 05:30 PM

What is the css variable?

What have you tried so far?

How about a link to a profile you are trying to do this on?

RetroDreams 05-09-2012 06:10 PM

#userinfo .member_username is the CSS variable. I know it works because it does mark up the profile for those usergroups without any color. Can't really remember everything I've tried. Changing from font color to span style, !important and the like. When I inspect the element, basically it shows the element.style color overriding the #userinfo .member_username color I've set in additional.css.

Link: http://www.sycamorepride.com/member.php?1-Jason-Svoboda

Lynne 05-10-2012 04:09 PM

You have this on that page:
HTML Code:

<span class="member_username"><span style="color:#0046ad;">Jason Svoboda</span></span>
You should use a class for the username, instead of a style.
This:
HTML Code:

<span class="usergroup6">
Instead of this:
HTML Code:

<span style="color:#0046ad;">
Then you add to additional.css:
HTML Code:

.usergroup6 {color: #0046ad;}
And also add this for the profile pages:
HTML Code:

#member_content #sidebar_container .usergroup6 {color: white;}
See if something like that works.

RetroDreams 05-17-2012 04:10 AM

This totally works. Thanks a ton!


All times are GMT. The time now is 07:05 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.01031 seconds
  • Memory Usage 1,718KB
  • 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
  • (5)bbcode_html_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