Welcome to Dream.In.Code
Getting PHP Help is Easy!

Join 132,628 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 1,054 people online right now. Registration is fast and FREE... Join Now!




Parse error on Forum Profile Page

 
Reply to this topicStart new topic

Parse error on Forum Profile Page

cara
post 13 May, 2005 - 06:26 PM
Post #1


New D.I.C Head

*
Joined: 13 May, 2005
Posts: 3

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');

}
//
// ---------------------------------------
User is offlineProfile CardPM

Go to the top of the page

cyberscribe
post 13 May, 2005 - 06:44 PM
Post #2


humble.genius

Group Icon
Joined: 5 May, 2002
Posts: 1,062



Thanked 2 times

Dream Kudos: 154
My Contributions


QUOTE(cara @ May 13 2005, 07:26 PM)
if (!defined('IN_PHPBB')

Yep, that'd produce a parse error...
User is offlineProfile CardPM

Go to the top of the page

cara
post 13 May, 2005 - 07:37 PM
Post #3


New D.I.C Head

*
Joined: 13 May, 2005
Posts: 3

ok so how do I fix it?
User is offlineProfile CardPM

Go to the top of the page

btreb
post 13 May, 2005 - 08:00 PM
Post #4


New D.I.C Head

*
Joined: 18 Apr, 2005
Posts: 2

if (!defined('IN_PHPBB')

Your missing a ')'

It should be if (!defined('IN_PHPBB'))
User is offlineProfile CardPM

Go to the top of the page

cara
post 13 May, 2005 - 08:40 PM
Post #5


New D.I.C Head

*
Joined: 13 May, 2005
Posts: 3

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('>', '<', '"', '&')
}
User is offlineProfile CardPM

Go to the top of the page

btreb
post 14 May, 2005 - 01:50 PM
Post #6


New D.I.C Head

*
Joined: 18 Apr, 2005
Posts: 2

Looks like your missing semicolons after each statement.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 03:44AM

Live PHP Help!

PHP Tutorials

Reference Sheets

PHP Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month