There is no register link on your board. Is it hidden somewhere?didydog wrote:Ok, I found the problem --- sorry to waste your time,
But, you know I don't get the captcha, or the auth code field or anything when I register. Check it out, if you don't mind, and see what's wrong.
http://www.theteenroom.com - this is where one must sign up,
http://www.theteenroom.com/discusionforum/index.php
I'm so sick of spammers putting their porn and crap on my site!!!! HELP???!!!!!
Code: Select all
<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>
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 ($HTTP_POST_VARS['RAC'] != '1995')
{
$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'];
}
}
if ($board_config['enable_confirm'] && $mode == 'register')
{
if (empty($HTTP_POST_VARS['confirm_id']))
{
$error = TRUE;
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Confirm_code_wrong'];
}
Code: Select all
'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'],
As with any MOD, if you are running a modified style (i.e. NOT the default subSilver style), then any changes to the TPL file have to be made to ALL the style on your board.chopnation wrote:I would love to get this mod to work, but I must have messed up at some point. After changing the three files in question with NoteTab Light, I uploaded the files via FTP Explorer. I logged out of my account and then tried to register. However, I did not see the RAC text box (I attempted to make it a question relevant to our forum).
...
Code: Select all
Could not delete stale confirm data
DEBUG MODE
SQL Error : 2006 MySQL server has gone away
DELETE FROM bravesbb_confirm WHERE session_id NOT IN ('00007f095039fe36963ec1809c781ca5',
...(numbers/code continue for a great many lines)
lines 1195 through 1215 are posted:Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /home/sdunc3/public_html/includes/usercp_register.php on line 1205
Code: Select all
'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
// RAC MOD Begin
'L_RAC_CODE' => $lang['rac_code'],
'L_RAC_LOCATION' => $lang['rac_location'],
// RAC MOD End
['Confirm_code_explain'],
'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,
Code: Select all
'L_CONFIRM_CODE_EXPLAIN' => $lang
// RAC MOD Begin
'L_RAC_CODE' => $lang['rac_code'],
'L_RAC_LOCATION' => $lang['rac_location'],
// RAC MOD End
['Confirm_code_explain'],
Code: Select all
'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