![]() |
$templatesused - a question
Say you already have a $templatesused variable in a file, but it's getting very long, can you just add another $templatesused=... etc below it? Would it work?
|
No because it's used to cache the templates before including global.php. Any uncached templates must be queried from the database.
(I think) |
I just figured out that you can indeed add another templatesused var, below it, as long as you have $templatesused = ",blah_template,blah,blah";
So basically start with a comma. |
you need to add a . before the =
So: $templatesused .= ",blah_template,blah,blah"; |
vB2:
PHP Code:
PHP Code:
|
are these "templateused" in the file where they are needed, or are they stored in a extra file which will be included from global.php?
nevertheless i like the new style :) |
I don't makes it more complicated if you don't know PHP very well :(
- miSt |
if you don't know php very well you shouldn't play with vb's source code ;)
|
Maybe I'm not getting something but wouldn't this be more logical?
PHP Code:
|
Quote:
|
All times are GMT. The time now is 06:22 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|