I've been using pages that use phpBB's session system thanks to the tutorial found on this site. To date, I've used my own templating files, which requires I make alterations in two spots when I change something to the template. I thought I might try to build my pages in a manner that utilizes phpBB3's method of calling the styles...
So my genius effort is the following:
Code: Select all
define('IN_PHPBB', true); $root_path = '/home/schw/public_html/'; $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '/home/schw/public_html/yakety-yak/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include($phpbb_root_path . 'common.' . $phpEx); include($phpbb_root_path . 'includes/bbcode.' . $phpEx); include($phpbb_root_path . 'includes/functions_display.' . $phpEx); // Database Configuration (Where your phpBB config.php file is located) include $phpbb_root_path.'/config.php'; $link = mysql_connect("$dbhost", "$dbuser", "$dbpasswd") or die("Could not connect"); mysql_select_db("$dbname") or die("Could not select database"); // Start session management $user->session_begin(); $auth->acl($user->data); $user->setup('viewforum'); // Output page page_header($user->lang['INDEX']); $template->set_filenames(array( 'body' => 'index_body.html') ); page_footer();
Could someone help me figure out what I need to do to use the /forum/'s active style in root's directory? I've read this tutorial, but I need it in a parent directory.
Thanks for your time!