PDA

View Full Version : specialtemplates and plugins ?


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?

Andreas
09-11-2005, 11:44 PM
Can't work as Plugins are Datastore Items themself, see this Thread (https://vborg.vbsupport.ru/showthread.php?t=93007).

Currently, there is no way to cache Datastore Items through Plugins.

What you can do to cut down File Edits to a minimum: use config.php

Zachariah
09-12-2005, 04:10 PM
Thank you Sir
- so who do we "nudge" to request them work? :D

It would be great to have all "code" in the plugin vs. file edits.

Andreas
09-12-2005, 04:24 PM
Ask at vb.com, maybe in the Thread I started :)