I've gone back and checked it 4 times line for line. And copy and pasted from the instructions and still no joyRMcGirr83 wrote:More than likely you edited includes/usercp_register.php incorrectly
Code: Select all
else if ( $mode == 'register' ) {
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/chilternmc.co.uk/public_html/forum/includes/usercp_register.php:2) in /home/sites/chilternmc.co.uk/public_html/forum/includes/page_header.php on line 479
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/chilternmc.co.uk/public_html/forum/includes/usercp_register.php:2) in /home/sites/chilternmc.co.uk/public_html/forum/includes/page_header.php on line 485
Warning: Cannot modify header information - headers already sent by (output started at /home/sites/chilternmc.co.uk/public_html/forum/includes/usercp_register.php:2) in /home/sites/chilternmc.co.uk/public_html/forum/includes/page_header.php on line 486
Code: Select all
if ( $mode == 'editprofile' )
{
if ( $user_id != $userdata['user_id'] )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Wrong_Profile'];
}
}
else if ( $mode == 'register' )
{
// RAC MOD Begin
if (strtolower($HTTP_POST_VARS['RAC']) != 'green')
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['rac_incorrect'];
}
// RAC MOD End
if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
}
I suspect you've put a switch on a line with something else.turkudweller wrote:Can anyone try and register at http://turkucc.com/forum/
When you agree to the terms and conditions the middle table disappears and the process stops.
Any ideas would be welcome.
Code: Select all
$passwd_sql = '';
if ( $mode == 'editprofile' )
{
if ( $user_id != $userdata['user_id'] )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Wrong_Profile'];
}
}
else if ( $mode == 'register' )
{
// RAC MOD Begin
if ($HTTP_POST_VARS['RAC'] != 'blue')
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['rac_incorrect'];
}
// RAC MOD End
if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) )
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
}
}
Code: Select all
'L_PREFERENCES' => $lang['Preferences'],
'L_PUBLIC_VIEW_EMAIL' => $lang['Public_view_email'],
'L_ITEMS_REQUIRED' => $lang['Items_required'],
'L_REGISTRATION_INFO' => $lang['Registration_info'],
'L_PROFILE_INFO' => $lang['Profile_info'],
'L_PROFILE_INFO_NOTICE' => $lang['Profile_info_warn'],
'L_EMAIL_ADDRESS' => $lang['Email_address'],
'L_CONFIRM_CODE_IMPAIRED' => sprintf($lang['Confirm_code_impaired'], '<a href="mailto:' . $board_config['board_email'] . '">', '</a>'),
'L_CONFIRM_CODE' => $lang['Confirm_code'],
'L_CONFIRM_CODE_EXPLAIN' => $lang['Confirm_code_explain'],
// RAC MOD Begin
'L_RAC_CODE' => $lang['rac_code'],
'L_RAC_LOCATION' => $lang['rac_location'],
// RAC MOD End
'S_ALLOW_AVATAR_UPLOAD' => $board_config['allow_avatar_upload'],
'S_ALLOW_AVATAR_LOCAL' => $board_config['allow_avatar_local'],
'S_ALLOW_AVATAR_REMOTE' => $board_config['allow_avatar_remote'],
'S_HIDDEN_FIELDS' => $s_hidden_fields,
'S_FORM_ENCTYPE' => $form_enctype,
'S_PROFILE_ACTION' => append_sid("profile.$phpEx"))
);
Code: Select all
$lang['An_error_occured'] = 'An Error Occurred';
$lang['A_critical_error'] = 'A Critical Error Occurred';
$lang['Admin_reauthenticate'] = 'To administer the board you must re-authenticate yourself.';
$lang['Login_attempts_exceeded'] = 'The maximum number of %s login attempts has been exceeded. You are not allowed to login for the next %s minutes.';
$lang['Please_remove_install_contrib'] = 'Please ensure both the install/ and contrib/ directories are deleted';
$lang['Session_invalid'] = 'Invalid Session. Please resubmit the form.';
// RAC MOD Begin
$lang['rac_incorrect'] = 'The authorization code you have entered is incorrect.';
$lang['rac_code'] = 'Authorization Question';
$lang['rac_location'] = 'What colour is the sky? (all lowercase)';
// RAC MOD End
//
// That's all, Folks!
// -------------------------------------------------
?>
Code: Select all
<input type="password" class="post" style="width: 200px" name="new_password" size="25" maxlength="32" value="{NEW_PASSWORD}" />
</td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CONFIRM_PASSWORD}: * </span><br />
<span class="gensmall">{L_PASSWORD_CONFIRM_IF_CHANGED}</span></td>
<td class="row2">
<input type="password" class="post" style="width: 200px" name="password_confirm" size="25" maxlength="32" value="{PASSWORD_CONFIRM}" />
</td>
</tr>
<!-- BEGIN switch_user_logged_out -->
<tr>
<td class="row1"><span class="gen">{L_RAC_CODE}: * </span><br />
<span class="gensmall">{L_RAC_LOCATION}</span></td>
<td class="row2">
<input type="text" class="post" style="width: 200px" name="RAC" size="25" maxlength="32" />
</td>
</tr>
<!-- END switch_user_logged_out -->
<!-- Visual Confirmation -->
<!-- BEGIN switch_confirm -->
<tr>
<td class="row1" colspan="2" align="center"><span class="gensmall">{L_CONFIRM_CODE_IMPAIRED}</span><br /><br />{CONFIRM_IMG}<br /><br /></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_CONFIRM_CODE}: * </span><br /><span class="gensmall">{L_CONFIRM_CODE_EXPLAIN}</span></td>
<td class="row2"><input type="text" class="post" style="width: 200px" name="confirm_code" size="6" maxlength="6" value="" /></td>
</tr>
<!-- END switch_confirm -->
Code: Select all
if ($HTTP_POST_VARS['RAC'] != 'blue')
Code: Select all
if (strtolower($HTTP_POST_VARS['RAC']) != 'blue')