The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
help combining a product and plugin
I have made a product and a plugin and I would like to combine them so the person doesn't have to run both files.
Contents of the product Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <product productid="custom_links-Andrew Harmor" active="1"> <title>Custom Links</title> <description>Add custom links in a drop down box on the navbar</description> <version>1.0.0</version> <codes> <code version="1.0.0"> <installcode><![CDATA[ $db->query_write("CREATE TABLE `" . TABLE_PREFIX . "custom_links` ( `linkid` mediumint(10) unsigned NOT NULL auto_increment, `url` varchar(120) NOT NULL default '', `name` varchar(20) NOT NULL default '', PRIMARY KEY (`linkid`) );"); $db->show_errors();]]></installcode> <uninstallcode><![CDATA[$db->hide_errors(); $db->query_write("DROP TABLE `" . TABLE_PREFIX . "custom_links`;"); $db->show_errors();]]></uninstallcode> </code> </codes> <templates> <template name="custom_links" templatetype="template" date="1128881080" username="harmor19" version="3.5.0"><![CDATA[$custom_links ]]></template> </templates> </product> Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <plugins> <plugin active="1"> <title>Custom Links</title> <hookname>global_start</hookname> <phpcode><![CDATA[ //edited so no one will steal it]]></phpcode> </plugin> </plugins> |
#2
|
|||
|
|||
In the Plugin Manager in hte AdminCP, edit the plugin and look for the "Product" dropdown - click on it, and select your product.
Then export the product again, and the plugin will be included. The same applies for templates, phrases, settings, etc. |
#3
|
|||
|
|||
Thanks a lot
All I need to do now is code the admin file and I'll release my hack. Hopefully no one coded it already. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|