The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Calling function from template
I'm a noob so sorry, but here is my question.
I want to call a php function from a template. Basically in the php file lets say I have a function Code:
function test($testvariable) { echo $testvariable; } $testcall = test("lol"); Thanks |
#2
|
|||
|
|||
You can't. Templates are HTML, not PHP.
Create a plugin with your PHP code. If needed asign the output to a variable that can be used in your templates. |
#3
|
|||
|
|||
That makes sense, thank you.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|