The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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?
|
#2
|
|||
|
|||
![]()
No because it's used to cache the templates before including global.php. Any uncached templates must be queried from the database.
(I think) |
#3
|
|||
|
|||
![]()
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. |
#4
|
|||
|
|||
![]()
you need to add a . before the =
So: $templatesused .= ",blah_template,blah,blah"; |
#5
|
||||
|
||||
![]()
vB2:
PHP Code:
PHP Code:
|
#6
|
||||
|
||||
![]()
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 ![]() |
#7
|
||||
|
||||
![]()
I don't makes it more complicated if you don't know PHP very well
![]() - miSt |
#8
|
||||
|
||||
![]()
if you don't know php very well you shouldn't play with vb's source code
![]() |
#9
|
|||
|
|||
![]()
Maybe I'm not getting something but wouldn't this be more logical?
PHP Code:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|