The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
How do I fetch more than 1 template in a php file, I tried copying the line, but it didn't work. Here is the code for the page I am editing.
PHP Code:
|
#2
|
|||
|
|||
![]() Quote:
simply add eval('$varname= "' . fetch_template('templatename') . '";'); before eval('print_output("' . fetch_template('league') . '");'); and edit template 'league' and add $varname where ever you want to show other template... |
#3
|
||||
|
||||
![]()
Thanks works great.
|
#4
|
||||
|
||||
![]()
You need to make sure you cache the other templates
|
#5
|
||||
|
||||
![]()
Hmm I didn't cache them and it worked, it is just for speed? Also, how would I make a template only show up to admins.
|
#6
|
|||
|
|||
![]()
if ($bbuserinfo['usergroupid'] == "6") {
eval('$varname= "' . fetch_template('templatename') . '";'); } this is a php condition , there is also a template condition which i dont exsacly remember |
#7
|
|||
|
|||
![]() Quote:
If you don't cache the templates every call for a template requires anthor query to your database. By putting all the templates your going to use in the cache you can fetch them all with one query. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|