![]() |
|
Article Options |
[How-To] Product Managament (vBulletin 3.5 RC 1 and up)
by
![]() Rating:
![]() 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
in config.php. 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:
When everything is done, go to ACP / Plugin System / Manage Products again and export the Product as XML; this will then include all Plugins, Templates, Phrases, Settings and Install/Uninstall Codes required. 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. No members have liked this post.
Last edited by Andreas; 22 Feb 2006 at 09:36.. |
||||||||
Views: 25840
|
Comments |
#2
|
||||
|
||||
ohh thanks you are fast :P
edit: so the product ID is not a number, right? do all installations of the product will have the same product ID? No members have liked this post.
Last edited by Dream; 26 Jul 2005 at 21:13. |
#3
|
|||
|
|||
Thanks, Kirby, for this useful HowTo
![]()
__________________
I can no longer support any of my hacks. Please do not contact me for that. Feel free to create and post new versions of my hacks, as long as you give me credit for the original work. No members have liked this post.
|
#4
|
||||
|
||||
Originally Posted by Dream
The Product ID is an Identifier for your Product like myhack, welcomepm or profileviews (those are IDs of my Hacks).
They will be the same on every Installation. No members have liked this post.
|
#5
|
|||
|
|||
__________________
I can no longer support any of my hacks. Please do not contact me for that. Feel free to create and post new versions of my hacks, as long as you give me credit for the original work. No members have liked this post.
|
#6
|
||||
|
||||
That would not work, the user trying to install this would get a warning that this Product is already installed (if Allow Overwrite isn't selected).
No members have liked this post.
|
#7
|
|||
|
|||
Oh. So the product ID becomes the actual filename?
EDIT: Oh, and why turn on debug?
__________________
I can no longer support any of my hacks. Please do not contact me for that. Feel free to create and post new versions of my hacks, as long as you give me credit for the original work. No members have liked this post.
Last edited by akanevsky; 26 Jul 2005 at 21:29. Reason: Automerged Doublepost |
#8
|
||||
|
||||
You can enter just any Filename you want. But yes, it will use the Product ID as default.
You must turn on Debug Mode as you can only select Products and Master Style/Language when this is turned on. No members have liked this post.
|
#9
|
||||
|
||||
well I guess its good to use "kirbydeWelcomePM" or "darkvisorMod" as product IDs, im gonna use that if I make something
are they case-sensitive? No members have liked this post.
|
#10
|
|||
|
|||
Oh, and another question - why mustn't it contain "vb"?
__________________
I can no longer support any of my hacks. Please do not contact me for that. Feel free to create and post new versions of my hacks, as long as you give me credit for the original work. No members have liked this post.
|
#11
|
||||
|
||||
Doesn't seem to be case-sensitive.
It must not start with vb as this Prefix is reserved for Jelsoft ![]() No members have liked this post.
|
#12
|
|||
|
|||
Why do they get the vB Prefix, what makes them so darn special! ^^. Great how-to. This will help alot!
__________________
Full Time PHP Developer Please feel free to contact me if you have any paid work to be done. No members have liked this post.
|
#13
|
||||
|
||||
Thanks Kirby!
![]()
__________________
L'chaim No members have liked this post.
|
#14
|
||||
|
||||
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 No members have liked this post.
|
#15
|
||||
|
||||
Well, you could have waited until Gold
![]() No members have liked this post.
|
![]() |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 15:22.