The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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? |
#2
|
|||
|
|||
![]()
if you're just trying to add text, why not add a phrase and add it to the footer template?
|
#3
|
||||
|
||||
![]()
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
|
#4
|
|||
|
|||
![]()
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:
|
#5
|
||||
|
||||
![]()
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:
|
#6
|
|||
|
|||
![]()
finally worked
![]() Thanks Lynne |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|