![]() |
I wrote this templete and its showing up red in debugger
PHP Code:
|
If your template is in red, that means it isn't cached.
|
how do i catch it ... Go Long?
|
Maybe just a hand-off will do. :)
This is an example of caching a template only used on the showthread page. You would remove the bit about THIS_SCRIPT if it is used on every page. hook - cache_templates PHP Code:
|
This is used on every page its part of my header
So i need to add PHP Code:
$headernav template ? --------------- Added [DATE]1226524658[/DATE] at [TIME]1226524658[/TIME] --------------- the templete is called headernav |
I dont think you need the money sign in there, just the template name
Code:
$globaltemplates = array_merge($globaltemplates, array('headernav')); |
add that to the beginning of my template ?
--------------- Added [DATE]1226528213[/DATE] at [TIME]1226528213[/TIME] --------------- I added that to the beginning of my template and when i viewed the site it had the text PHP Code:
|
I said in my post to use the hook location cache_templates.
|
Its not listed in the plug ins list to change the hook location
|
Quote:
Product: vBulletin (Or if your modification is a product choose that) Hook Location: cache_templates Plugin name: Template Cache For My Mod Execution Order: 5 Plugin PHP Code: Code:
if (is_array($globaltemplates) |
Im lost bud ,
Originally i wrote the Code and had it in the $header , I then has AWCoding come in and make it to where it was its own templete $headernav so the only thing in the $header is $headernav so my pages would load faster IMO , now i find out its not catched and all i want it to be is right and dont know how because i dont think he installed a plug in he just made it a templete and found a away for it to fire with just $headernav in the $header template |
It doesn't matter if he made it a plugin or not. If you want the template cached *you* need to make a plugin to do so. Follow the instructions in post 10 if you want that template cached. If you don't care if it's cached or not (it's not the end of the world), then don't make the plugin to cache it.
|
Thanks for your help
AWcoding is in there right now fixing it |
Already done enjoy.
|
You Are The Man !! Thanks
|
All times are GMT. The time now is 10:16 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:
|