Jamroom Logo   Get Jamroom now for as low as !
The Powerful Social Media Platform
free download!
key features
key features
Newsletter
E-mail Address:

Spotlight
TheBeat.fm
270143 "TheBeat.fm was established on the foundation and confidence that we could provide and increase exposure to independent musicians, agents and labels. After searching for scripts, we fortunately found Jamroom. Jamroom gives the musician complete control over how they market themselves - and allows us to concentrate more on marketing ourselves as a business. Jamroom has helped enable us run successful contests, promoting musicians for events, and we are even currently planning 2 major California concerts. This couldn’t have happened as efficient as it has without the support and help of Jamroom."
{jr_user_data} {jr_user_data} Index {jr_whos_online} {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} {jr_user_data} page 177 of 184 {jr_whos_online} {jr_whos_online}
Home | Download | Support | Demo | Members | Purchase | Marketplace | Contact | Privacy
©2003 - 2008 Talldude Networks, LLC.