Thanks Paul for having a look anyways, I appreciate your time
Thanks Steve you were right on with the session_quota_id
$tmp = '';
$tim = 900;
if (isset($params['length']) && jrCore_checktype($params['length'], 'number_nz')) {
$tim = intval($params['length'] * 60);
}
$tbl = jrCore_db_table_name('jrUser', 'session');
$req = "SELECT CONCAT_WS('_',session_user_ip,session_user_group) AS session_uniq, session_updated, session_user_id, session_quota_id, session_user_action FROM {$tbl} WHERE session_updated > (UNIX_TIMESTAMP() - {$tim})";
if (isset($params['quota_id']) && jrCore_checktype($params['quota_id'], 'number_nz')) {
$req .= " AND session_quota_id = '" . intval($params['quota_id']) . "'";
}
$req .= " GROUP BY session_uniq ORDER BY session_updated DESC";
From there I was able to understand that the quota_id was passed and in fact part of the function parameters
Thanks Michael. You were also right with passing the quota_id in the smarty Function like shown:
{jrUser_whos_online quota_id=4 template="whos_online.tpl"}
is correct.
So to get the functionality I needed it was pretty simple. Ill show you what I did in effort to help others.
Lets say the quota your trying to show is ID 3.
---> You can find your quota id in your ACP=>profiles=>tools=>quota_browser and its name is the Artist quota.
You create the smarty function with the quota_id parameters like this:
{jrUser_whos_online quota_id=3 template="artist_online.tpl"}
Next I created the artist_online.tpl template
{if isset($user)}
<div class="row">
<div class="col12 last">
<hr>
<span class="media_title">Artist Online:</span>
<hr>
</div>
</div>
<div class="row">
{foreach from=$user item="member"}
<div class="col3{if $member@last} last{/if}">
<div class="center capital p5">
<a href="{$jamroom_url}/{$member.profile_url}">{jrCore_module_function function="jrImage_display" module="jrUser" type="user_image" item_id=$member.session_user_id size="xsmall" crop="auto" class="iloutline" alt=$member.session_user_name title=$member.session_user_name}</a>
</div>
</div>
{/foreach}
</div>
{/if}
And its working. Thanks everyone for the help!
updated by @developer-networks: 04/02/16 09:01:43AM