
Re: Change Header Image For Custom Pages
Hi all.
I have one question: how to change overall header image for custom page that I created through CMS? I created new physical page, called fkomarska.php (below), it's 3 column page. How do I get upper main logo (sitelogo_small.png) changed, but only for this page? How could I tell fkomarska.php to load some other image in header, while everything else stays untouched (icy theme, layout, etc)? Is it possible?
Thanks
I think it is possible if you know exactly which topic or which forum you want this page to appear.
If I understood you right you want different banner for that page for example this is what I did when I wanted different banner for different forum in Page_header.php. But I had to revert back the code as when any topic in that forum is opened main banner appeared instead of the one I want.
// Parse and show the overall header.
include($phpbb_root_path . 'includes/functions_rate.'.$phpEx);
if ( isset($_GET[POST_FORUM_URL]) )
{
$tmp_forum_id = intval($_GET[POST_FORUM_URL]);
}
if ($tmp_forum_id == 1)
{
$template->set_filenames(array(
'overall_header' => ( empty($gen_simple_header) ) ? 'instrumental_header.tpl' : 'simple_header.tpl')
);
}
else if ($tmp_forum_id == 2)
{
$template->set_filenames(array(
'overall_header' => ( empty($gen_simple_header) ) ? 'vocal_header.tpl' : 'simple_header.tpl')
);
}
else
{
$template->set_filenames(array(
'overall_header' => ( empty($gen_simple_header) ) ? 'overall_header.tpl' : 'simple_header.tpl')
);
}
}
//
// Generate logged in/logged out status
//
You can find more in this topic
http://www.icyphoenix.com/viewtopic.php?t=1088&start=0
And if I understood you wrong please apologize.