MyBB Community Forums

Full Version: Username colour different for each theme?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How would I make a username colour different for each theme.

Say if I had a black theme, I would want all the username colours to be white.

And if I had a white theme, I would want all the username colours to be black.

Any help?
If you mean colors for the Registered group, MyBB does this automatically based on the theme's colors if there's no styling for any given group.

See:
[Image: 1kdwT]
(2012-10-29, 08:17 PM)StingReay Wrote: [ -> ]If you mean colors for the Registered group, MyBB does this automatically based on the theme's colors if there's no styling for any given group.

See:
[Image: 1kdwT]

Nope.
In the username style for each group, use a span with a CSS class instead of inline styles. That way, you can define that style for each theme.

<span class="registered">{username}</span>

span.registered {
  color:#FFFFFF;
}
(2012-10-30, 03:12 AM)laie_techie Wrote: [ -> ]In the username style for each group, use a span with a CSS class instead of inline styles. That way, you can define that style for each theme.

<span class="registered">{username}</span>

span.registered {
  color:#FFFFFF;
}

Where do I add that .CSS code?
Under Themes then the theme name.
(2012-10-30, 06:57 PM)dragonexpert Wrote: [ -> ]Under Themes then the theme name.

More steps please, I'm lost now.
Admin CP->Theme & Templates->Theme Name->global.css
(2012-10-30, 08:01 PM)dragonexpert Wrote: [ -> ]Admin CP->Theme & Templates->Theme Name->global.css

Doesn't work.
You have to add the class in advanced mode.
Pages: 1 2