I had some buddies show up unexpectedly tonight, and many beers were quaffed, and I decided to put off anything serious until tomorrow.
--------------- Added [DATE]1451590749[/DATE] at [TIME]1451590749[/TIME] ---------------
Quote:
Originally Posted by CAG CheechDogg
Any progress on this Senor Mark?
You will likely want to set "Cache Time (in minutes)" to 0 so that this information is always current. This is the PHP content I used on my dev site to show all Math Helpers currently online:
$users_online = $vbulletin->db->query_read(" SELECT user.*, session.loggedin FROM " . TABLE_PREFIX . "user AS user INNER JOIN " . TABLE_PREFIX . "session AS session ON session.userid = user.userid WHERE (user.usergroupid = " . $groupid . " OR " . $groupid . " IN (user.membergroupids)) AND session.loggedin > 0 ORDER BY user.lastactivity DESC ");
You will want to edit these two lines near the top:
PHP Code:
$groupid = 13; $groupname = 'Math Helpers';
to use the groupid and groupname of your choice.
This will list all users currently online who are a member of the selected usergroupid, and list them in descending order by the time of their last activity.
I should also add, that if you wish to use multiple groupids (and have user avatars displayed), I recommend checking out Joe's (BirdOPrey5) product here: