Sidebar user name styling
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:
Replace it with this:
You can then apply styling to the user group user names as explained in the manual here: User Group Styling | XenForo
However, when hovering over a user name, the underline colour from the parent <a> will be applied and may therefore differ from the text colour applied to the user name.
To resolve that, apply this to EXTRA.css:
I wish you success.
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:
Kod:
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:
Kod:
class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{xen:helper richUserName, $user}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
You can then apply styling to the user group user names as explained in the manual here: User Group Styling | XenForo
However, when hovering over a user name, the underline colour from the parent <a> will be applied and may therefore differ from the text colour applied to the user name.
To resolve that, apply this to EXTRA.css:
Kod:
a.username:hover > span {
text-decoration: underline;
}
I wish you success.