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

{jr_user_data} Index {jr_whos_online}

{jr_user_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!

{else}

    user_id {$uid} is NOT online!

{/if}


{jr_user_data} page 150 of 171 {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
Documentation
Support Center
Contact Support
Community Forum
Member Sites
Developers
About Us
Contact Us
Privacy Policy
©2003 - 2024 The Jamroom Network