View Full Version : Uncached Template Help
Joey805
03-03-2006, 09:26 PM
Hey guys,
I have the Event Attendance hack installed and am getting a couple uncached template messages at the bottom. Can you guys tell me how to fix these?
Uncached templates: calendar_roll (1)
Uncached templates: calendar_rollbit (1)
Thanks for your help,
Joey
MRGTB
03-04-2006, 10:11 AM
Open you global.php file and find this: (yours might be different as I use vB 3.0. And look for the bit I have highlighted in red.
// templates to be included in every single page...
$globaltemplates = array_merge($globaltemplates, array(
// the really important ones
'header',
'footer',
'headinclude',
'phpinclude_start',
'phpinclude_end',
// new private message script
'pm_popup_script',
// navbar construction
'navbar',
'navbar_link',
// forumjump and go button
'forumjump',
'gobutton',
'option',
// multi-page navigation
'pagenav',
'pagenav_curpage',
'pagenav_pagelink',
'threadbit_pagelink',
// misc useful
'spacer_open',
'spacer_close',
'username_loggedout',
'username_loggedin',
'timezone',
'STANDARD_ERROR',
'STANDARD_REDIRECT'
Then add you two templates at the top like this in red and see if that fixes it.
// misc usefull
'calendar_roll',
'calendar_rollbit,
'spacer_open',
'spacer_close',
'username_loggedout',
'username_loggedin',
'timezone',
'STANDARD_ERROR',
'STANDARD_REDIRECT'
And see if that fixes it
Code Monkey
03-04-2006, 01:33 PM
But that is a code hack that will break on vb upgrade.
Just go into your plugin manager and select create new plugin.
Select product, "Event Attendance".
Select hook location, "cache_templates".
enter title, Event Attendance: Cache templates
And then enter this code. That should do it.
if(THIS_SCRIPT == 'calendar')
{
$globaltemplates = array_merge($globaltemplates, array('calendar_roll', 'calendar_rollbit'));
}
Joey805
03-04-2006, 03:47 PM
But that is a code hack that will break on vb upgrade.
Just go into your plugin manager and select create new plugin.
Select product, "Event Attendance".
Select hook location, "cache_templates".
enter title, Event Attendance: Cache templates
And then enter this code. That should do it.
if(THIS_SCRIPT == 'calendar')
{
$globaltemplates = array_merge($globaltemplates, array('calendar_roll', 'calendar_rollbit'));
}
You're awesome! That totally fixed the problem!
THANK YOU!
Zachariah
03-04-2006, 04:48 PM
Ya in post #18
https://vborg.vbsupport.ru/showpost.php?p=755760&postcount=18
Code Monkey
03-04-2006, 05:20 PM
Same thing
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.