The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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. |
#3
|
|||
|
|||
Have a look here: http://www.vbulletin.com/docs/html/t..._externalfiles. I found this really helpful.
|
#4
|
|||
|
|||
|
#5
|
||||
|
||||
That's not really a good idea.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|