Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 03-23-2008, 05:52 AM
jamesf4218 jamesf4218 is offline
 
Join Date: Dec 2006
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Guest stat question

How can I make guests who have been banned not show up in the guests online total?

Thanks
Reply With Quote
  #2  
Old 03-23-2008, 11:47 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guests online total, i assume this is the guests that has visited today hack total you are asking about.

Please post in the thread that you downloaded the hack/addon from and ask there.
Reply With Quote
  #3  
Old 03-23-2008, 02:11 PM
jamesf4218 jamesf4218 is offline
 
Join Date: Dec 2006
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
Guests online total, i assume this is the guests that has visited today hack total you are asking about.

Please post in the thread that you downloaded the hack/addon from and ask there.
No, I haven't installed any hack. On the forum home page it says something like:

Currently Active Users: 59 (8 members and 51 guests)

If 5 of those guests have been banned, I don't want them to be included in the guest total so it would say:

Currently Active Users: 59 (8 members and 46 guests)

How is this done?

Thanks
Reply With Quote
  #4  
Old 03-23-2008, 04:05 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How do you know they are banned anyway? There isn't a way to differentiate between a legitimate guest and a banned user until they login in. You could just add them to the Banned IP list in the "vBulletin Options" of your AdminCP, if you are really concerned, whether this will affect the total I don't know.

Anyway why do you want to reduce the number of visitors? It would make more sense to leave it as it, I doubt many of your members will be that concerned that the number is 5 to high, let alone if they notice it or even read it!
Reply With Quote
  #5  
Old 03-23-2008, 04:51 PM
jamesf4218 jamesf4218 is offline
 
Join Date: Dec 2006
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Opserty View Post
How do you know they are banned anyway? There isn't a way to differentiate between a legitimate guest and a banned user until they login in.
This is not true. If you ban someone by IP they will get an error message the moment they try and view a page.

Quote:
Originally Posted by Opserty View Post
You could just add them to the Banned IP list in the "vBulletin Options" of your AdminCP, if you are really concerned, whether this will affect the total I don't know.
This has been done but they still show up in the guest list total.

Quote:
Originally Posted by Opserty View Post
Anyway why do you want to reduce the number of visitors? It would make more sense to leave it as it, I doubt many of your members will be that concerned that the number is 5 to high, let alone if they notice it or even read it!
They didn't just notice it, they were the ones that brought it up. I just used 5 as an example to illustrate the problem. We actually have a rogue crawler that keeps visiting our site, 50 bots at a time, thus adding 50 non guests to the online guest total which looks stupid.

There must be a way to amend the code to discount users who have been banned, from counting towards the online guest total?
Reply With Quote
  #6  
Old 03-23-2008, 09:23 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If this is a dedicated server, use iptables and ban them from the server period.

If its not, use a htaccess file and host deny the ip.
Reply With Quote
  #7  
Old 03-23-2008, 09:28 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Banning them from the server/site is your only real option as, as soon as they visit your site their data (IP e.t.c.) is stored automatically in the session table, which is where the guest count comes from. Checking all the guests in this table against the IP Ban List may cause a performance hit especially as your forum grows, if they are permanently banned from the forums I would just suggest snakes1100 method.

I'm not trying to skirt round the issue but the gains from going to the trouble of editing files and extra work done by the server don't seem worth it. If you really want to then you could try editing the query in the index.php file. (You'll need to search for it but I'm sure its commented somewhere). If there is a common IP then you could just count users that do not have that IP I guess.
Reply With Quote
  #8  
Old 03-24-2008, 03:22 PM
jamesf4218 jamesf4218 is offline
 
Join Date: Dec 2006
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK thanks
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:57 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.03673 seconds
  • Memory Usage 2,216KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete