The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
SOLVED*
was using another product of mine as the skeleton of this product and had both installed which caused a clash in the replace.... well i think lol renaming drcrb_nav solved the problem im trying to add my custom template to the very top of the header template, in global start I have: Code:
$drcrb_nav = '<a name="top"></a>';
$vbulletin->templatecache['header'] = str_replace($drcrb_nav,$drcrb_nav.fetch_template('drc_idle'),$vbulletin->templatecache['header']);
Code:
<hookname>cache_templates</hookname>
<phpcode><![CDATA[
$globaltemplates = array_merge($globaltemplates, array('drc_idle_css','drc_idle','drc_idle_script'));
]]></phpcode>
Code:
$drcrb_inc = '<!-- / CSS Stylesheet -->';
$drcrb_nav = '<a name="top"></a>';
$drcrb_cr = '$vbphrase[powered_by_vbulletin]';
$vbulletin->templatecache['headinclude'] = str_replace($drcrb_inc,$drcrb_inc.fetch_template('drc_idle_css'),$vbulletin->templatecache['headinclude']);
$vbulletin->templatecache['header'] = str_replace($drcrb_nav,$drcrb_nav.fetch_template('drc_idle'),$vbulletin->templatecache['header']);
$vbulletin->templatecache['footer'] = str_replace($drcrb_cr,$drcrb_cr.fetch_template('drc_idle_script'),$vbulletin->templatecache['footer']);
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|