Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Articles Thread, How to make a plugin: in vBulletin; How to make a plugin: I have an addition to this tutorial: vbulletin_plugins.xml If you need to tell your users ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3857


Reply
LinkBack Thread Tools Display Modes
How to make a plugin:
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
28-09-2008, 08:12 PM
 
How to make a plugin:

I have an addition to this tutorial:

vbulletin_plugins.xml
If you need to tell your users to add a lot of plugins, this will become tedious as much copy/pasting is required. A simpler way would be to use the .xml import. It works just like the importing of templates and phrases, by adding the contained code as a Plugin.
The correct format for a plugin.xml file is like so (thanks to Live Wire):
Code:
PHP Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<plugins>
    <plugin active="1">
        <title>vB Category Icons</title>
        <hookname>forumdata_start</hookname>
        <phpcode><![CDATA[$this->validfields['forumhomeicon'] = array(TYPE_STR, REQ_NO);]]></phpcode>
    </plugin>
</plugins>
Explanations:
<plugin active="1"> - The 'active' attribute determines the default value of 'Plugin is Active' in the Plugin Manager.
<title></title> - Self explanatory, it is the 'Title' field in the Manager.
<hookname></hookname> - The 'Hook Location' you would select.
<phpcode><![CDATA[ ]]></phpcode> - Anything added in the space between these is added to the 'Plugin PHP Code' part.


// end my contribution (if this is being merged into the first post, nothing below this is to be included)

And just for all you lazy people out there, here is an empty set, ready for copypasting into a blank xml file (only the <?xml and <plugins> tags need to be there already):
Code:
PHP Code:
<plugin active="1">
        <
title></title>
        <
hookname></hookname>
        <
phpcode><![CDATA[]]></phpcode>
    </
plugin>
I hope this helps hack writers that want to minimise the hassle for the end-user
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
Reply

Articles Thread, How to make a plugin: in vBulletin; How to make a plugin: I have an addition to this tutorial: vbulletin_plugins.xml If you need to tell your users ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3857


Bookmarks

Tags
make, plugin


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Roboform Pro 6.9.85.0 Already Patched w/FireFox Plugin! Developer Software and Programs 0 20-11-2008 12:30 AM
Advanced Plugin Optimization System Developer Articles 0 28-10-2008 04:15 AM
phpcode Preview in Plugin Manager Developer Articles 0 22-10-2008 02:24 AM
Linkification plugin for Firefox/Mozilla Developer Software and Programs 0 22-10-2008 01:47 AM
I want to learn to develop a plugin – where should I start ? Developer Articles 0 28-09-2008 07:49 PM