PDA

View Full Version : Currently Active Users: Members only?


nintendo
03-18-2003, 09:20 PM
Is there a hack where you can make the 'Currently Active Users' only count registered members??

Some times I get so many Googlebots here that half the 'users' arn't even humans, and at the same time set a new record, which of course isn't very correct, since half the 'users' arn't human.

amykhar
03-18-2003, 09:29 PM
I believe you can turn showing guests off in the control panel but I may be totally wrong. It might just not show what guests are doing but counts them anyway.

Amy

nintendo
03-18-2003, 10:44 PM
You can change it so it doesn't show or count them on the Who's Online page, but it still counts them on the index page. Is there any way to make the index page not count guests, and is there a way to reset the record to zero?

Erwin
03-18-2003, 11:12 PM
Change $totalonline in forumhome to this:

$numberregistered

for number of members online.

For guests, use $numberguest

Erwin
03-18-2003, 11:14 PM
The total users online can be reset to zero, but it will still count guests - to make it not count guests, you need to hack index.php

In index.php:

Find:

$totalonline=$numberregistered+$numberguest;

Change it to:

$totalonline=$numberregistered;

Then, run this query:

UPDATE template SET template='0 0' WHERE title='maxloggedin' AND templatesetid=-2;

nintendo
03-19-2003, 12:33 AM
Thanks!! It worked!!

Erwin
03-19-2003, 12:46 AM
You're welcome. :)