![]() |
Question about $templatesused...
What's the easiest way to tell if a template is being called that is not on the templatesused list?
|
Look in the php file. ;)
|
Hehehehe, I was hoping for a log or something. Oh well. ;)
|
use explain=1 on pages. Look for a query like SELECT * FROM template WHERE title IN (blah,blahblah,blahblah) ;)
|
Or you could do that. ;)
|
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.
|
How would you do that? I'd like to try it.
|
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:
|
Here's what I have for that code:
PHP Code:
|
Then right above that query, add:
PHP Code:
|
All times are GMT. The time now is 10:04 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:
|