![]() |
Adding PHP to templates
I would like to add my own custom php code to the vbulletin templates.
I have modified the templates to give me a column on the left hand side. I would like to place my own code in here to display information from a DB not associated with Vbulletin. This code will display for example a list of links stored in a DB, images stored in a DB etc.... In terms of php coding I am fine, but am unsure where to even start to add it to the templates. Could anyone point me to a tutorial or provide some insight where to start? I have searched for several hours and come up with nothing useful. Cheers |
You can not use PHP in templates, they are HTML only.
You will need to create a plugin and assign the output of your PHP code to a variable. The variable can be used in the template. |
Have a look here: http://www.vbulletin.com/docs/html/t..._externalfiles. I found this really helpful.
|
|
That's not really a good idea.
|
All times are GMT. The time now is 06:15 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|