The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#41
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
|
#42
|
||||
|
||||
Quote:
Quote:
Quote:
Code:
// ##################### DEFINE IMPORTANT CONSTANTS ########################## $script_version = ; // ######################################################################## // ######################### START MAIN SCRIPT ############################ // ######################################################################## if ($current_version < $script_version) { if ($DO_UPGRADE_SETTINGS === true) { } if ($DO_UPGRADE_TEMPLATES === true) { } if ($DO_UPGRADE_PHRASES === true) { print_description_row('Skipped Phrasegroup: <b><i>' . HACK_NAME . '</i></b>'); } if ($DO_UPGRADE_QUERIES === true) { print_description_row('<center>Updating tables......</center>'); print_description_row('<center>All tables updated OK.</center>'); } if ($DO_UPGRADE_DONE === true) { $vbulletin->db->query_write(" UPDATE `" . TABLE_PREFIX . "setting` SET value = '" . intval($script_version) . "', defaultvalue = '" . intval($script_version) . "' WHERE varname = '" . addslashes('rpg_versionnumber') . "' "); print_description_row('Updated Setting: <b><i>Version Number</i></b>'); } } This is a template upgrade file for my RPG. Whenever I make a new version number, I simply add the 4 digit version number to the first var, then place my queries whever they are supposed to be. The same can be done with HTML manual templates. I can have one snippet of code for each possible part of the installer, be it adding templates etc, then simply copypaste them x times according to how many steps I have, and delete the ambiguous stuff. Unless you used ghey nesting of tables, this is hassle-free I do the same for my phrases XML file. I make "blank" phrases, and simply fill out varname/text, then cut and paste it under the correct section Takes very little time, and is very much free XD PS: I dloaded your manual, and I didn't like the colour scheme much, sorry I suggest you have settings a-la vBOptions where you allow users to define their own hex code for stuff like bgcolor, table head and table cat classes, etc. This can be either a global vboption stored set, or per-manual definition. This way, not all manuals are too "default" |
#43
|
|||
|
|||
Quote:
What you showed me is PHP script, not a HTML template... Quote:
|
#44
|
||||
|
||||
Quote:
|
#45
|
|||
|
|||
Oh, I see.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|