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

XF 1.3 Users online now...

Matthew Hawley

Well-known member
#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}'}
 

Liam W

Well-known member
#5
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.