PDA

View Full Version : Where is $activeusers defined?


ArashB
07-16-2008, 01:30 AM
Hi there

I need to find out where $activeusers is populated, I need to avoid showing banned users from being displayed in the online users in homepage



I recommend you add "exclude user groups" in "online users module" in the next vbulletin but now I need to change it myself.

--------------- Added 1216176790 at 1216176790 ---------------

I'm looking for the declaration of the variable so that I can change the sql command, I'm not looking for where this variable is defined

snakes1100
07-16-2008, 01:55 AM
I believe that is an array, you'll have to chk the online.php file.

The second part of your post, needs to be posted at vbulletin.com, not here.

ArashB
07-16-2008, 01:57 AM
I don't think it's in online.php, because I removed that file, and online users are still being shown

Opserty
07-16-2008, 08:20 AM
Hmm I thought there was a setting in vBulletin for this... anyway the variable is defined in index.php. (Feature suggestions should be posted at vbulletin.com)

Dismounted
07-16-2008, 09:55 AM
Use the hook: forumhome_loggedinuser_query and change the variable $hook_query_where.

ArashB
07-16-2008, 10:34 PM
Use the hook: forumhome_loggedinuser_query and change the variable $hook_query_where.

Thanks
I found $hook_query_where in index.php and I added:

$hook_query_where = "and user.usergroupid <> 6"

Yet the users whom groupid is 6 are still being shown on homepage