M Matthew Hawley Well-known member Feb 14, 2014 #1 Where are the files for users online now? I'm not asking about the template, I want the files.
Liam W in memoriam 1998-2020 Feb 14, 2014 #2 library/XenForo/ControllerPublic/Online.php I believe. As well as the rest of the XF files Liam Upvote 0 Downvote
M Matthew Hawley Well-known member Feb 14, 2014 #3 Is there a reason why this won't work in a custom template? 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}'} Upvote 0 Downvote
Is there a reason why this won't work in a custom template? 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}'}
P Paul B XenForo moderator Staff member Feb 14, 2014 #4 Have you exposed the data to the template? Upvote 0 Downvote
Liam W in memoriam 1998-2020 Feb 14, 2014 #5 Matthew Hawley said: Is there a reason why this won't work in a custom template? 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}'} Click to expand... Yes. If those variables aren't passed to the view as viewparams, then they won't be available in the rendered template. Upvote 0 Downvote
Matthew Hawley said: Is there a reason why this won't work in a custom template? 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}'} Click to expand... Yes. If those variables aren't passed to the view as viewparams, then they won't be available in the rendered template.
Sheldon Well-known member Feb 14, 2014 #7 Matthew Hawley said: No.....how would i do that? Click to expand... http://xenforo.com/community/search/4796923/?q=variables+viewparams&o=date Upvote 0 Downvote
Matthew Hawley said: No.....how would i do that? Click to expand... http://xenforo.com/community/search/4796923/?q=variables+viewparams&o=date
Liam W in memoriam 1998-2020 Feb 14, 2014 #8 Matthew Hawley said: No.....how would i do that? Click to expand... Modify the controller that inflates the template to pass those view parameters to the template. Upvote 0 Downvote
Matthew Hawley said: No.....how would i do that? Click to expand... Modify the controller that inflates the template to pass those view parameters to the template.