The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
PHP Code:
|
|
#2
|
||||
|
||||
|
If your template is in red, that means it isn't cached.
|
|
#3
|
||||
|
||||
|
how do i catch it ... Go Long?
|
|
#4
|
||||
|
||||
|
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:
|
|
#5
|
||||
|
||||
|
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 |
|
#6
|
||||
|
||||
|
I dont think you need the money sign in there, just the template name
Code:
$globaltemplates = array_merge($globaltemplates, array('headernav'));
|
|
#7
|
||||
|
||||
|
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:
|
|
#8
|
||||
|
||||
|
I said in my post to use the hook location cache_templates.
|
|
#9
|
||||
|
||||
|
Its not listed in the plug ins list to change the hook location
|
|
#10
|
||||
|
||||
|
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)
{
$globaltemplates = array_merge($globaltemplates, array('headernav'));
}
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|