Log in

View Full Version : 1 Basic Easy Question....


rogersnm
05-22-2006, 04:06 PM
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
// ####################### 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
// ######################## 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, 04:55 PM
bump.... i to would like to know....

ANYONE!?!?!

rogersnm
05-22-2006, 05:31 PM
Does Nobody know? :(

amykhar
05-22-2006, 05: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, 05:43 PM
i didn't bump it some random drill did....

akanevsky
05-22-2006, 05:43 PM
I replied to your thread at vbhackers. :)

rogersnm
05-22-2006, 05:55 PM
ok thanks dude