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

XF 1.2 Online now - robots

Discussion in 'XenForo Questions and Support' started by Ellie, Aug 12, 2013.

  1. Ellie

    Ellie Member


    Is there any way to remove the term robots and merge that number with guests?

  2. Cartier

    Cartier Member

    I am wondering the same thing. Is there any kind of add-on that could fix this?
  3. Jeremy

    Jeremy Well-Known Member

    Edit the phrase X and remove the robots text. In sidebar_online_users template, find the following 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}'}
    and replace it with 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 {xen:calc '$onlineUsers.guests + $onlineUsers.robots'}}', 'robots={xen:number $onlineUsers.robots}'}
    Note: this is an untested modification.
    Wysie likes this.
  4. QenTox

    QenTox Well-Known Member

    Wysie likes this.
  5. Wysie

    Wysie Member

    This returns me with 'sidebar_online_users - Line 69: Invalid math expression' in 1.2.1, any fix for this? :S
  6. Jeremy

    Jeremy Well-Known Member

    Chris D likes this.

Share This Page