XF 1.1 Username CSS You may use HTML

ashkir

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.
 
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.
 
Is there a way to get the color to work in the online list

http://xenforo.com/help/user-group-styling/

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

http://xenforo.com/community/threads/usergroup-colour-on-topic-list.33060/#post-377679
 
Top Bottom