Quote:
Originally Posted by Akex
You have to set up this also in the script which calls showthread
PHP Code:
// ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array(); // get special data templates from the datastore $specialtemplates = array(); // pre-cache templates used by all actions $globaltemplates = array(); // pre-cache templates used by specific actions $actiontemplates = array();
Why ? Because, this need to be setup before global.php is calling. As it's written in your script, you call global.php (require_once mean called once and no more ...) but showthread.php won't call it (as it was already called) ... and $globaltemplates, $phrasegroups etc. won't be loaded.
|
Already thought of that but it didn't work

Thanks tho!
Quote:
Originally Posted by The Geek
Try NOT including global in your header.
However that means you will need to cleanse your $_REQUEST variables manually.
Not sure if it will work, but it may. Saying that, its still kind of clunky
You may be better off using the global_start hook to include your code. Reason being that all your URLs will have to point to the same script which will simply encase each page.
Go with the global_start hook it will work for you in the long run.
HTHs
|
That actually worked . I suppose it is ok that i have to clean the variables myself; better than nothing

! :banana: thx