The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to show a template in another template?
I want to use a variable in the footer template, so I don't have to paste that html in the footer. So a new template to show in the footer template.
How do I do this please? Ty |
#2
|
|||
|
|||
Evaluate the new template into a variable using a plugin, then use that new variabl in your footer template.
|
#3
|
|||
|
|||
Thank you for that quick reply Marco. I tried what you suggested, however would it be possible to give more details about where the plugin needs to be made and it's content. Thanks again in front.
T. |
#4
|
|||
|
|||
Put the following in a plugin on the global_start hook:
PHP Code:
|
#5
|
|||
|
|||
Works, thanks
How can I cache this template in global php or do it in a plugin please? thank you |
#6
|
||||
|
||||
I've spent days trying to figure how to do exactly this. I've tried all sorts of overly complicated things... Bah... Who would have thought it would turn out to be so simple... lol.
Anyway, soz for hijacking your thread, but wooohooo, saves me a mission and a mighty big headache. :up: |
#7
|
|||
|
|||
ok lol
I just hope Marco knows how to cache it, I can't seem to get that to work in global.php or in a hook . |
#8
|
|||
|
|||
You can find a HOW-TO on caching templates in the vB3.5 How-To forum.
|
#9
|
|||
|
|||
sorry guess i have to read some more here
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|