Zachariah
09-11-2005, 11:33 PM
I am working on an add-on that adds $specialtemplates to forums/index.php but I am not having any success.
EX:
First, open your forum/index.php file and find:
// get special data templates from the datastore
$specialtemplates = array(
'userstats',
'birthdaycache',
'maxloggedin',
'iconcache',
'eventcache',
'mailqueue'
);
Replace with:
// get special data templates from the datastore
$specialtemplates = array(
'userstats',
'birthdaycache',
'maxloggedin',
'iconcache',
'eventcache',
'mailqueue',
'stuff'
);
I've tried array_merge in cache_templates hook--nothing.
$specialtemplates = array_merge($specialtemplates, array('stuff',));
Ideas / thoughts ? - I know $globaltemplates works this way, but not $specialtemplates?
EX:
First, open your forum/index.php file and find:
// get special data templates from the datastore
$specialtemplates = array(
'userstats',
'birthdaycache',
'maxloggedin',
'iconcache',
'eventcache',
'mailqueue'
);
Replace with:
// get special data templates from the datastore
$specialtemplates = array(
'userstats',
'birthdaycache',
'maxloggedin',
'iconcache',
'eventcache',
'mailqueue',
'stuff'
);
I've tried array_merge in cache_templates hook--nothing.
$specialtemplates = array_merge($specialtemplates, array('stuff',));
Ideas / thoughts ? - I know $globaltemplates works this way, but not $specialtemplates?