The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Phpinclude questions (filburt?)
1/ If i'm calling templates in phpinclude, i don't want it adding a query to every page so should i use the $templatesused variable in the phpinclude too?
2/ How do i limit the code to running only when on a certain file: e.g. PHP Code:
Thanx - miSt |
#2
|
|||
|
|||
1. $templatesused must be defined before global.php is included, so that won't work (you can't cache templates via phpinclude).
2. Check out PAPI at vBT and use: PHP Code:
PHP Code:
|
#3
|
||||
|
||||
Yep this for a client hence why i am reluctant to install hacks for him as i don't want him coming back to me when he tries to upgrade and loses his hacks
Is there any way of cacheing the templates at all without hacking? I mean adding a query to the pages is a bit of a pain - miSt |
#4
|
|||
|
|||
No, there's no way unless you use a template that's already cached but never eval'ed.
|
#5
|
||||
|
||||
Darn - well thanks for the help
- miSt |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|