XF 1.5 Hide robots from online page

Tiki Tiki

Active member
#2
Edit Template: sidebar_online_users

Towards the bottom, where it says <div class="footnote">, look for and remove:
Code:
, 'robots={xen:number $onlineUsers.robots}'
Unless there's an easier way. :unsure:

You'll probably want to remove references to robots from the online_list template as well.
 
Last edited:

Tiki Tiki

Active member
#4
domain.com/online list the problem
That would be the 2nd template I listed. The first, sidebar_online_users, is for the sidebar. You need to edit out all of the robot references in the online_list template.

To remove the robot tab, for example, find and remove this near the top under <ul class="tabs">:
Code:
<li class="{xen:if '{$userLimit} == "robot"', active}"><a href="{xen:link online, '', 'type=robot'}">{xen:phrase robots}</a></li>
Personally, as the Admin, I like to see the robots on the list. With IPB, there is a setting for determining who can or can't see various things on the online list. I'm surprised XF doesn't have the same. I haven't looked around, but maybe someone else has already done an add-on, or posted the necessary code to check permissions and then display a modified online users list.
 
Top