The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
"Fetching" multiple templates?
I basicly have a couple of "module" which I want to show in the navbar.
However, this is partly template based... When I call a template the way I know PHP Code:
What's the command for calling a template in a way that I can still call the final template? Help would be appreciated, hoping for a quick reply |
#2
|
||||
|
||||
Quote:
eval('$var("' . fetch_template |
#3
|
|||
|
|||
EDIT:
It just returns a blank page for me :-/. Could you maybe post a brief example on how I should this code? Thanks |
#4
|
||||
|
||||
print_output means after reading that line it will stop doing anything after that line to print out the template in its param.
so before print_output you just have to code: eval('$something = "' . fetch_template('template_name') . '";'); just use it as many times as you want to create the templates, and of course it can only be used within the template feched by print_output. hope I made myself clear. |
#5
|
|||
|
|||
I'm assuming you have one template as a main container and your other templates would be internal nested templates....
Basically.. use PHP Code:
PHP Code:
|
#6
|
|||
|
|||
I understand the print_output part, as I am no noob to PHP.
What I did not understand, was if I have to define the $var, and if so, what should it contain, etc... |
#7
|
||||
|
||||
Quote:
PHP Code:
$var as in a $varible. like lets say you want to use the postbit template once PHP Code:
|
#8
|
|||
|
|||
Quote:
|
#9
|
|||
|
|||
Quote:
So, basicly, in the main template, I can use the $var which I used to "fetch" the template? I can't try it now, but I think I understood it, thanks. |
#10
|
||||
|
||||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|