vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Excluding Guests in Most Users Online (https://vborg.vbsupport.ru/showthread.php?t=73931)

KPalicz 01-07-2005 03:04 AM

Excluding Guests in Most Users Online
 
For the "Most users ever online" figure, it includes guests and bots. Which means when Google crawls our site, this number jumps up really high and becomes meaningless. Is there a hack (or a setting i'm missing) that will include only registered users in this number?

KPalicz 01-08-2005 12:42 AM

Wow, this dropped like a rock. Any help?

ozmazdaclub 01-08-2005 02:07 AM

Wouldn't mind this also...

dorkus 01-09-2005 05:54 PM

me too :)

arpy 01-09-2005 10:03 PM

find in online.php
Code:

if (intval($maxusers['maxonline']) <= $totalonline)
{
        $maxusers['maxonline'] = $totalonline;
        $maxusers['maxonlinedate'] = TIMENOW;
        build_datastore('maxloggedin', serialize($maxusers));
}

and replace the 2 "$totalonline" with "$numbervisible".

This is untested - but I think it works.

arpy

KPalicz 01-11-2005 04:36 PM

It didn't appear to do anything for mine.

joeychgo 01-11-2005 06:02 PM

anyone else?

Andreas 01-11-2005 06:46 PM

This code should work fine. But you must reset the stats first.

KPalicz 01-12-2005 03:53 PM

Yea, i reset the stats, and it still included the guests in the total number.

Andreas 01-12-2005 03:58 PM

You must change the a/m code in index.php as well, and maybe also in admincp/index.php.
Also, if you use a portal software it might also contain the same or similar code which needs to be changed.


All times are GMT. The time now is 08:51 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.01847 seconds
  • Memory Usage 1,718KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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