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=315984)

Robbed 12-12-2014 12:14 PM

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
https://vborg.vbsupport.ru/showthread.php?t=282703

kh99 12-12-2014 12:33 PM

I'm not a CSS expert or anything, but maybe something like:
Code:

.postdetails .staffcolor {color: white;}

Dave 12-12-2014 12:39 PM

You can try with !important:

color: #fff !important;

Robbed 12-12-2014 03:39 PM

Quote:

Originally Posted by kh99 (Post 2526953)
I'm not a CSS expert or anything, but maybe something like:
Code:

.postdetails .staffcolor {color: white;}

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:

Quote:

.memberaction.popupmenu a.popupctrl {
background: none;
padding: 0;
}
Any other ideas?

MarkFL 12-12-2014 03:44 PM

Did you try adding "!important" to your CSS class definition as Dave suggested?

Robbed 12-12-2014 03:45 PM

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

https://vborg.vbsupport.ru/external/2014/12/3.png?1

--------------- Added [DATE]1418406645[/DATE] at [TIME]1418406645[/TIME] ---------------

Quote:

Originally Posted by MarkFL (Post 2526984)
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

kh99 12-12-2014 03:53 PM

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
Code:

.memberaction.popupmenu .staffcolor {color: white;}
(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?

Robbed 12-12-2014 03:55 PM

Correct i'm trying to override .staffcolor only for posbit

I will give that a shot.

--------------- Added [DATE]1418407101[/DATE] at [TIME]1418407101[/TIME] ---------------

Thanks everyone this worked

Code:

.postdetails .staffcolor {color: white !important;}
it didn't work without !important

MarkFL 12-12-2014 04:07 PM

If your staff usergroups are the only groups with HTML markup defined, then adding this CSS selector to your additional.css template should work:

Code:

div.username_container span
{
    color: #FFFFFF !important;
}

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


All times are GMT. The time now is 07: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.01194 seconds
  • Memory Usage 1,731KB
  • 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_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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