2007-10-17, 08:30 PM
Hello,
In another topic, I mentioned how I wanted to omit a certain line of code. -Lex suggested to me that I make two templates, and use one for the site and one for the forum. What I did was, I made 2 custom templates: headertemplate and headersite. headertemplate contained the part of the template I wanted to include in both. The header template has the following code:
headersite is the template I included on my site, which has the same code as above, just without the second and last lines. Now, the site one works perfectly, but the original one does not. I have added all new templates to global.php. Even stranger, if I edited the index template, and told it to include headersite, it would work. I have no idea why the header template wouldn't include this template, as there's no valid reason. The rest of the header template works, but not the inclusion.
All help is appreciated. Thank you.
In another topic, I mentioned how I wanted to omit a certain line of code. -Lex suggested to me that I make two templates, and use one for the site and one for the forum. What I did was, I made 2 custom templates: headertemplate and headersite. headertemplate contained the part of the template I wanted to include in both. The header template has the following code:
{$headertemplate}
<br/><navigation>
<div id="content" style="vertical-align: top;">
{$bannedwarning}
{$bbclosedwarning}
{$unreadreports}
<br/>
headersite is the template I included on my site, which has the same code as above, just without the second and last lines. Now, the site one works perfectly, but the original one does not. I have added all new templates to global.php. Even stranger, if I edited the index template, and told it to include headersite, it would work. I have no idea why the header template wouldn't include this template, as there's no valid reason. The rest of the header template works, but not the inclusion.
All help is appreciated. Thank you.