I can't find any good reason to show the number of search engines robots that are online now to guests or registered members. I think this number must be limited to the administrator.
I am not talking about disabling it completely. I think it would be a good idea to show them in the list but not in the forum main page. They are useless to guests and registered members and only provides data to the competitors.I can't think of a good reason not to show them.
Various other forum software show bots. In the case of phpBB the bot names are also shown in the Who's Online block (whereas Xenforo just shows them on the Current Visitors page).
Total: {total} (members: {members}, guests: {guests}, robots: {robots})
Total: {total} (members: {members}, guests: {guests})
I can convert xenForo into a totally different script if I edit the code. I am posting this thread here because I want to see this in the coreI think this is a personal preference thing.
It's really easy to change it yourself.
To remove the robots count from the sidebar_online_users template:
Change phrase:
online_now_x_members_y_guests_z_robots_a
From:
To:
Would it be possible to change this to a maths phrase to include the robots as guests? Personal preference really.I think this is a personal preference thing.
It's really easy to change it yourself.
To remove the robots count from the sidebar_online_users template:
Change phrase:
online_now_x_members_y_guests_z_robots_a
From:
To:
{xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}', 'robots={xen:number $onlineUsers.robots}'}
{xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number {xen:calc '{$onlineUsers.guests} + {$onlineUsers.robots}'}}'}
Thanks a tonne, works like a charm!As well as my edit above change this:
Code:{xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}', 'robots={xen:number $onlineUsers.robots}'}
to:
Code:{xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number {xen:calc '{$onlineUsers.guests} + {$onlineUsers.robots}'}}'}
In the sidebar_online_users template.
Only change:As well as my edit above change this:
Code:{xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}', 'robots={xen:number $onlineUsers.robots}'}
to:
Code:{xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number {xen:calc '{$onlineUsers.guests} + {$onlineUsers.robots}'}}'}
In the sidebar_online_users template.
{xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}', 'robots={xen:number $onlineUsers.robots}'}
{xen:phrase online_now_x_members_y_guests_z, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number {xen:calc '{$onlineUsers.guests} + {$onlineUsers.robots}'}}'}
Already edited the phrase, what difference does this bring? Seemed to only take effect upon changing the phrase for me, and works fine.It's ok, not need to edit phrase.
I see. It's only available on my Language packet.
As well as my edit above change this:
Code:{xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number $onlineUsers.guests}', 'robots={xen:number $onlineUsers.robots}'}
to:
Code:{xen:phrase online_now_x_members_y_guests_z_robots_a, 'total={xen:number $onlineUsers.total}', 'members={xen:number $onlineUsers.members}', 'guests={xen:number {xen:calc '{$onlineUsers.guests} + {$onlineUsers.robots}'}}'}
In the sidebar_online_users template.
We use essential cookies to make this site work, and optional cookies to enhance your experience.