Ok, so you don't want your banner in the $navbar template but in your header. Fine. Here's one way.
Code:
<if condition="$foruminfo['banner'] AND $foruminfo['bannerlink']">
<a href="$foruminfo[bannerlink]" target="_blank">
<img src="images/banner/$foruminfo[banner]" alt="$foruminfo[banner]" border="0" />
</a>
<else />
<if condition="$foruminfo['banner']">
<img src="images/banner/$foruminfo[banner]" alt="$foruminfo[banner]" border="0" />
<else />
<img src="images/banner/default.gif" border="0">
</if></if></if>
Note the extra statement after the else that sets a default page for your forum.
Now if you're like me and you use vbadvance you can port variant headers over there without changing your $header template. First set $index_header and $index_footer equal to the site's normal header & footer as follows:
Code:
eval('$index_header = "' . fetch_template('header') . '";');
eval('$index_footer = "' . fetch_template('footer') . '";');
Then, assuming you don't have any other default.gif files in your header, you can do a str replace for each forum. The site I work on has three as follows:
Code:
if ($newsforum == 110)
{
$index_header = str_replace("default.gif", "scifinews.gif", $index_header);
}
elseif ($newsforum == 111)
{
$index_header = str_replace("default.gif", "pdfnews.gif", $index_header);
}
else
{
$index_header = str_replace("default.gif", "ENNewsLogo.gif", $index_header);
}
That bit of code goes immediately after the second bit. I hope this makes some sense - it's 5 AM here and I'm babbling.