vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Where is $activeusers defined? (https://vborg.vbsupport.ru/showthread.php?t=185454)

ArashB 07-16-2008 01:30 AM

Where is $activeusers defined?
 
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 [DATE]1216176790[/DATE] at [TIME]1216176790[/TIME] ---------------

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

Quote:

Originally Posted by Dismounted (Post 1576680)
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:

PHP Code:

$hook_query_where "and user.usergroupid <> 6" 

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


All times are GMT. The time now is 11:48 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00937 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete