The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
variables not shown in templates
hello,
I don't understand this. I made a plugin for general use like this: hook name: global_start (i checked also other hooks but nothing working) plugin code: Code:
$myvar = "vb4 plugin not showing variables"; Code:
{vb:var myvar} it's work if I do a new hook and add to the template, or create new template for just this single variable? help please. |
#2
|
||||
|
||||
You need to register it to work... a search of the forums will get you your answer
|
#3
|
||||
|
||||
thank you, but I am asking because I already read article about how to register variables. my problem is that I don't want to create new template .. I just want to add my var to an exist template .. I tried this but get an error:
$templater = vB_Template::create('navbar'); $templater->register('my_var', $my_var); $templater->render(); |
#4
|
|||
|
|||
<a href="http://www.vbulletin.com/forum/entry.php/2387-Pushing-your-variables-to-vBulletin-4-templates" target="_blank">http://www.vbulletin.com/forum/entry...in-4-templates</a>
or is this the article you've already read? |
#5
|
||||
|
||||
PHP Code:
|
#6
|
||||
|
||||
thx guys.. it's work perfect
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|