The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
hello everyone, simple question; is it possible to register a php function as a variable (with a plugin I presume) then use it inside a template?
I have several small functions I want to be able to put on the same file and then execute them accordingly in each template or page that needs them. The other way I was doing it was just making a new file for each function (not as a function at that point of course), but it doesn't make sense to do several files when I can only do one. I was using the following plugin sort of successfully. It would register the function fine and parse it in the template but it would display the results of the function above the header at the beginning of the page (before the vb wrapper itself) and not where I placed the vb:raw inside the template. PHP Code:
If anyone can please spare a couple of minutes and explain why the output of the plugin is ending up way up there and which would be the right way of doing this I would be tremendously appreciative. Thank you for your time in advanced. Best regards. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|