5 Replies - 1655 Views - Last Post: 14 May 2005 - 02:50 PM Rate Topic: -----

#1 cara  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 13-May 05

Parse error on Forum Profile Page

Posted 13 May 2005 - 07:26 PM

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&amp;agreed=true"),
"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&amp;agreed=true&amp;coppa=true")
);
if ($custom_title_activated == TRUE)
{
$template->assign_block_vars('switch_custom_title', array() );
}
$template->pparse('body');

}
//
// ---------------------------------------

Is This A Good Question/Topic? 0
  • +

Replies To: Parse error on Forum Profile Page

#2 cyberscribe  Icon User is offline

  • humble.genius
  • member icon

Reputation: 10
  • View blog
  • Posts: 1,062
  • Joined: 05-May 02

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...
Was This Post Helpful? 0
  • +
  • -

#3 cara  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 13-May 05

Re: Parse error on Forum Profile Page

Posted 13 May 2005 - 08:37 PM

ok so how do I fix it?
Was This Post Helpful? 0
  • +
  • -

#4 btreb  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 18-April 05

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'))
Was This Post Helpful? 0
  • +
  • -

#5 cara  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 13-May 05

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('#&gt;#', '#&lt;#', '#&quot;#', '#&amp;#')
$unhtml_specialchars_replace = array('>', '<', '"', '&')
}
Was This Post Helpful? 0
  • +
  • -

#6 btreb  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 18-April 05

Re: Parse error on Forum Profile Page

Posted 14 May 2005 - 02:50 PM

Looks like your missing semicolons after each statement.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1