![]() |
Put own variables
I want to include a php file in vb4 header.
How can i do? I don't understand well how to use a variable that i create in a new "global start" plugin. I try with {vb:raw varname}, but it doesn't display nothing... Thanks |
Variables must be registered with the template before you can use them. Add this to the end of your plugin, for example.
PHP Code:
|
id doesn't work:
Code:
ob_start(); |
Move the plugin to the 'parse_templates' hook and see if anything changes.
|
it works well! :)
thanks |
All times are GMT. The time now is 12:28 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:
|