The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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.
|
![]() |
|
|