How do I get rid of the error saying cannot modify header infomation?
You can see it here Here
Never Mind I got it fixed








<?PHP
/**
*
* @name about.php
* @version 1.11.26
* @package phpBB WEBMASTERS CMS -custompages.php
* @copyright (c) 2007 topdownARTS, Webmasters United.org
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
// Note: If you would like to have a page in a different location than in the main phpBB3 directory
// You must change the following variable, and change the 'U_PORTAL' template variable in functions.php
$phpbb_root_path = '../../';
define('IN_PHPBB', true);
$phpEx = substr(strrchr(__FILE__, '.'), 1);
// Lets make sure we have all of the variables loaded up for custom pages
include($phpbb_root_path/ . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('review_lang');
// Output page
page_header($user->lang['Game Reviews']);
$template->set_filenames(array(
'body' => 'review_body.html')
// ENSURE THAT THE ABOVE FILENAME MATCHES THE FILENAME IN phpBB3/styles/subSilver/template
// dirrectory! (or subBlack whatever template you are using
);
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
?>Parse error: syntax error, unexpected '.' in /home/wildw10/public_html/zyetendo/ssbb/game-reviews.php on line 18



<?php
if (!defined('IN_PHPBB') || !defined('ROOT_PATH'))
{
exit;
}
/**
* @ignore
*/
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : ROOT_PATH . 'forums/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include(ROOT_PATH . 'includes/functions_website.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
// void setup ([ $lang_set = false], [ $style = false])
// language and style setup, we?ll use $style = 1 (prosilver)
$user->setup(false, 2);
// set your custom template path
// void set_custom_template ( $template_path, $template_name)
$template->set_custom_template(ROOT_PATH . 'template', 'website');
// Set some basic (global) template variables
$template->assign_vars(array(
'U_WEBSITE_STYLESHEET' => ROOT_PATH . 'theme/stylesheet.css',
'U_HOME' => append_sid(ROOT_PATH),
'U_FORUM' => append_sid($phpbb_root_path),
));
?> 
include($phpbb_root_path/ . 'common.' . $phpEx);include($phpbb_root_path . 'common.' . $phpEx);

Yes, I do. I was getting a blank page before, when I left the value at 1 (prosilver), so I checked the id of my custom template in the db (phpp_styles_template) and changed the value accordingly (2).Highway of Life wrote:You?re specifying style_id = 2, do you have a style associated with style_id 2?





Return to Tutorials and How-Tos
Users browsing this forum: Discovery Bot and 5 guests