Question... if that code makes the banner appear when viewing threads, shouldn't this edited code make the banner appear when showing search results?
PHP Code:
if (substr($PHP_SELF, -strlen('forumdisplay.php')) == 'forumdisplay.php' || substr($PHP_SELF, -strlen('showthread.php')) == 'showthread.php' || substr($PHP_SELF, -strlen('search.php')) == 'search.php') {
if($forumid == '') {;
$thread = getthreadinfo($threadid);
$forumid = $thread['forumid'];
}
$foruminfo = getforuminfo($forumid);
$parentlist = explode(",", $foruminfo["parentlist"]);
$header = '';
for ($i=0; $i<count($parentlist) and empty($header); $i++) {
eval("\$header = \"".gettemplate("forumdisplay_header".$parentlist[$i])."\";");
}
if($header == '') {
eval("\$header .= \"".gettemplate('header')."\";");
}
} else {
eval("\$header .= \"".gettemplate('header')."\";");
}
It's not working.. I'm not getting any parse errors, it just doesn't show the forum banner when displaying the search results.

What am I doing wrong?