vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   1 Basic Easy Question.... (https://vborg.vbsupport.ru/showthread.php?t=116382)

rogersnm 05-22-2006 03:06 PM

1 Basic Easy Question....
 
ok so, some of you may have read my other post but i have now got it to work...

now i have a question because thgis is my first mod i am baically learning from thin air

i have the file in the home dir which does this:

PHP Code:

<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// get special data templates from the datastore
$specialtemplates = array(
'maxloggedin',
);


// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once(
DIR '/includes/functions_online.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################


{
$vbulletin->maxloggedin['maxonline'] = 1002324;
build_datastore('maxloggedin'serialize($vbulletin->maxloggedin));
}
?>

that then sets the most ever logged in to to 1002324 but i am trying to make a mod which changes it to what you enter in a box here is the code for that page:

PHP Code:

<?php
// ######################## SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
@
set_time_limit(0);

// #################### PRE-CACHE TEMPLATES AND DATA ######################
$phrasegroups = array('style');
$specialtemplates = array('products');

// ########################## REQUIRE BACK-END ############################
require_once('./global.php');
require_once(
DIR '/includes/adminfunctions_template.php');

print_cp_header();

print_table_start();
print_table_header("Max Users Online");

print_input_row('Desired Max Users Ever Online''inputname');
print_submit_row("Submit!"0);



print_cp_footer();
?>

what i would like to know is what do i change to do that i know i have to merge the scripts but what do i put where to do that...? xD

evilpowerdrill 05-22-2006 03:55 PM

bump.... i to would like to know....

ANYONE!?!?!

rogersnm 05-22-2006 04:31 PM

Does Nobody know? :(

amykhar 05-22-2006 04:42 PM

Jeepers, you're an impatient one aren't you? :D 2 bumps AND a pm to a random user in the past 90 minutes.

I'm not even sure exactly what the question is. But, you need to give people time to respond before you bump threads. And you really should never start picking people out of a hat to send a PM to.

rogersnm 05-22-2006 04:43 PM

i didn't bump it some random drill did....

akanevsky 05-22-2006 04:43 PM

I replied to your thread at vbhackers. :)

rogersnm 05-22-2006 04:55 PM

ok thanks dude


All times are GMT. The time now is 04:07 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.02193 seconds
  • Memory Usage 1,729KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (7)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