The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Where do plugins go?
Hello
I want to make a new custom page. I've finally figured out how to get Gary King's excellent article working. How to create your own vBulletin-powered page! (https://vborg.vbsupport.ru/showthread.php?t=62164). My custom page is written in php. As I understand it I need to use the headers and the navbar in Gary's TEST template but I need to put my code into a plugin. This seems to be a variable that will contain all the php code, and this gets evaluated in the expansion of the template. My question is where do I assign my php code to the variable? ob_start(); include('path/to/this/file/myfile.php'); $includedphp = ob_get_contents(); ob_end_clean(); This code looks like it might fit into a template? The manual says to put it into :global_start but I do not know what and where that is? Then there's the hooks, are these just suitable places in the code? Thanks for any help. I'll write it up nicely when I'm done, remembering all the tings that puzzled (are still puzzling) me John |
#2
|
|||
|
|||
Your php code should go into the .php file of your new vBulletin page. Plugins are used to insert PHP code into already existing vBulletin files.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|