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

Sidebar user name styling

Brogan

XenForo moderator
Staff member
#1
Brogan submitted a new resource:

Sidebar user name styling - Enable user group user name styling in the sidebar

In a default installation, user group user name styling does not apply to the Members Online Now block in the sidebar.
To enable styling to show in this location, the sidebar_online_users template must be edited.

Look for this line of code in the template:
HTML:
class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
Replace it with this:...
Read more about this resource...
 

Brogan

XenForo moderator
Staff member
#3
Me too :D

Ironically, just after I managed to find the answer (thanks Mike) I then removed the template edit as I realised I prefer the sidebar user names all to be the same colour <facepalm>
 

Brogan

XenForo moderator
Staff member
#6
I have just tested the code on my site and guests do not appear like that.

upload_2013-9-25_21-27-45.png

Perhaps you have some other edits which are causing that?
 

BamBam

Active member
#12
Could you please point me to this Setting, i dont found it. I am in Style Properties: [bd] Widget Framework, there is no Setting for the Sidebar User Group Styling.

// I found it!!! NICE!!!!
 

maszd

Active member
#14
upgrade to 1.5.3 and merged outdated templates sidebar_online_users with result double online user list :D
 
Last edited: