Charl
01-30-2003, 09:05 AM
Hello hello,
I downloaded the phpBB 2.0.4 and like it allot. What I want to do now is customize my site so that it all looks the same. I want the header and footer of every page to be called up, and then just add in different body files.
Here is the header and footer on 1 page by themselves.
http://www.charlatanz.com/a/faqz.php
Now the problem is how I add in the body files. At first I thought right just add in the html in the link above, but that doesn’t work.
What about a line like
include($phpbb_root_path . 'includes/bodyfilehere.'.$phpEx);
Heres the code for the link above
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_FAQ);
init_userprefs($userdata);
//
// End session management
//
//
// Load the appropriate faq file
//
if( isset($HTTP_GET_VARS['mode']) )
{
switch( $HTTP_GET_VARS['mode'] )
{
case 'bbcode':
$lang_file = 'lang_bbcode';
$l_title = $lang['BBCode_guide'];
break;
default:
$lang_file = 'lang_faq';
$l_title = $lang['Flash Intro'];
break;
}
}
else
{
$lang_file = 'lang_faq';
$l_title = $lang['Flash Intro'];
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx);
//
// Pull the array data from the lang pack
// Lets build a page ...
//
$page_title = $l_title;
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
I downloaded the phpBB 2.0.4 and like it allot. What I want to do now is customize my site so that it all looks the same. I want the header and footer of every page to be called up, and then just add in different body files.
Here is the header and footer on 1 page by themselves.
http://www.charlatanz.com/a/faqz.php
Now the problem is how I add in the body files. At first I thought right just add in the html in the link above, but that doesn’t work.
What about a line like
include($phpbb_root_path . 'includes/bodyfilehere.'.$phpEx);
Heres the code for the link above
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_FAQ);
init_userprefs($userdata);
//
// End session management
//
//
// Load the appropriate faq file
//
if( isset($HTTP_GET_VARS['mode']) )
{
switch( $HTTP_GET_VARS['mode'] )
{
case 'bbcode':
$lang_file = 'lang_bbcode';
$l_title = $lang['BBCode_guide'];
break;
default:
$lang_file = 'lang_faq';
$l_title = $lang['Flash Intro'];
break;
}
}
else
{
$lang_file = 'lang_faq';
$l_title = $lang['Flash Intro'];
}
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/' . $lang_file . '.' . $phpEx);
//
// Pull the array data from the lang pack
// Lets build a page ...
//
$page_title = $l_title;
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>