Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 12 Dec 2014, 13:14
Robbed Robbed is offline
 
Join Date: Oct 2005
Overriding usergroup color markup?

Our postbit background is black so I'm trying to override the usergroup color for staff to white

I have a class in additional.css .staffcolor {color: #000000;}

I just need help trying to figure out how to override the popup user name in the postbit.
.staffcolor {color: white;}

It's similar to this
http://www.vbulletin.org/forum/showthread.php?t=282703
Reply With Quote
  #2  
Old 12 Dec 2014, 13:33
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
I'm not a CSS expert or anything, but maybe something like:

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

Reply With Quote
  #3  
Old 12 Dec 2014, 13:39
Dave Dave is offline
 
Join Date: Jun 2010
Real name: Dave
You can try with !important:

color: #fff !important;
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com

Contact me for custom vBulletin 3/4 work & server/website management.
Reply With Quote
  #4  
Old 12 Dec 2014, 16:39
Robbed Robbed is offline
 
Join Date: Oct 2005
Originally Posted by kh99 View Post
I'm not a CSS expert or anything, but maybe something like:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
Thanks I tried but it didn't help. It's tricky because I can override it in other places but with the user name for postbit it's part of popup code.


Some people online mentioned to make changes to this code.

In popupmenu.css:

.memberaction.popupmenu a.popupctrl {
background: none;
padding: 0;
}
Any other ideas?
Reply With Quote
  #5  
Old 12 Dec 2014, 16:44
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
Did you try adding "!important" to your CSS class definition as Dave suggested?
Reply With Quote
  #6  
Old 12 Dec 2014, 16:45
Robbed Robbed is offline
 
Join Date: Oct 2005
If I use firebug and highlight username in postbit it brings this up. I can change the font size so I think this is the right spot but which css code to edit so we can change the color



--------------- Added 12 Dec 2014 at 16:50 ---------------

Originally Posted by MarkFL View Post
Did you try adding "!important" to your CSS class definition as Dave suggested?
Yes this is what I have in additional.css
.staffcolor {color: #000000 !important;}

The staff color is black this is working fine but for the postbit our background is black so I want the username to be white.

I just need to know where to put this code
.staffcolor {color: white !important;} in css

Last edited by Robbed; 12 Dec 2014 at 16:52.
Reply With Quote
  #7  
Old 12 Dec 2014, 16:53
kh99 kh99 is offline
 
Join Date: Aug 2009
Real name: Kevin
The thing I don't understand is that the username doesn't seem to be in the popup menu on my forum. Either I don't understand what you mean, or else yours is different for some reason.

Are you trying to override .staffcolor just in the postbit (and not in other places it appears)? Like i said I'm weak on CSS, but maybe

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

(I don't know if the space should be there or not, or if it makes any difference). ETA: oh, I guess maybe it needs to be there because otherwise you'd be selecting something that was marked with all three classes?
Reply With Quote
  #8  
Old 12 Dec 2014, 16:55
Robbed Robbed is offline
 
Join Date: Oct 2005
Correct i'm trying to override .staffcolor only for posbit

I will give that a shot.

--------------- Added 12 Dec 2014 at 16:58 ---------------

Thanks everyone this worked


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

it didn't work without !important
Reply With Quote
  #9  
Old 12 Dec 2014, 17:07
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Real name: Mark
If your staff usergroups are the only groups with HTML markup defined, then adding this CSS selector to your additional.css template should work:


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

edit: Sorry, I didn't see that you had already resolved the issue.
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Username color on forumhome (as based on usergroup markup) MentaL vBulletin 3.6 Template Modifications 17 16 Sep 2007 16:42



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

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

Layout Options | Width: Wide Color: