The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#2
|
|||
|
|||
![]()
What you'd want to do is register the variable to your template. If the template is being rendered somewhere else, then you want to use "preRegister", like this:
Code:
vB_Template::preRegister('templatename', array('var' => $var)); then in the template you'd put {vb:raw var} wher eyou want it to appear. There's another issue with what you posted because you might have more than one value returned from your query. As for which hook location to use, that depends on which template you want to display the data in and where it's rendered. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|