![]() |
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. |
You need to register it to work... a search of the forums will get you your answer
|
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(); |
<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? |
PHP Code:
|
thx guys.. it's work perfect
|
All times are GMT. The time now is 09:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|