Sidebar user name styling

Sidebar user name styling

Paul B

XenForo moderator
Staff member
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...
 
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>
 
I have just tested the code on my site and guests do not appear like that.

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

Perhaps you have some other edits which are causing that?
 
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!!!!
 
upgrade to 1.5.3 and merged outdated templates sidebar_online_users with result double online user list :D
 
Last edited:
Back
Top Bottom