vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Most Users Ever Online (https://vborg.vbsupport.ru/showthread.php?t=116260)

rogersnm 05-21-2006 12:48 PM

Most Users Ever Online
 
I ould like a mod which changes the entry for the most users ever online. when i try the manual way it just seem to delete the whole thing so i have given up. It's quite a simple mod because all you have to do is just run an sql query - i think.

Regards,
Nick

TruthElixirX 05-21-2006 01:02 PM

What are you wanting to change about it?

rogersnm 05-21-2006 01:19 PM

the number so you can change it from say 89 to 3 to 100000

Paul M 05-21-2006 01:56 PM

Why would you want to change it ?

rogersnm 05-21-2006 04:32 PM

because on my previous forums (phpbb) i had 212 members online

but it didn't convert in impex so i don't have that record anymore

it's ok i have worked out how....

bashy 05-21-2006 04:50 PM

How did you manage this?

Quote:

Originally Posted by rogersnm
because on my previous forums (phpbb) i had 212 members online

but it didn't convert in impex so i don't have that record anymore

it's ok i have worked out how....


rogersnm 05-21-2006 04:53 PM

I would like someone make a mod for me which:

Retrieves
SELECT `data` FROM `datastore` WHERE `title` IN ('maxloggedin') the only problem is i don't know how to refine it to just the X out of 'a:2:{s:9:"maxonline";i:X;s:13:"maxonlinedate";i:1148218982;}'

X and then says on a page in the admin CP accessible through the side bar. "Current Setting: 'X' "

and then another line below which says: "Desired Setting" and then an empty box next to it.

Once you type in a number to the empty box it executes the sql query:

UPDATE `datastore` SET `data` = 'a:2:{s:9:"maxonline";i:X;s:13:"maxonlinedate";i:1148218982;}' WHERE CONVERT(`title` USING utf8) = 'maxloggedin' LIMIT 1;

X = being the number you type in.

If this is to much trouble then just tell me and i'll go away..

Regards,
Nick.

EDIT: Or make the mod :(

bashy 05-21-2006 04:56 PM

You said
Quote:

it's ok i have worked out how....
This is why i asked, how did you manage to sort it?

rogersnm 05-21-2006 05:14 PM

i was typing in thw wrong place in "s" not "i"

p.s. i think the mod is pretty simple to make...


can someone take a look at this please https://vborg.vbsupport.ru/showthrea...642#post983642


All times are GMT. The time now is 09:17 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.01182 seconds
  • Memory Usage 1,725KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete