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