The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
WOL Help Needed!
I need to modify my Who's Online page to restrict the viewing of online members to those in the same group as the user.
If a user is in Group A, I only want them to see people online who are also in Group A. How can this be done, please? |
#2
|
|||
|
|||
Open 'online.php' and find:
Code:
$allusers = $db->query_read(" SELECT user.username, session.useragent, session.location, session.lastactivity, user.userid, user.options, session.host, session.badlocation, session.incalendar, user.aim, user.icq, user.msn, user.yahoo, user.skype, IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid FROM " . TABLE_PREFIX . "session AS session ". iif($vbulletin->options['WOLguests'], " LEFT JOIN " . TABLE_PREFIX . "user AS user USING (userid) ", ", " . TABLE_PREFIX . "user AS user") ." WHERE session.lastactivity > $datecut ". iif(!$vbulletin->options['WOLguests'], " AND session.userid = user.userid", "") ." ORDER BY $sqlsort $sortorder "); Code:
WHERE session.lastactivity > $datecut Code:
WHERE session.lastactivity > $datecut AND user.usergroupid=" . $vbulletin->userinfo['usergroupid'] . " |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|