vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Banned Member Showing In "Currently Active Users" (https://vborg.vbsupport.ru/showthread.php?t=250257)

Nintendo-Daily 09-10-2010 12:29 PM

Banned Member Showing In "Currently Active Users"
 
I've recently banned a few spammers in my community. The next day, even know they were banned already, I saw one of them in the "Currently Active Users" area. After seeing this, I viewed the "Who's Online" area and they had an error message (stop sign) for a thread they were attempting to view.

My question is why area the banned users showing as being online if they're banned? Does this have anything to do with cookie sessions or caching?

How can I fix this?

Lynne 09-10-2010 01:38 PM

They show because they come back to the site and the cookie is set and so they are logged in.

You can fix it by modifying the query in the index.php page that lists the users under Currently Active Users.

Nintendo-Daily 09-13-2010 07:24 PM

Quote:

Originally Posted by Lynne (Post 2096223)
They show because they come back to the site and the cookie is set and so they are logged in.

You can fix it by modifying the query in the index.php page that lists the users under Currently Active Users.

Thank you, Lynne.

Do you know what part of the index.php page I would change, and to what specifically?

Lynne 09-13-2010 11:23 PM

The query that gets the users, it's under where it says Logged in Users. Just add something like this to the Where part of the query:
PHP Code:

AND (user.usergroupid != x

(I don't remember the usergroupid for banned users, you'll have to look it up.)


All times are GMT. The time now is 03:00 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.01034 seconds
  • Memory Usage 1,719KB
  • 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
  • (4)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