Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-17-2005, 05:46 PM
Reece D Reece D is offline
 
Join Date: Jul 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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,
Reply With Quote
  #2  
Old 06-17-2005, 06:17 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

https://vborg.vbsupport.ru/showthread.php?t=81167
Reply With Quote
  #3  
Old 06-17-2005, 06:29 PM
Reece D Reece D is offline
 
Join Date: Jul 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 06-17-2005, 07:23 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just cut out what you don't want - should be easy enough for a programmer.
Reply With Quote
  #5  
Old 06-17-2005, 07:34 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 06-18-2005, 09:35 AM
Reece D Reece D is offline
 
Join Date: Jul 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:15 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.17900 seconds
  • Memory Usage 2,222KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (6)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete