The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi there,
I want to pass two variables to the Forumhome template. I'm doing a Youtube Slider: http://pastebin.com/pCA6MpAx My variables are two arrays, $youtubeimg and $youtubelink. I have created a plugin hooked to the Forumhome template already. Which would be the better way to pass this variables then? I have tried this in my plugin, for example: Code:
vB_Template::preRegister('FORUMHOME',array('youtubeimg' => $youtubeimg)); Regards. |
#2
|
|||
|
|||
![]()
That should have worked, if your variables are set when you make that call. Which hook did you use for your plugin, and what did you put in the template?
|
#3
|
|||
|
|||
![]()
I tried to use forumhome_start and parse_templates and I had in the template the following code:
Code:
<vb:each from="youtubeimg" value="singleimage"> <img src="{vb:raw singleimage}"> </vb:each> |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|