View Full Version : Reset most users online from the AdminCP
Dream
06-29-2005, 10:00 PM
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
$zero_sql = "UPDATE datastore
replace by
$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 ;^)
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
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.
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
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. :)
Tell ya what....I'll do it for him, ya wiener :rolleyes:
http://img.photobucket.com/albums/v207/Axewielder/reset.gif
bmanzzz
02-07-2006, 08:14 AM
great work
*installed*
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
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
drsli
08-31-2008, 10:22 AM
Works on my 3.73-board like a charm! :) Many thanks for this helpful additon.
DieselMinded
09-04-2008, 10:40 PM
It worked it just took it a while
vithorius
10-15-2008, 10:52 AM
EXCELLENT Mod!!!
I had my counter for most online users with a problem for more than 3 months and this 'tiny' Mod has just SOLVED IT!!! :up: :D :up:
THANK YOU SO VERY MUCH!!!
(installed!)
Dream
10-15-2008, 03:04 PM
great glad it worked well for you :)
Nadeemjp
10-16-2008, 02:38 AM
hey does this mod have a counterpart for 3.7.3 as well?
Dream
10-16-2008, 12:54 PM
im pretty sure this works with 3.7
Darksaint
03-08-2009, 07:38 PM
Worked smoothly for me as well and helped us a lot to get a more "normal" count.
HabboLan
04-20-2009, 07:08 PM
Works in 3.8.x Also
Thanks
MarioN70
08-03-2009, 02:14 PM
Thanks! Excellent work
senadxxx
08-06-2009, 07:43 PM
hm for me on 3.8.3 not working this is mesage:
ERROR 404 - PAGE NOT FOUND
Oops! Looks like the page you're looking for was moved or never existed.
Make sure you typed the correct URL or followed a valid link.
guitarscanada
09-02-2009, 01:20 AM
works great. thanks for this one
Robru
10-29-2011, 11:10 AM
Works also in 4.1.7 :)
Robru
12-03-2011, 11:43 AM
Don't work anymore in 4.1.8...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.