The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[How-To] Product Managament (vBulletin 3.5 RC 1 and up)
This How-To is mainly meant for Hack-Developers, if you are only planning to use Hacks just read the End-User section. Developers vBulletin 3.5.0 RC1 introduces a new concept for customizing/modifying vBulletin: Products. With Products, you can manage Plugins, Phrases, Settings and Templates in just one XML File. Furthermore it supports Install/Uninstall Codes (for running queries, etc.), it also covers updating existing Hacks as you can add Codes for different Versions. To start, you first have to turn on debug mode: Put PHP Code:
Then go to ACP / Plugin System / Manage Products. Click Add/Import Product. In the second Form (Add New Product) fill in the Details for your Hack:
Afterwards, create all the Plugins, Phrases, Templates and Settings your Hack requires and make sure you select the Product you just created. Important: Templates must be placed in the MASTER Style, Phrases in the MASTER Language When you are finished, go to ACP / Plugin System / Manage Products and select Edit from the Dropdown next to your Product. In the Form (Add New Install/Uninstall Code) add all Code necessary to install/uninstall your Hack (eg, Queries, etc.). If you are updating an existing Hack, add new Install/Uninstall Codes for the new Version that just make the changes necessary to upgrade the previous Version; Product Management will make sure that all necessary Codes will be run. If your Hack includes Usergroup Permissions/Bitfields, add the following Code to Install and Uninstall to rebuild the Bitfield cache: PHP Code:
End-Users Go to ACP / Plugin System / Manage Products. Click Add/Import Product, select the product XML File for the Hack you want to install. If you are upgrading an existing Hack, make sure that Allow Overwrite is set to Yes This How-To is (C) 2005 by KirbyDE and you are not allowed to redistribute it in any way without my explicit consent. |
#12
|
||||
|
||||
Doesn't seem to be case-sensitive.
It must not start with vb as this Prefix is reserved for Jelsoft |
#13
|
|||
|
|||
Why do they get the vB Prefix, what makes them so darn special! ^^. Great how-to. This will help alot!
|
#14
|
||||
|
||||
Thanks Kirby!
|
#15
|
||||
|
||||
First came the Plug-In system, took me a while to recreate an installation php files for my hacks.
Here comes the product thingy It's not that I hate it or something, in fact I love it, but what about the time I have spent, gone for nothing ... nothing :cry: waaa |
#16
|
||||
|
||||
Well, you could have waited until Gold
|
#17
|
|||
|
|||
hi can somebody help me i have got this code from doing this tut but when i install this app it don't add the database please help me here also i think i need to build the phrases can anyone tell me what file i need to include and function to call in 3.5.0 think it's build_languages() don't know if it's changed
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="imghost" title="Image Hosting final" description="Image Hosting" version="2.1 beta 2" active="1"> <codes> <code version="2.1 beta 2"> <installcode><![CDATA[$db->query('CREATE TABLE '. TABLE_PREFIX .'image_host ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, userid INT NOT NULL, img_file VARCHAR(225) NOT NULL, img_name VARCHAR(255) NOT NULL, file_size INT NOT NULL, img_width INT NOT NULL, img_height INT NOT NULL )TYPE=MyISAM;'); $db->query("ALTER TABLE ".TABLE_PREFIX ."usergroup ADD imghost INT( 10 ) UNSIGNED NOT NULL ;"); $db->query("ALTER TABLE ".TABLE_PREFIX ."usergroup ADD imghostset INT( 10 ) UNSIGNED NOT NULL ;"); $db->query("ALTER TABLE ".TABLE_PREFIX ."usergroup ADD imghost_width INT( 10 ) DEFAULT '100' NOT NULL ;"); $db->query("ALTER TABLE ".TABLE_PREFIX ."usergroup ADD imghost_height INT( 10 ) DEFAULT '100' NOT NULL ;"); $db->query("ALTER TABLE ".TABLE_PREFIX ."usergroup ADD imghost_files INT( 10 ) DEFAULT '100' NOT NULL ;");]]></installcode> |
#18
|
||||
|
||||
The attached Product XML works fine for me.
Phrases, Templates, Settings will be installed/uninstalled automatically - you don't have to do anything for that (except assigning them to your Product of course). Please keep in mind that they must be in MASTER Style/MASTER Language! |
#19
|
|||
|
|||
Custom vBulletin settings must be added with a query? Or is there a function available with adds them without using a query?
|
#20
|
||||
|
||||
This is an amazing new feature for vB - this means that installing hacks can all be done via Admin CP with no need to edit files, run queries, add templates or phrases.
|
#21
|
|||
|
|||
Another great 3.5 tutorial, Kirby!
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|