dedicated headers for specific forums

This forum is now closed. Please ask all styles-related questions in the phpBB 3.0 Styles Support & Discussion Forum.
Locked
alan keys
Registered User
Posts: 100
Joined: Wed Aug 02, 2006 9:09 am

dedicated headers for specific forums

Post by alan keys » Sat May 02, 2009 6:52 am

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....

User avatar
ameeck
Former Team Member
Posts: 6559
Joined: Mon Mar 21, 2005 6:57 pm
Location: Berlin
Name: Vojtech Vondra
Contact:

Re: dedicated headers for specific forums

Post by ameeck » Sat May 02, 2009 8:31 am

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 :)
do you need to update MOD to an extension?

Locked

Return to “[2.0.x] Styles Development & Discussion”

Who is online

Users browsing this forum: No registered users and 10 guests

cron