• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Username CSS You may use HTML

ashkir

Active member
#1
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.
 

ashkir

Active member
#4
Thanks.

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

MagnusB

Well-known member
#5
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
#6
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