Page 1 of 1

dedicated headers for specific forums

Posted: Sat May 02, 2009 6:52 am
by alan keys
2.0.23. I have two forums but wish to have different headers on each forum. I therefore set the following in /includes/page_header.php - so that I could call two different headers




// Parse and show the overall header.
// 1 = index header
// 2 = overall header
//
if ($header_choose == 1){
$template->set_filenames(array(
'overall_header' => ( empty($gen_simple_header) ) ? 'index_header.tpl' :

'simple_header.tpl')
);
} else if ($header_choose == 2){
$template->set_filenames(array(
'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' :

'simple_header.tpl')
);
}



But I need to make the differentiation between f=1 or f=2 in the root files....

I need to assign

$header_choose = 1; or
$header_choose = 2; within root files. But that has to tie up with f=1 or f=2



Can someone pls just put the last bit in the jigsaw....

Re: dedicated headers for specific forums

Posted: Sat May 02, 2009 8:31 am
by ameeck
Support for phpBB2 is no longer provided. If you need help converting to phpBB3, please make a new topic in the 3.0.x Support forum. Thank you :)