PDA

View Full Version : Guide on how to make plugins?


deadlySniper
04-24-2012, 05:12 PM
Is there a guide on how to make plugins for vbulletin 4? I have been wanting to try and make my own but I havent been able to google any guides out there on how. Could anyone help me and point me into the direction I need to look.

Thanks,
Ryan

Lynne
04-24-2012, 05:31 PM
Best thing to do is take a look at a simple one and see how it's done.


Here are a couple of threads regarding Plugins/Products:
https://vborg.vbsupport.ru/showthread.php?t=82923 (https://vborg.vbsupport.ru/showthread.php?t=82625'][How to] Write Plug-ins/Hooks[/URL]
[URL="[How-to] Hooks and Plugins)

And, of course, there is info in the manual - Plugin System (http://www.vbulletin.com/docs/html/plugin_system)

deadlySniper
04-24-2012, 07:34 PM
So pretty much in the Plugin manual. I can make all my own PHP but have it pull in the necessary vbulletin files to make it work? I understand the XML part as far as for displaying purpose, but could I make my html and then convert it to xml?

kh99
04-24-2012, 08:29 PM
I can make all my own PHP but have it pull in the necessary vbulletin files to make it work?

Plugins let you execute php code at certain points in the existing vbulletin php scripts, so you can modify or add to the functionality. In that case you probably don't need to worry about bringing in vb files. Another thing you can do is make your own php scripts, in that case you need to include vb files. Lynne wrote an article on how to do that: https://vborg.vbsupport.ru/showthread.php?t=228112


I understand the XML part as far as for displaying purpose, but could I make my html and then convert it to xml?

Templates are like html with some added tags to provide conditions and variable replacement. So you definitely could write your html then copy it to a template.

deadlySniper
04-24-2012, 09:13 PM
Plugins let you execute php code at certain points in the existing vbulletin php scripts, so you can modify or add to the functionality. In that case you probably don't need to worry about bringing in vb files. Another thing you can do is make your own php scripts, in that case you need to include vb files. Lynne wrote an article on how to do that: https://vborg.vbsupport.ru/showthread.php?t=228112




Templates are like html with some added tags to provide conditions and variable replacement. So you definitely could write your html then copy it to a template.

Awesome. I used that page tutorial and was very helpful. Thanks for all the help

Pandemikk
04-24-2012, 09:18 PM
I never really felt the need for a plugin article. The basics are easy enough to grasp and if you can't grasp those you'll never be able to actually create the necessary code.