Thank you odklizec!
odklizec wrote:I first thought about usual phpbb+portal+gallery integration.
This is it, more or less.
odklizec wrote:How did you hide the forum? Is it a PortalView feature or you had to do some serious phpbb style editing
No, not very serious style editing and no PortalView feature. I basically did it with switches.
As it it used as a CMS, only band members are members of the board and need to see the normal forum functions.
So i can hide all that stuff simply with <!-- IF S_USER_LOGGED_IN --> switches.
The rest is done with self made switches, integrated in the viewtopic.php and viewforum.php -
e.g: viewtopic.php?f=16&t=11&sd=d&custom_limit=3&header=news
custom_limit is a switch to limit the amount of displayed posts per page as needed. I wanted the news section to display just 3 posts instead of the default 10.
header is a switch to get the different headers in the different sections.
As an example: this is the main part of the code for the switches in the viewtopic.php:
Code: Select all
// Electric Saints Anpassung - START
$custom_limit = request_var('custom_limit', 0);
$header = request_var('header', '');
if ($custom_limit !=0 )
{
$page_limit = $custom_limit;
}
else
{
$page_limit = $config['posts_per_page'];
}
// Checken welcher Header angezogen werden soll
switch( $header )
{
case "gb":
$template->assign_vars(array(
'S_GB' => true
));
break;
case "news":
$template->assign_vars(array(
'S_NEWS' => true
));
break;
case "music":
$template->assign_vars(array(
'S_MUSIC' => true
));
break;
case "links":
$template->assign_vars(array(
'S_LINKS' => true
));
break;
case "tour":
$template->assign_vars(array(
'S_TOUR' => true
));
break;
case "lyrics":
$template->assign_vars(array(
'S_LYRICS' => true
));
break;
case "presse":
$template->assign_vars(array(
'S_PRESSE' => true
));
}
// Electric Saints Anpassung ENDE
And a few more things to do...
The Webiste startet 2002 as a static HTML site. 2004 i already realized the idea of phpBB as a simple CMS for that website with phpBB2. But i realized it in a quite difficult way. Many code in many (duplicated) files, just to get different headers and templates. Updating was just horrible.
Now, with porting it to phpBB3, my approach was to keep the phpBB core system as original as possible. For easier updates in future. And it worked out fine.