PDA

View Full Version : $vbulletin->templatecache : 3.8.3


xman_79
06-22-2009, 08:55 AM
Hi .

I have a problem in any plugin where I use :


$vbulletin->templatecache['TEMPLATENAME'] = str_replace($x, $y, $vbulletin->templatecache['TEMPLATENAME']);


If I use this cod the result is a blank page .

Example :
$vbulletin->templatecache['FORUMHOME'] => index.php = blank page

Server :
PHP 5.2.9
MySQL 5.0.77-community-log

Any help is welcomed .

Thanks .

akanevsky
06-22-2009, 11:25 AM
It will be filled up after templates are cached, for those that are. So using the above code is fine anywhere after the cache_templates hook. Sometimes templates are not cached (such as in the ajax script), so in that case you need to use fetch_template('TEMPLATENAME') as the last parameter.

xman_79
06-22-2009, 11:48 AM
ok , I understood .

Thank you very much .