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?


All times are GMT. The time now is 01: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.01371 seconds
  • Memory Usage 1,726KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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