Motagator
"When I was first introduced to Jamroom, it looked a useful application to manage the bands in which I play, or am associated, on a single website. It installed and ran successfully, and only then did I realize what Jamroom was about and its potential. Opening my site up to other bands I knew, I had a few takers, and am now in the process of promoting Motagator further. Motagator is open to all genres of music, but specializes in Cajun, Zydeco, Folk, Roots and Blues (my favorites). I'll be staying with Jamroom, wherever Brian takes it - it has been, and will be an interesting adventure."
Jamroom 3 jr_online Template Function
This document applies to Jamroom 3 only! For current Jamroom 4 Documentation, visit the main Jamroom Documentation section.
{jr_online} is used for embedding a small "whos online" box into a Template, showing if the User Accounts associated with the Artist or Member Profile are currently online.
Parameters
Name
Type
Required
Default
Description
band_id
number
yes
n/a
the band_id to find User Accounts for. This parameter is required.
template
string
yes
n/a
name of templates, located in Artist/Member Theme directory, that will be used to format the output of the function.
tpl_dir
string
no
"theme"
The "tpl_dir" parameter tells Jamroom the directory to find the template in - it will either be in a "skin" directory, or a "theme" directory.
theme
string
yes *
n/a
If the "tpl_dir" parameter is NOT set, or has been set to "theme", then you must provide the name of the Profile Theme that Jamroom can find the template in.
skin
string
yes *
n/a
If the "tpl_dir" parameter has been set to "skin", you must provide the name of the skin that contains the template.
online_time
number
no
Jamroom Config timer
The "online_time" parameter tells Jamroom how many seconds must pass without activity for the User to no longer be "online". If this parameter is not given, the the value of the Jamroom Config -> Environment Options -> Max Session Length is used.
user_id
number
no
n/a
If you want to see if a specific User ID is online, you can use the user_id parameter to tell Jamroom to look for a specific user_id.
admin
number
no
n/a
If you would prefer that the Admin account not show in the whos online output, set the "admin" parameter to "0".
Example
Example embedding the {jr_online} Template function into an Artist/Member theme template: