I started creating products, and I am stuck
Can I ask, the footer and header templates, can it be a part of caching, or can I use the caching on footer or header template... and which templates can be reffered to or as $globaltemplates...
Here is the HOOK for caching my template below:
<hookname>cache_templates</hookname>
and my PHPCODE:
$globaltemplates = array_merge($globaltemplates, array('MYCODENAME'));
and my replacement code:
if ($vbulletin->options['social_five_on'])
{
$replace = '$ad_location[ad_footer_start]';
$vbulletin->templatecache['footer'] = str_replace($replace,$replace.fetch_template('MYCODENAME'),$vbulletin->templatecache['footer']);
IS this done right?
by the way this is for vB3.8
|