The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hey, this is my first time i have ever peeked into vBulletin coding, and have learned a lot in the past few days. Now, i am very experienced in PHP programming, but have no knowledge of this VB products/plugin system.
I have learned how to create an install/uninstall code for my SQL stuff that needs to be done on install and uninstall. I also have created templates for each of my pages. What i dont understand is what to do with thoes templates? I want to make it so i could call them from my php code by using Code:
eval ('print_output("' . fetch_template('TEMPLATENAME') . '");'); I am a newbie at all of this, so please help me out. thanks! |
#2
|
||||
|
||||
![]()
To get the templates to your product, enable debug mode, create the product using the product manager, and then assign that template to the product.
Theres a more detailed article of how to do it in the article section here, as I know my description there sucked https://vborg.vbsupport.ru/showthrea...hlight=product |
#3
|
|||
|
|||
![]()
Thanks, great find.
but this skips over the most important part to me. What is a plugin? how do i create one? what is the purpose of having one? what is a phrase? more info on these things? thanks! |
#4
|
||||
|
||||
![]()
A plugin is like a php file edit, or including a php file into vBulletin to add some sort of functionality or to display information.
A phrase is just like a language file in the sense that if you use something like $vbphrase[register] people from different languages can edit that phrase rather then ahving to manually edit the templates You creat plugins, from the AdminCP -> Plugin Manager -> Add New Plugin The hook locations are different locations where the plugin gets executed, for example the global_start hook will execute a plugin at the start of every page, and something like a forumdisplay_complete plugin will execute on forumdisplay pages. I think ![]() |
#5
|
||||
|
||||
![]()
That thinking will get you every time.
![]() |
#6
|
|||
|
|||
![]()
great so if i wanted to hook it to a php file i created (teams.php), what would i need to hookj it to? do you need to create hooks in the php file?
thanks for all your help! |
#7
|
||||
|
||||
![]()
A hook is a location in one of vBulletin's (or your own) PHP files. They are used by plguins to determine where the plugin PHP code will be run.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|