Quote:
Originally Posted by Dragonsys
it doesn't display usergroups. Are you wanting to show all member of only 1 specific group? If so, change the query to this:
Code:
$users_visited = $vbulletin->db->query_read("
SELECT user.*
FROM " . TABLE_PREFIX . "user AS user
WHERE lastvisit >= " . TIMENOW . " - " . 7 * 86400 . "
AND usergroupid = _YOURUSERGROUP_
ORDER BY lastvisit DESC
");
change _YOURUSERGROUP_ to the group ID you want to show
|
What I was really looking for is to show members of a specific usergroup who are online now. I have members who belong to usergroup "Officers" and would like to show them online now if they are online now kind of like they are staff who are online so that members can contact them if they have questions... know what I mean?