MyBB Community Forums
[How To?] Username colour different for each theme? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 General Support (https://community.mybb.com/forum-127.html)
+------ Thread: [How To?] Username colour different for each theme? (/thread-128464.html)

Pages: 1 2


Username colour different for each theme? - That noob - 2012-10-29

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?


RE: Username colour different for each theme? - Nebulon Ranger - 2012-10-29

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]


RE: Username colour different for each theme? - That noob - 2012-10-29

(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.


RE: Username colour different for each theme? - laie_techie - 2012-10-30

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;
}



RE: Username colour different for each theme? - That noob - 2012-10-30

(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?


RE: Username colour different for each theme? - dragonexpert - 2012-10-30

Under Themes then the theme name.


RE: Username colour different for each theme? - That noob - 2012-10-30

(2012-10-30, 06:57 PM)dragonexpert Wrote: Under Themes then the theme name.

More steps please, I'm lost now.


RE: Username colour different for each theme? - dragonexpert - 2012-10-30

Admin CP->Theme & Templates->Theme Name->global.css


RE: Username colour different for each theme? - That noob - 2012-10-30

(2012-10-30, 08:01 PM)dragonexpert Wrote: Admin CP->Theme & Templates->Theme Name->global.css

Doesn't work.


RE: Username colour different for each theme? - dragonexpert - 2012-10-30

You have to add the class in advanced mode.