PDA

View Full Version : Excluding Guests in Most Users Online


KPalicz
01-07-2005, 03:04 AM
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

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.