If you wish to use 2 different generic header files, without using $fheader (headerfiles for each forums),heres how to do:
Note! Its provided that your default header is named "header.php"
1. Create a new headerfile and name it: "newheader.php", and upload it into your /includes directory.
2. Open your ubbt.inc.php file and find the following lines:
$What = find_environmental("PHP_SELF");
$script['0'] = "";
preg_match ("/(.*)\/(.*).php/",$What,$script);
$What = $script['2'];
if ( ($script['2'] == 'top') || (!preg_match("/\/admin$/",$script['1']) ) ) {
if ($script['2'] != "top") {
if ($fheader) {
$header = "header_$Board.php";
}else {
$header = "header.php";
}
@include "$thispath/includes/$header";
}
3. Edit the code to:
$What = find_environmental("PHP_SELF");
$script['0'] = "";
preg_match ("/(.*)\/(.*).php/",$What,$script);
$What = $script['2'];
if ( ($script['2'] == 'top') || (!preg_match("/\/admin$/",$script['1']) ) ) {
if ($script['2'] != "top") {
if ($fheader) {
$header = "header_$Board.php";
}else {
$header = "header.php";
}
if($config['newheader']){ @include "$thispath/includes/newheader.php";
} else { @include "$thispath/includes/$header";
}
}
4. Open the program php file where you want the new header, e.g.faq_english.php and add the following code somewhere in the top of the file:
$config['newheader'] = 1;
so the top of the file looks similiar like this
<?
$config['newheader'] = 1;
require ("main.inc.php");
$html = new html;
$html -> send_header("Ofte stillede spørgsmål",$Cat,0,$user);
$html -> table_header("Ofte stillede spørgsmål");
And voila! your new header file should take action, when clicking on faq. If want the new header on more pages, simply open your php files and add the code as described.