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. |
#62
|
||||
|
||||
Quote:
|
#63
|
||||
|
||||
Well, that's possible
|
#64
|
||||
|
||||
And done!
|
#65
|
|||
|
|||
Great how to. answered some questions for me
One thing id like to know, or have more info on (cant find anything using search or browsing here or google), is about the option type (i.e textarea, yesno) and default values. For example: I would like to use a yesno box, but i cant seem to get the default to switch to yes. What default values do i use here? Also id like to use a single line textfield rather than a text area. How do i do that? I know maybe this should be answered in the questions forum, but I think this info would contribute to the howto as well |
#66
|
||||
|
||||
Default for Yesno yes = 1
|
#67
|
|||
|
|||
Kirby, can you clear up some things for me? I have set my test installation of 3.5RC3 to debug mode and I now see the "Add New Setting Group" and "Add New Setting" things, but I see nothing that corresponds to "Add New Phrase Group" or "Add New Template Group". I want to be able to totally segregate my product from the rest of vB. Does that make sense? Thanks in advance for your assistance and speedy reply.
|
#68
|
||||
|
||||
Adding Phrase Groups has to be done manually as there is no GUI for it.
1) Locate the maximum phrasetypeid in table phrasetype that is < 1000 2) Insert a new record into this table that has phrasetypeid=this value+1 3) Add a new colume phrasegroup_fieldname to table language 4) Rebuild languages Then you can add Phrases to youre Phrasgegroup Grouping Templates is done with a Plugin on Hook template_groups PHP Code:
|
#69
|
|||
|
|||
Quote:
|
#70
|
||||
|
||||
Yes it will.
|
#71
|
|||
|
|||
Quote:
$only['prefix'] = 'test_product_'; test_product_header test_product_footer This should wrap up my queries for a bit. Thanks for your assistance Kirby. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|