• 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

Jeremy

Well-known member
#3
Edit the phrase X and remove the robots text. In sidebar_online_users template, find the following code:

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:
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'}}', 'robots={xen:number $onlineUsers.robots}'}
Note: this is an untested modification.
 
#5
Edit the phrase X and remove the robots text. In sidebar_online_users template, find the following code:

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:
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'}}', 'robots={xen:number $onlineUsers.robots}'}
This returns me with 'sidebar_online_users - Line 69: Invalid math expression' in 1.2.1, any fix for this? :S