XF 1.1 Username CSS You may use HTML


Active member
Hello there when editing usergroups, the "Username CSS" I assume would allow us to have staff colors again right? How exactly would we use this field with the HTML? Is there a special tag? Anyone have any examples? Thanks.


Active member

Is there a way to get the color to work in the online list, and the threads/last post/thread creator on forum view?


Well-known member
I haven't really tried using this method, but the template that handles users online is called sidebar_online_users, the only thing I can think of on the top of my head is to apply the rank as a class to it, then you can stylize them using extra.css. The downside of this is that you then are limited to one word ranks.

Jake Bunce

XenForo moderator
Staff member
Is there a way to get the color to work in the online list

Sidebar Display

In a default installation, user group styling does not apply to the Staff Online Now and Members Online Now blocks in the sidebar.

To enable styling to show in these locations, the sidebar_online_users template must be edited.

Look for this line of code in the template:

class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username},

Replace it with this:

class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{xen:helper richUserName, $user},
last post/thread creator