vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Guide on how to make plugins? (https://vborg.vbsupport.ru/showthread.php?t=281988)

deadlySniper 04-24-2012 05:12 PM

Guide on how to make plugins?
 
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

And, of course, there is info in the manual - 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

Quote:

Originally Posted by deadlySniper (Post 2323170)
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


Quote:

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

Quote:

Originally Posted by kh99 (Post 2323182)
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.


All times are GMT. The time now is 01:16 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00996 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete