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

Robots online now

Discussion in 'XenForo Suggestions' started by Khaleal, Aug 16, 2013.

  1. Khaleal

    Khaleal Active Member

    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.
  2. Martok

    Martok Well-Known Member

    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).
  3. DRaver

    DRaver Active Member

    That's absolutely right. (y)
  4. Khaleal

    Khaleal Active Member

    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.
  5. Chris D

    Chris D XenForo Developer Staff Member

    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:

  6. Khaleal

    Khaleal Active Member

    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 core :)
  7. Chris D

    Chris D XenForo Developer Staff Member

    It's not really editing the code. It's adjusting a single phrase to your requirements. It's no difference from translating an English phrase to another language - only this is removing part of the phrase rather than translating it.

    If everything was put in the core it would be an absolute complex mess of options and toggles. And we've seen that elsewhere (not just forum software). So where there are tools that enable you to make customisations yourself (such as the phrase, style and templates system) why not just use them?

    I really do not think it's worth the effort of having it as a customisable option.

    But, as it is a suggestion thread, it will be considered along with all the other suggestion threads providing there's enough support for it going forward. In the mean time, my small phrase change works perfectly.
    batpool52! and Khaleal like this.
  8. Wysie

    Wysie Member

    Would it be possible to change this to a maths phrase to include the robots as guests? Personal preference really.
  9. Chris D

    Chris D XenForo Developer Staff Member

    As well as my edit above change this:

    {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}'}}'}
    In the sidebar_online_users template.
    ideenwerk, Mendo, craigiri and 3 others like this.
  10. Wysie

    Wysie Member

    Thanks a tonne, works like a charm! :)
  11. caoanh204

    caoanh204 Active Member

    Only change:
    {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}'}}'}
    It's ok, not need to edit phrase.
    Market1234 likes this.
  12. Chris D

    Chris D XenForo Developer Staff Member

    That doesn't work:

    caoanh204 likes this.
  13. Wysie

    Wysie Member

    Already edited the phrase, what difference does this bring? Seemed to only take effect upon changing the phrase for me, and works fine.
  14. Chris D

    Chris D XenForo Developer Staff Member

    Editing the phrase is necessary.
    Wysie likes this.
  15. caoanh204

    caoanh204 Active Member

    I see. It's only available on my Language packet.

    Attached Files:

  16. Stormlilly

    Stormlilly Member

    You are so cool @Chris D, always find your solutions popping up when I need them. Appreciate it.
    Donny, ideenwerk and Chris D like this.
  17. Notalius

    Notalius Member

    this doesn't work for me .. shows still users and guests only without adding the bots to the guests

Share This Page