XF 1.3 Users online now...

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}'}
 
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}'}

Yes. If those variables aren't passed to the view as viewparams, then they won't be available in the rendered template.
 
Back
Top Bottom