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

Members Online Now

Craig

Active member
#1
Good day everyone!

I am wondering if there is a way to change the color of the users currently on line in the "Members Online Now" to match the user groups coloring i have added.

Thanks in advance for your help!
 

Shelley

Well-known member
#2
You can do that by making a template edit if the following is what you want to do. http://xenforo.com/community/threads/usergroup-markup.5506/

If you require for the markup to show in the Members Online Now listings you'll have to go into the the sidebar_online_users Template and make the following change.

Search:
Code:
class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>


Replace with:
Code:
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>
 

Craig

Active member
#3
You can do that by making a template edit if the following is what you want to do. http://xenforo.com/community/threads/usergroup-markup.5506/

If you require for the markup to show in the Members Online Now listings you'll have to go into the the sidebar_online_users Template and make the following change.

Search:
Code:
class="username{xen:if '!{$user.visible}', ' invisible'}{xen:if {$user.followed}, ' followed'}">{$user.username}</a><xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>


Replace with:
Code:
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>
Thank you so much for the help!