Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-13-2018, 04:24 PM
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Most Users Ever Online Statistic.

Anyone know how to reset (if possible) the "Most Users Ever Online Statistic" found in the "What's Going On" area?

Looked in the Admincp area...but couldn't find anything...maybe need to dig deeper.

Thanks
Reply With Quote
  #2  
Old 10-13-2018, 04:55 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you'd have to run a query to edit the 'datastore' table. At vBcom, the advice given is to manually run this query:

Code:
UPDATE datastore SET data = '' WHERE title = 'maxloggedin';
I have not tested this, so hopefully you have a test installation you can try this with first.
Reply With Quote
  #3  
Old 10-13-2018, 09:35 PM
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice. That certainly looks much more involved than a nice-easy reset button in the admincp (if there was one)!

Thanks MarkFL...appreciate it.
Reply With Quote
  #4  
Old 10-14-2018, 04:40 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by alfuzzy View Post
Nice. That certainly looks much more involved than a nice-easy reset button in the admincp (if there was one)!
If there was one that is exactly what it would do - run that same query but with one click.

Easy enough to paste this into ACP/Maintenance/Execute SQL Query/ Manual box and click "Continue."
Reply With Quote
  #5  
Old 10-14-2018, 05:14 PM
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Max Taxable View Post
If there was one that is exactly what it would do - run that same query but with one click.

Easy enough to paste this into ACP/Maintenance/Execute SQL Query/ Manual box and click "Continue."
Yes..."Easy Enough" (if someone is used to doing this sort of stuff). But even MarkFL above mentioned..."I have not tested this, so hopefully you have a test installation you can try this with first."

It really would have been great if vBulletin had incorporated a "reset" button in the admincp for that most ever users online statistic.

That statistic can be so easily manipulated...and being able to easily reset it would be handy for when a website is significantly altered...and generating a "new" most users ever stat under the new conditions would be useful.

Thanks
Reply With Quote
  #6  
Old 10-14-2018, 05:27 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by alfuzzy View Post
Yes..."Easy Enough" (if someone is used to doing this sort of stuff). But even MarkFL above mentioned..."I have not tested this, so hopefully you have a test installation you can try this with first."

It really would have been great if vBulletin had incorporated a "reset" button in the admincp for that most ever users online statistic.

That statistic can be so easily manipulated...and being able to easily reset it would be handy for when a website is significantly altered...and generating a "new" most users ever stat under the new conditions would be useful.

Thanks
I just ran the manual query I posted above on my local dev site (vB 4.2.5), and it worked without issue.
Reply With Quote
  #7  
Old 10-14-2018, 05:58 PM
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
I just ran the manual query I posted above on my local dev site (vB 4.2.5), and it worked without issue.
Thank you sir...appreciate it.
Reply With Quote
  #8  
Old 10-14-2018, 09:37 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by alfuzzy View Post
Yes..."Easy Enough" (if someone is used to doing this sort of stuff).
I mean, it's quite simple really even if you've never done it.
Reply With Quote
  #9  
Old 10-15-2018, 07:21 PM
alfuzzy alfuzzy is offline
 
Join Date: Jul 2018
Posts: 168
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Max Taxable View Post
I mean, it's quite simple really even if you've never done it.
I get ya on that.

I think that part that had me concerned was with MarkFL's first post in the tread about doing things on a test site...rather than the live site (which could indicate some level of risk).

But then MarkFL said he did it...and things worked fine.

Thanks
Reply With Quote
  #10  
Old 10-15-2018, 08:02 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by alfuzzy View Post
I think that part that had me concerned was with MarkFL's first post in the tread about doing things on a test site...rather than the live site (which could indicate some level of risk).
That's pretty much a standard disclaimer, any time anyone with experience is recommending you manually run a db query. Along with either/or, "Make sure you do a backup first!"

Could sound ominous, but really it's not. It's just part of "best practices" not to do stuff like that on your live site without first trying it on a tester. And it's "best practices" to recommend testing first.

You never let us know if you ran the query or not, and if so did it get you where you wanted to be.
Reply With Quote
Благодарность от:
MarkFL
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 11:48 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.04090 seconds
  • Memory Usage 2,262KB
  • 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
  • (1)bbcode_code
  • (7)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete