Home    Articles

 

How to hide members/users online box in xenforo for specific user groups

 

If you want to hide that box for certain usergroups, first you have to find the usergroups ids.

To do that go to admin->users->user groups.

Click on a user group and you will see the id in the link:

As example the Adminsitrator group has the id 3 and the Guest 1.

To remove the online users box for specific usergroups we will add a condition in the sidebar_online_users that can be found in: admin->apearance->tempaltes.

At the end of the template add this code:

<xen:if is="{ $visitor.user_group_id } == 1">
<style> .membersOnline { display:none } </style>
</xen:if>

This will hide the box for Guests.

by