vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Currently Active Users: Members only? (https://vborg.vbsupport.ru/showthread.php?t=50414)

nintendo 03-18-2003 09:20 PM

Currently Active Users: Members only?
 
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. :)


All times are GMT. The time now is 04:25 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.01388 seconds
  • Memory Usage 1,712KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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