The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Registering $variables for Forumhome
Hello
i need help with registering some $variables for use in Forumhome within a plugin, the variables are already registered within a admincp file but i want to show the same data from those $variables in a plugin for the following Hook Location: forumhome_complete i need to output data from $whattoecho variable so the question is how do i register this variable to work in the plugin |
#2
|
|||
|
|||
I'm not sure what you're asking. You only need to register variables for use in a template, not a plugin. So when you say "the variables are already registered within a admincp file", what does that mean exactly? Maybe you're Using "registered" in some way other than what I think it means?
|
#3
|
|||
|
|||
Quote:
i have the following variables registered : PHP Code:
PHP Code:
now i need the data to appear below that so i need the data from $whattoecho to appear below that |
#4
|
||||
|
||||
I don't see any code that is registering the variables. Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide It will show you the code to register your variables for use in the FORUMHOME template.
|
#5
|
|||
|
|||
Quote:
If you do have the value in the forumhome_complete plugin, if you're using a template hook thenyou don't need to register the variable. |
#6
|
|||
|
|||
Quote:
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|