Excellent, thanks, Twisty. Your mod came close, but PHP_SELF had not been pulled from the environment. Here is the mod built on yours that worked for me.
ver 6.5
CHANGE THIS:
Code:
--------------------------------------------------------------------------------
// ----------------------------
// require the header.php file
if ( ($script['2'] != "top") ) {
if ($fheader) {
$header = "header_$Board.php";
}else {
$header = "header.php";
}
if (!$debug) {
@include "$thispath/includes/$header";
}
}
--------------------------------------------------------------------------------
TO THIS:
Code:
--------------------------------------------------------------------------------
// require the header.php file
if ( ($script['2'] != "top") ) {
$current_php_page = find_environmental ("PHP_SELF");
if ($fheader) {
$header = "header_$Board.php";
}
elseif ((!$fheader) && strstr($current_php_page, 'postlist.php')) {
$header = "header_custom.php";
}
elseif ((!$fheader) && strstr($current_php_page, 'ubbthreads.php')) {
$header = "header_custom.php";
}
else {
$header = "header.php";
}
if (!$debug) {
@include "$thispath/includes/$header";
}
}
--------------------------------------------------------------------------------
It's not the cleanest scripting, I know, but it will do for now.
Thanks again for your generous help!