![]() |
Help with plugin
I am trying to work out a simple plugin as follow:
location: init_startup PHP Code:
HTML Code:
{vb:var savevar} Where is the problem? |
if you're just trying to add text, why not add a phrase and add it to the footer template?
|
You need to also preregister the variable for use in the footer template. Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide
|
wpeloquin, it is just an example but in the real code there are some calculations needed to be done before displaying the results in the footer
Lynne, I read the article and modified my plugin to: PHP Code:
PHP Code:
|
So, you have a template named "mytemplate" and you want it to show in the footer? You still have no preregistered the variable $showdata, or the results from your created template, for use in the footer template. You'll need something like:
PHP Code:
|
finally worked :)
Thanks Lynne |
All times are GMT. The time now is 08:17 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:
|