[COMMENT] /* +-------------------------------------------------------------------------- | Invision Board v1.3 | ======================================== | > Mod_Installer | > Module written by Peter(Pit) | > Peter member at ibforen.de, Pit member at invisionize.com | > email: Peter@ibforen.de | | > Mod_Installer Version Number: 1.3.2 (2007-01-08) | > 2003 - 2007 by Peter | | > This is the CodeChange.php for Mod The ModInstaller by Peter +-------------------------------------------------------------------------- */ [COMMENT_END] [INTERFACE] 'title' => 'The ModInstaller', 'sub_title' => 'Installation automatique des mods standardisés a ipb 1.3 Il ne faut pas un\'installation manuelle, mais utilises Mod_Installer.php quel est situe dans le root-dir d\'ipb', 'category' => 'ACP Mod', 'compatible' => 'Invision Power Board 1.3', 'version' => '1.3.2', 'author' => 'Peter', 'email' => 'Peter@ibforen.de', 'mod_token' => 'mod_installer', [INTERFACE_END] [HISTORY] [b]Version 1.3.2 2007-01-08[/b] [LIST][*]Bug during execution of sql commands in the sql section Update: [LIST][*]Exchange mod_installer_func.php [*]Install with The ModInstaller for updating the new version number [/LIST] [/LIST] [b]Version 1.3.1 2006-12-09[/b] [LIST][*]Feedback in case of timeout with big modifications Update: [LIST][*]New file standby.gif in html/sys-img (you can exchange this with your own graphic) [*]Exchange all language files [*]Exchange mod_installer_func.php [*]Install with The ModInstaller for updating the new version number [/LIST] [/LIST] [b]Version 1.3 2006-12-09[/b] [LIST][*]Fix pour le probleme timeout [/LIST] [HISTORY_END] [SQL] [QUERY] CREATE TABLE IF NOT EXISTS ibf_mods ( ID int(10) NOT NULL auto_increment, title varchar(255) default '', sub_title text default '', category VARCHAR(30) default 'Minor Mod', compatible VARCHAR(30) default 'ipb 1.3', author varchar(255) default '', email varchar(255) default '', version varchar(10) default '', mod_token varchar(32) default '', mod_dir varchar(255) default '', install_date varchar(10) default '', howto varchar(255) default '', codechange longtext, PRIMARY KEY (ID) ) [QUERY] ALTER TABLE ibf_mods CHANGE codechange codechange longtext [QUERY] ALTER TABLE ibf_mods ADD category VARCHAR(30) default 'Minor Mod' AFTER sub_title [QUERY] ALTER TABLE ibf_mods ADD compatible VARCHAR(30) default 'ipb 1.3' AFTER category [QUERY] ALTER TABLE ibf_mods ADD codechange text default '' AFTER howto [QUERY] CREATE TABLE IF NOT EXISTS ibf_mod_changes ( ID int(10) NOT NULL auto_increment, mid int(10) default '0', mod_name varchar(255) default '', file_name varchar(255) default '', func_name text default '', PRIMARY KEY (ID) ) [QUERY] ALTER TABLE ibf_mod_changes CHANGE func_name func_name text [QUERY] ALTER TABLE ibf_mod_changes ADD mod_name varchar(255) default NULL AFTER mid [QUERY] CREATE TABLE IF NOT EXISTS ibf_mod_collisions ( ID int(10) NOT NULL auto_increment, query_id int(10) default '0', mid int(10) default '0', mod_name varchar(255) default '', file_name varchar(255) default '', func_name text default '', running_time int(10) default '0', PRIMARY KEY (ID) ) [QUERY] ALTER TABLE ibf_mod_collisions CHANGE func_name func_name text [QUERY] DELETE FROM ibf_mod_changes WHERE mod_name='The ModInstaller' [QUERY] DELETE FROM ibf_mods WHERE title='The ModInstaller' [SQL_END] [MOD_TOKEN] mod_installer [FNAME] admin.php [STEP] [SEARCH] // Check to make sure the array key exits.. if (! isset($choice[$IN['act']]) ) [INSERT] //-- mod_installer begin if ($MEMBER['mgroup'] != $INFO['admin_group']) { global $CATS; unset($CATS['installer']); } if ($IN['act'] == "install") { if (file_exists(ROOT_PATH."sources/mods/installer/mod_installer_func.php")) { require ROOT_PATH."sources/lib/post_parser.php"; require ROOT_PATH."sources/mods/installer/mod_installer_func.php"; } else { die("Could not call required function from file 'sources/mods/installer/mod_installer_func.php' Does it exist?"); } } //-- mod_installer end [MODE] insert_above [STEP] [SEARCH] $IN = $std->parse_incoming(); [INSERT] //-- mod_installer begin $std->allow_unicode = 0; //-- mod_installer end [MODE] insert_above [FNAME_END] [MOD_TOKEN] mod_installer [FNAME] sources/Admin/admin_pages.php [STEP] [SEARCH] ?> [INSERT] //-- mod_installer begin $PAGES['installer'] = array( 1 => array( 'View Installed Mods', 'act=install' ), 2 => array( 'Install A Mod' , 'act=install&code=install' ), 3 => array( 'Collision Test' , 'act=install&code=collision' ), ); $CATS['installer'] = "MOD Installation"; $DESC['installer'] = "Autoinstallation Of Mods Made By The Modders At ibforen.de And invisionize.com"; //-- mod_installer end [MODE] insert_above [FNAME_END] [CODE_END] [COPY] L'archive de la mod est préstructurée. Merci de copier l'archive décompressée entièrement dans le répertoire racine de votre forum. [LIST][*]Si le répertoire lang de cette archive contient plus que la langue francaise dans lang/fr, you devrez copier les autres fichiers langues dans leurs répertoires respectifs. Exemple: Le fichier langue allemend se trouve dans lang/de. Si votre répertoires allemand se trouve dans lang/2, vous devez copier lang/de vers lang/2 [*]Dans le mème style, vous devez copier les fichiers skin de l'archive Skin/s1 dans les réertoires skin de votre forums. N'oubliez pas de resynchroniser les templates de la base depuis les fichiers PHP [arrow] Skins & Templates [arrow] Manage html templates [/LIST] [COPY_END] [CUSTOMIZE] There is no need to install the mod manually. Instead use Mod_Installer.php which resides in the root directory of your board. [CUSTOMIZE_END] [COMMENT_MOD] [size=5]This is the Development Edition [/size] [List][*]If you want to use The ModInstaller the first time please install this mod on a fresh installed ipb 1.2 in original state. [*]If you want to trust The ModInstaller and to keep it reliable do not longer modify the source files of your board manually. [*]In case of being obliged to modify the board manually take care of the collision results you can produce with The ModInstaller for each mod. But I cannot recommend any manual modifications. [*]Look at the CodeChange.php of the mods which are compatible with The ModInstaller. There you can find detailed informations which code is used to search for in order to insert the mod code. [*]After having installed a mod read the delivered htlm-howtos to understand which steps you have to do yourself. By example sometimes you have to change the settings of some new options in ACP before you can use the mod. [/LIST] [COMMENT_MOD_END] [HISTORY_OLD] [b]Version 1.2f 2006-01-29[/b] [LIST][*]Bugfixes [*]Correct displaying date and version of last installation [/LIST] [b]Version 1.2e 2005-09-04[/b] [LIST][*]Bugfixes [/LIST] [b]Version 1.2d 2005-03-04[/b] [LIST][*]Bugfixes [*]Compatible avec le Zend Accelerator [/LIST] [b]Version 1.2c 2004-01-07[/b] [LIST][*]Bugfixes [/LIST] [b]Version 1.2 2003-11-04[/b] [LIST][*]Option to remove sql changes was added [*]New mods added: [list][*]Prefix reg_ will run a search with a regular expression: reg_insert_below_eol, reg_insert_above_bol, reg_insert_below, reg_insert_above, reg_exclude [/list] [/LIST] [b]Version 1.1 2003-10-08[/b] [LIST][*]Source files with hardcoded text is handled even if the text is language dependant [*]New mods added: [list][*]insert_above_bol : insert the new code above the beginning of line 1 of search code [*]insert_below_eol : insert the new code below the end of last line of search code [/list] [/LIST] [b]Version 1.0[/b] [LIST][*]Installation des mods [*]Voir et enlever des mods installes [*]Tester des mods sur collision [/LIST] [HISTORY_OLD_END]