Hi
I'm trying to install the Textual Confirmation to get rid of spam. I have followed the directions but now my users get this error when trying to register:
Parse error: syntax error, unexpected T_ELSE in ...phpBB2/includes/usercp_register.php on line 181
I can't seem to find my error - any ideas? I've attached a copy of the file. Thanks
MOD EDIT: No need to attach all 1,176 lines - just include a few lines surrounding the line number indicated:
if ( !empty($HTTP_POST_VARS['language']) )
{
if ( preg_match('/^[a-z_]+$/i', $HTTP_POST_VARS['language']) )
{
$user_lang = htmlspecialchars($HTTP_POST_VARS['language']);
}
else
{
$error = true;
$error_msg = $lang['Fields_empty'];
}
}
tc_hook_register();
else // ** LINE 181 **
{
$user_lang = $board_config['default_lang'];
}