1. 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...

Discussion in 'XenForo Questions and Support' started by Matthew Hawley, Feb 14, 2014.

  1. Matthew Hawley

    Matthew Hawley Well-Known Member

    Where are the files for users online now? I'm not asking about the template, I want the files.
     
  2. Liam W

    Liam W Well-Known Member

    library/XenForo/ControllerPublic/Online.php I believe.

    As well as the rest of the XF files ;)

    Liam
     
  3. Matthew Hawley

    Matthew Hawley Well-Known Member

    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}'}
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Have you exposed the data to the template?
     
  5. Liam W

    Liam W Well-Known Member

    Yes. If those variables aren't passed to the view as viewparams, then they won't be available in the rendered template.
     
  6. Matthew Hawley

    Matthew Hawley Well-Known Member

    No.....how would i do that?
     
  7. Sheldon

    Sheldon Well-Known Member

  8. Liam W

    Liam W Well-Known Member

    Modify the controller that inflates the template to pass those view parameters to the template.
     

Share This Page