vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Reset most users online from the AdminCP (https://vborg.vbsupport.ru/showthread.php?t=91351)

Dream 06-29-2005 10:00 PM

Reset most users online from the AdminCP
 
Description
Adds a link in your AdminCP under "vBulletin Options" to reset most users online.

Installation
- Upload "reset_maxloggedin.php" to your admincp folder
- Upload "cpnav_rmli.xml" to your includes/xml folder

(0.2) bug forgot to add table prefix

search keywords: most online users max members record

works with: beta 3, beta 4

MrSDavidson 07-02-2005 10:35 PM

Doesnt work for me...
Database error in vBulletin 3.5.0 Beta 3:

Invalid SQL:
UPDATE datastore
SET data = 'a:2:{s:9:"maxonline";s:1:"0";s:13:"maxonlinedate" ;s:2:"10";}'
WHERE title = 'maxloggedin';

MySQL Error : Table 'db114720746.datastore' doesn't exist
Error Number : 1146
Date : Sunday, July 3rd 2005 @ 01:34:54 AM

Dream 07-03-2005 12:06 AM

interesting I don't see how you can not have a datastore table

is "db114720746." your vB tables prefix?

Marco van Herwaarden 07-03-2005 05:57 AM

No that would be his databasename. I guess he is using a prefix, and this is maybe not supported in that query?

Marco van Herwaarden 07-03-2005 05:58 AM

PHP Code:

$zero_sql "UPDATE datastore 

replace by
PHP Code:

$zero_sql "UPDATE " TABLE_PREFIX "datastore 


Dream 07-03-2005 06:04 AM

bah I forgot to add the table prefix to the query. updated thanks

Marco van Herwaarden 07-03-2005 06:10 AM

No problem, that is why i use a table prfix on my development forums.

MrSDavidson 07-03-2005 08:54 AM

*goes off to test*

MrSDavidson 07-03-2005 08:58 AM

Thanks You!! Works a charm now

Kirk Y 07-03-2005 08:03 PM

This may seem like a stupid question, but. What do you mean "reset" most users?

MrSDavidson 07-03-2005 08:05 PM

What's Going On?
Currently Active Users: 28 (16 members and 12 guests)
Most users ever online was 41, Today at 04:20 PM.
Bit in blue is the most users online section
that help you :)

MrSDavidson 07-03-2005 08:05 PM

hmmm its set to blue but shows up green

Is This A BUG???

John Smiley 07-13-2005 12:08 AM

Is there anything like this for 3.0 ???

I need this badly and can't find anything in my own area.

Dream 07-13-2005 02:30 AM

this thread explains how you do it with a query

http://www.vbulletin.com/forum/showthread.php?t=140224

I dont even have 3.0.7 anymore, if anyone want to port this over be my guest

John Smiley 07-13-2005 12:31 PM

That worked great, Thanks ;^)

evss 07-29-2005 07:11 PM

Besides Reset,

is there anyways we can set the number we want and once run thru the quey, it will built the preset no. on the current dates/time or allow preset date/time ?

btw. Nice and useful hack. Thank you.

Boofo 07-29-2005 09:04 PM

I'm just curious but why would you ever want to reset that?

Dream 08-01-2005 01:54 AM

Quote:

Originally Posted by Boofo
I'm just curious but why would you ever want to reset that?

when your forum is invaded by a bunch of hungry googlebots, sometimes its nice to reset the record.

evss, if that was to be included, you would have to choose a date also, so it would be a little more work to add.

evss 08-24-2005 06:16 PM

Quote:

Originally Posted by Dream
when your forum is invaded by a bunch of hungry googlebots, sometimes its nice to reset the record.

evss, if that was to be included, you would have to choose a date also, so it would be a little more work to add.

To Boofo,

As Dream pointed out..
E.g if i had a no. Most Ever User Online was 100 on date/time
Then i only have 200 Registered user..

suddenly one bunch of spider come in and spike it to 400 or 500..
this isnt something i want to see...

hence my thoughts were.. if im able to reset it back to 100 on the preset date/time or other can set to 100 on current date / time.. that what i want the function for.
But anyway i just not a coder hence i keep resetting if it every was spike to a limit.

Thanks Dream

Herc 12-12-2005 10:12 PM

I like it and I used it....Thanks, Dream...Worked for 3.5.2
I just recently got hit by a mass amount of robots....3300 simultaneous users and your reset has allowed me to get rid of that horrible number on my forumhome..

Thanks again.....Herc

JsnakeJ 12-16-2005 03:22 AM

Maybe you should post a new screenie to show that its in the vBulletin Options now and not the main page. :)

Herc 12-26-2005 11:43 PM

Tell ya what....I'll do it for him, ya wiener :rolleyes:

http://img.photobucket.com/albums/v2...lder/reset.gif

bmanzzz 02-07-2006 08:14 AM

great work
*installed*

m52 04-28-2006 04:53 AM

installed, works a treat!

alyster4k 09-25-2006 05:11 PM

Worked for 3.6.1 too. Thanks.

Robru 10-19-2006 08:20 AM

Also worked for 3.6.2 :)

fishhub 03-10-2007 02:01 PM

can we insert the most no of users on specific dates manually?

DieselMinded 05-19-2007 08:32 AM

Worked on 3.6.7 PL1

teamelusive 06-08-2007 10:01 PM

^^ i can say it did worked w/ 3.6.7 PL1 as well. thx!

pacmanfan 07-30-2007 02:57 PM

I'm getting an "Invalid File Specified" error when I try to import the XML file, in 3.6.8.

beer4life 08-10-2007 07:40 AM

Quote:

Originally Posted by pacmanfan (Post 1305374)
I'm getting an "Invalid File Specified" error when I try to import the XML file, in 3.6.8.

G'Day Everyone, been looking for this for ages, but what a disappointment when it gave the "Invalid File Specified" message when using vB 3.6.4.
Would be fantastic to get working as the figure we have now is highly inflated. Not what I like.
PLEASE, if any one can update or post an earlier working file, I would be forever grateful.
Kindest Regards, Bill.
:cool: :up:

Dream 08-10-2007 07:05 PM

You don't import the xml, read the install instructions again.

beer4life 08-11-2007 05:30 AM

You are so right.
What more can I say. Methinks dazzled by your beauty, or more likely a geriatric aberration.
Many Thanks and Very Kindest Regards, Bill.
:up:

beer4life 08-28-2007 01:39 PM

Many thanks for your assistance.
Worked fine except is giving Current Date/Time.
What is needed to show when record was set?
This was in the original.
Kindest Regards, Bill.
:cool:

cypher1973 10-23-2007 01:57 PM

looked for this a while and works a treat nice one installed

texasasl 10-25-2007 09:45 PM

Very nice. Indeed thank you very much

piraterevival 03-20-2008 10:20 AM

Installed, working OK
Nice one

alyster4k 06-09-2008 01:43 AM

Still works in 3.7. Thanks!

Rzoops 07-16-2008 03:26 PM

Works perfectly in 3.6.8. Thanks!!

DieselMinded 08-27-2008 01:23 AM

Ive had this for a while ,, Just tried to use it again and it didnt work
3.7.2


All times are GMT. The time now is 04:44 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.01213 seconds
  • Memory Usage 1,782KB
  • 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
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete