The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Question about $templatesused...
What's the easiest way to tell if a template is being called that is not on the templatesused list?
|
#2
|
||||
|
||||
Look in the php file.
|
#3
|
|||
|
|||
Hehehehe, I was hoping for a log or something. Oh well.
|
#4
|
||||
|
||||
use explain=1 on pages. Look for a query like SELECT * FROM template WHERE title IN (blah,blahblah,blahblah)
|
#5
|
||||
|
||||
Or you could do that.
|
#6
|
|||
|
|||
You can also very easily modify gettemplate to echo the names of uncached templates when they're eval'ed. That's what I do on my test board to make sure $templatesused is correct.
|
#7
|
||||
|
||||
How would you do that? I'd like to try it.
|
#8
|
|||
|
|||
I don't have a reference vB2 functions.php ATM but if you have my embed PHP tags in templates hack installed, find:
PHP Code:
PHP Code:
|
#9
|
||||
|
||||
Here's what I have for that code:
PHP Code:
|
#10
|
|||
|
|||
Then right above that query, add:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|