Here is the code...
includes/usercp_register.php
- Code: Select all
$mode = $_GET["mode"];
if ($mode=='register') {
$template->set_filenames(array(
'body' => 'profile_register_body.tpl'));
}
else {
$template->set_filenames(array(
'body' => 'profile_add_body.tpl'));
}
template/Subsilver/profile_register_body.tpl
- Code: Select all
<script language="java**script"><!--
function codename() {
if(document.register.checkagree.checked)
{
document.register.username.disabled=false;
document.register.email.disabled=false;
document.register.new_password.disabled=false;
document.register.password_confirm.disabled=false;
}
else
{
document.register.username.disabled=true;
document.register.email.disabled=true;
document.register.new_password.disabled=true;
document.register.password_confirm.disabled=true;
}
}
//-->
</script>
<form action="{S_PROFILE_ACTION}" {S_FORM_ENCTYPE} method="post" name="register">
{ERROR_BOX}
<table width="100%" cellspacing="2" cellpadding="2" border="0" align="center">
<tr>
<td align="left"><span class="nav"><a href="{U_INDEX}" class="nav">{L_INDEX}</a></span></td>
</tr>
</table>
<table border="0" cellpadding="3" cellspacing="1" width="100%" class="forumline">
<tr>
<th class="thHead" colspan="2" height="25" valight="middle">DSC Forum Agreement</th>
</tr>
<tr>
<td class="row2" colspan="2"><span class="gensmall">These guidelines represent the policy on the DSC forums, and in the DSC IRC channel. <br><br>
- Remain friendly and civil at all times. Be helpful when possible. Treat others the way you would like to be treated. <br><br>
- Use of the DSC forums or IRC channel is a privilege, not a right. DSC community officials reserve the right to create the community we want to be a part of. <br><br>
- Use of slurs about race or sexual-orientation are prohibited in moderated forums.<br><br>
- Slanderous, defamatory, false, obscene, indecent, lewd, pornographic, abusive, insulting, threatening, harassing or obnoxious comments are not appropriate in the DSC community. <br><br>
- Any form of direct or indirect personal attack or harassment is prohibited in moderated forums. <br><br>
- Any comment that calls for or encourages unlawful or illegal behavior or might result in harm to others is prohibited. <br><br>
- Please stay on topic. Rambling or off-topic topics may be deleted without warning. <br><br>
- Aggressive advertising is not allowed. <br><br>
- If you wish to emphasize your point, use a bold font. Obnoxious use of oversized fonts and headings will not allowed. <br><br>
- If a user breaks any of these rules, they will generally get a warning. Repeated offenses will result in temporary or permanent suspension of your account or banning from IRC. The forum moderators and IRC operators will use their best judgement in these cases. <br><br>
- If you feel you've been unfairly treated, send a clearly-written e-mail to abuse@darkspireclan.net. Please send IRC transcripts, your forum posts, and anything else to represent your case. You will not get a response, but if a DSC community admin is being abusive, it will be clear and action will be taken to fix the situation.<br><br>
<center><font size="-6">Original rules from <a href="http://www.natural-selection.org">Natural Selecion</a>.</font></center><br><br>
<center><input type="checkbox" onclick="codename()" name="checkagree" value="ON"> I Agree <input type="checkbox" onclick="codename()" name="checkdont" value="OFF"> I Disagree</center><br>
</span></td>
</tr>
<tr>
<th class="thHead" colspan="2" height="25" valign="middle">{L_REGISTRATION_INFO}</th>
</tr>
<tr>
<td class="row2" colspan="2"><span class="gensmall">{L_ITEMS_REQUIRED}</span></td>
</tr>
<tr>
<td class="row1" width="38%"><span class="gen">{L_USERNAME}: *</span></td>
<td class="row2"><input type="text" disabled class="post" style="width:200px" name="username" size="25" maxlength="40" value="{USERNAME}" /></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_EMAIL_ADDRESS}: *</span></td>
<td class="row2"><input type="text" disabled class="post" style="width:200px" name="email" size="25" maxlength="255" value="{EMAIL}" /></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_NEW_PASSWORD}: *</span><br />
<span class="gensmall">{L_PASSWORD_IF_CHANGED}</span></td>
<td class="row2">
<input type="password" disabled class="post" style="width: 200px" name="new_password" size="25" maxlength="100" value="{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" disabled class="post" style="width: 200px" name="password_confirm" size="25" maxlength="100" value="{PASSWORD_CONFIRM}" />
</td>
</tr>
<tr>
<td class="catSides" colspan="2" height="28"> </td>
</tr>
<tr>
<th class="thSides" colspan="2" height="25" valign="middle">{L_PREFERENCES}</th>
</tr>
<tr>
<td class="row1"><span class="gen">{L_BOARD_LANGUAGE}:</span></td>
<td class="row2"><span class="gensmall">{LANGUAGE_SELECT}</span></td>
</tr>
<tr>
<td class="row1"><span class="gen">{L_TIMEZONE}:</span></td>
<td class="row2"><span class="gensmall">{TIMEZONE_SELECT}</span></td>
</tr>
<tr>
<td class="catSides" colspan="2" height="28"> </td>
</tr>
<tr>
<td class="catBottom" colspan="2" align="center" height="28">{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="mainoption" />Â Â <input type="reset" value="{L_RESET}" name="reset" class="liteoption" /></td>
</tr>
</table>
</form>

