Jamroom Logo Jamroom 5 Core
is now Open Source!
Follow Jamroom on Twitter!

This document applies to Jamroom 3 only!
For current Jamroom 4 Documentation, visit the main Jamroom Documentation section.

{jr_user_data} Index {jr_whos_online}


{jr_user_online} template function is used to tell if a given user_id is currently online.  This function in turn, will "export" a Template array called $JR_USER_ONLINE back into the current template.

 Note: This Template Function only operates properly in Jamroom Skin templates!

Function Paramaters

Name Type Required Default Description
user_id mixed yes n/a The user_id parameter tells Jamroom the user_id(s) that you would like to check and see if they are online.  Note that you can enter a single user_id - i.e. user_id="5", or alternately a "range" of user_id's separated by commas - i.e. user_id="1,2,3,4,7,8,9,10,12"
online_time integer no 900 By default, the {jr_user_online} function will show users that have been online and active in the past 15 minutes (900 seconds).  Set this number either higher or lower to change the length odf time a user must be "active" in to show on the output.  Value is in seconds.

Example using {jr_whos_online} function

{jr_user_online user_id="5,12,17" online_time="300"}

{foreach from=$JR_USER_ONLINE key="uid" item="online"}

{if $online > 0}

    user_id {$uid} is online!


    user_id {$uid} is NOT online!


{jr_user_data} page 178 of 185 {jr_whos_online}
Solutions Products Support Community Company
Social Media Platform
Social Networking Software
Musician Website Manager
Community Builder
Jamroom 5
Jamroom 5 Modules
Jamroom Marketplace
Support Forum
Support Center
Contact Support
Community Forum
Member Sites
About Us
Contact Us
Privacy Policy
©2003 - 2023 The Jamroom Network