Jamroom Logo
Newsletter
Member Spotlight
406942
mZeus.com
"Jamroom has been great. The software works very well. I used to manually upload tracks, but now my artists upload their own tracks! The site is now completely automated thanks to Jamroom. Customer service is also Excellent! Whenever I had problems, I was able to find and get the answers in the forum."
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}


{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 178 of 185 {jr_whos_online}
Solutions Products Support Community Company
Social Media Platform
Social Networking Software
Musician Website Manager
Community Builder
Jamroom Core
Jamroom Addons
Jamroom Modules
Jamroom Marketplace
Support Forum
Documentation
Support Center
Contact Support
Community Forum
Member Sites
Developers
About Us
Contact Us
Privacy Policy
©2003 - 2012 Talldude Networks, LLC.