vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Most Members Online Ever - Not Most Users Online Ever (https://vborg.vbsupport.ru/showthread.php?t=83299)

Reece D 06-17-2005 05:46 PM

Most Members Online Ever - Not Most Users Online Ever
 
I tried searching these forums for a little hack that can do this but I couldn't find one and i also asked over at vbulletin if there was something but they told me to come back here.

Please if anyone knows how to get the most ever users online to show just members it would be great as the damn bots shoot the most users online upto about 300 which is ridiculous.

Regards,

Paul M 06-17-2005 06:17 PM

This probably has has more than you need, but will perform what you want.

https://vborg.vbsupport.ru/showthread.php?t=81167

Reece D 06-17-2005 06:29 PM

Cheers mate but I dont know if I want all that comes with it - I would just like that simple line changed to most members online ever, with the revelant number beside it. Is there an easier way for it just to show the most ever members online. I am not very good with PHP myself so i am not sure if this is a big code change or a small one although it doesn't seem that big.

Thanks for your help.

On 2nd thought that hack maybe useful as it displays all information. I will think about installing it mate, need to check it other with the guy who also runs my forums with me ;)

Paul M 06-17-2005 07:23 PM

Just cut out what you don't want - should be easy enough for a programmer.

Andreas 06-17-2005 07:34 PM

index.php

Change
PHP Code:

 if (intval($maxusers['maxonline']) <= $totalonline)
 {
         
$maxusers['maxonline'] = $totalonline

to
PHP Code:

 if (intval($maxusers['maxonline']) <= $numberregistered)
 {
         
$maxusers['maxonline'] = $numberregistered

online.php

Change
PHP Code:

$totalonline $numbervisible $numberguests;

// ### MAX LOGGEDIN USERS ################################
$maxusers unserialize($datastore['maxloggedin']);
if (
intval($maxusers['maxonline']) <= $totalonline)
{
        
$maxusers['maxonline'] = $totalonline

to

PHP Code:

$numberregistered $numbervisible $numberinvisible;
$totalonline $numbervisible $numberguests;

// ### MAX LOGGEDIN USERS ################################
$maxusers unserialize($datastore['maxloggedin']);
if (
intval($maxusers['maxonline']) <= $numberregistered)
{
        
$maxusers['maxonline'] = $numberregistered

admincp/index.php
change
PHP Code:

 if (intval($maxusers['maxonline']) <= ($guests $members))
 {
         
$maxusers['maxonline'] = $guests $members

to
PHP Code:

 if (intval($maxusers['maxonline']) <= $members)
 {
         
$maxusers['maxonline'] = $members


Reece D 06-18-2005 09:35 AM

I managed to change it, Thanks ! http://www.gamers-frenzy.com to see what it looks like. When i move server however I will be installing Paul M's hack and while removing the shoutcast radio hack & teamspeak hack from the bottom of my forums.

Thanks for all your help


All times are GMT. The time now is 08:39 AM.

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.01119 seconds
  • Memory Usage 1,736KB
  • 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
  • (6)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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