Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [How To?] Username colour different for each theme?
#1
Not Solved
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?
#2
Not Solved
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]
[Image: logo.png]
#3
Not Solved
(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.
#4
Not Solved
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;
}
#5
Not Solved
(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?
#6
Not Solved
Under Themes then the theme name.
#7
Not Solved
(2012-10-30, 06:57 PM)dragonexpert Wrote: Under Themes then the theme name.

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

Doesn't work.
#10
Not Solved
You have to add the class in advanced mode.


Forum Jump:


Users browsing this thread: 1 Guest(s)