It is related to this article? I'm asking how using what I found in this article i can do what others have clearly done since they said so in this thread. If you don't want to help me that's fine but since you helped others with there question to do with the footer I thought you might help me too silly me what was I thinking.
|
oops, fixed it.
|
I've tried following this example, but am having issues.
I am trying to get a custom template that was installed via an addon to show up in the header template. My plugin (uses the global_start hook): PHP Code:
PHP Code:
|
To add a template in another with $template_hook add this plugin:
PHP Code:
PHP Code:
|
Cellarius, this is an excellent article so I hope you may help me on my little issue. I read many threads and this article and I still cannot get aroudn to fix it.
In vB3 I had a simple plugin to display random banners on navbar template or parse_templates hook Code:
$random_number = mt_rand(1, 5); I posted my problem in this thread too. https://vborg.vbsupport.ru/showthread.php?t=249848 I hope you can help and thanks for your time. |
You need to then preregister the array $random_banner for use in the navbar. Something like:
vB_Template::preRegister('navbar', array('random_banner' => $random_banner)); |
Thank you very much Lynne,
I had to add a little bit more and actually change the plugin code to a simpler version. Inside the plugin I had to create a third variable $new_banners and only pre-registered that variable within template and ran it through parse_templates hook Quote:
For some (unknown) reason, {vb:raw random.banner.random_number} wasn't working as you suggested, although the arrays were set correctly. I appreciate your help and borbole for helping me through this. I hope other users find this little experience useful in their sites. |
Quote:
|
Just a small question,
i want to create a template that is showing above the header template.. do i need to register this template ? and how do i call this template above the header? its for a suite version of vB4.X |
I asked this question over at the other VB forum and was directed to this article. Being completely new to all of this stuff and am still learning my way around, can someone please spell this out to me...
Quote:
|
All times are GMT. The time now is 09:02 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|