vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=282703

Overriding usergroup color markup?
by RetroDreams
09 May 2012 18:26

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 09 May 2012 18:30

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 09 May 2012 19:10

#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 10 May 2012 17:09

You have this on that page:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

You should use a class for the username, instead of a style.
This:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Instead of this:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then you add to additional.css:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And also add this for the profile pages:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

See if something like that works.

RetroDreams 17 May 2012 05:10

This totally works. Thanks a ton!


All times are GMT. The time now is 16:25.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.