The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Vb4.2.1 custom plugin
I had the following custom plugin in VB3.8 global that referenced a PHP file and i simply called the VB paramater in the style but after the upgrade this doesn't seem to work anymore?
What is new syntax to make this work? PHP Code:
|
#2
|
||||
|
||||
That plugin, as listed, will work in vb4.
So ... What doesnt work exactly ? What do you mean by "i simply called the VB paramater in the style" ? |
#3
|
||||
|
||||
You need to register a variable for use in a template. So, you will need to register $include_latestpics and $include_latestpics2 for us in whatever template you are using them in.
Cellarius wrote a really good article that you may be interested in - [vB4] Rendering templates and registering variables - a short guide |
#4
|
|||
|
|||
Yes.... i should've been more specific on "not working"...
Basically... that code doesn't generate an error when the plugin is on... but I am trying to show the resulting data from the pHP within a forum block Previously i was able to refer to variable that was defined within PHP include file... I will try and read that article again... been awhile since i had to play with this stuff... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|