I'm getting this error when I click on our forums profile page
Parse error: parse error, unexpected T_VARIABLE in /home/louise/public_html/Chat/includes/usercp_register.php on line 40
HEre is the code from line 40 to about line 70, maybe someone can help me figure it all out please! Thanks!
{
if (!defined('IN_PHPBB')
$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#')
$unhtml_specialchars_replace = array('>', '<', '"', '&')
}
// ---------------------------------------
// Load agreement template since user has not yet
// agreed to registration conditions/coppa
//
function show_coppa()
{
global $userdata, $template, $lang, $phpbb_root_path, $phpEx
$template->set_filenames(array
'body' =>'agreement.tpl')
$template->assign_vars(array
'REGISTRATION' => $lang['Registration'],
'AGREEMENT' => $lang['Reg_agreement'],
"AGREE_OVER_13" => $lang['Agree_over_13'],
"AGREE_UNDER_13" => $lang['Agree_under_13'],
'DO_NOT_AGREE' => $lang['Agree_not'],
"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true"),
"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true")
);
if ($custom_title_activated == TRUE)
{
$template->assign_block_vars('switch_custom_title', array() );
}
$template->pparse('body');
}
//
// ---------------------------------------
Parse error on Forum Profile Page
Page 1 of 15 Replies - 1536 Views - Last Post: 14 May 2005 - 02:50 PM
Replies To: Parse error on Forum Profile Page
#2
Re: Parse error on Forum Profile Page
Posted 13 May 2005 - 07:44 PM
cara, on May 13 2005, 07:26 PM, said:
if (!defined('IN_PHPBB')
Yep, that'd produce a parse error...
#3
Re: Parse error on Forum Profile Page
Posted 13 May 2005 - 08:37 PM
ok so how do I fix it?
#4
Re: Parse error on Forum Profile Page
Posted 13 May 2005 - 09:00 PM
if (!defined('IN_PHPBB')
Your missing a ')'
It should be if (!defined('IN_PHPBB'))
Your missing a ')'
It should be if (!defined('IN_PHPBB'))
#5
Re: Parse error on Forum Profile Page
Posted 13 May 2005 - 09:40 PM
Did that and it's still telling me there is an error on Line 40 and now on line 41
here are lines 40 and 41
$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#')
$unhtml_specialchars_replace = array('>', '<', '"', '&')
}
here are lines 40 and 41
$unhtml_specialchars_match = array('#>#', '#<#', '#"#', '#&#')
$unhtml_specialchars_replace = array('>', '<', '"', '&')
}
#6
Re: Parse error on Forum Profile Page
Posted 14 May 2005 - 02:50 PM
Looks like your missing semicolons after each statement.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|