Hello php gurus
A litle while ago, I changed my register template, so it only contains:
user name
password
confirm password
email.
I have since found that all the other settings like:
recieve pm etc...are automitacally set to NO by default, when a a user do register.
how can I change this, while the still only see the above fields?
so it look like this:
Enable Private Messaging? YES
Allow Bulletin Board Administrators and Moderators To Send You Email Notices? YES
Show user's signatures in their posts? YES
Show user's avatar in their posts? YES
Show image attachments and [img] code in Posts? YES
Use vBCode quick links on your message input screens? YES
here is how my current template look like:
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>$bbtitle Registration</title>
$headinclude
</head>
<body>
$header
<br>
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td><normalfont>In order to be able to post messages on the $bbtitle forums, you must first register.</normalfont></td>
</tr>
</table>
<br>
<form action="register.php" method="post">
<input type="hidden" name="s" value="$session[sessionhash]">
<table cellpadding="0" cellspacing="0" border="0" bgcolor="#6597D9" width="100%" align="center"><tr><td>
<table cellpadding="4" cellspacing="1" border="0" width="100%">
<!-- *** -->
<tr>
<td bgcolor=""#C1D7F4" background="images/head_bg.gif"" colspan="2"><normalfont color="#000000" class="thtcolor"><b>Registration: Required Information</b></normalfont>
<smallfont color="#000000" class="thtcolor">All fields are required. Please note that passwords are case sensitive.</smallfont></td>
</tr>
<!-- *** -->
<tr>
<td bgcolor="#F9F9F9"><normalfont><b>User Name:</b></normalfont></td>
<td bgcolor="#F9F9F9"><normalfont><input type="text" class="bginput" name="username" size="25" maxlength="$maxuserlength"></normalfont></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><normalfont><b>Password:</b></normalfont></td>
<td bgcolor="#FFFFFF"><normalfont><input type="password" class="bginput" name="password" size="25" maxlength="15"></normalfont></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><normalfont><b>Enter Password Again:</b></normalfont></td>
<td bgcolor="#FFFFFF"><input type="password" class="bginput" name="passwordconfirm" size="25" maxlength="15"></td>
</tr>
<tr>
<td bgcolor="#F9F9F9"><normalfont><b>Email:</b></normalfont><br>
<smallfont>Please enter a valid email address. You can choose to hide it below in the preferences section.</smallfont></td>
<td bgcolor="#F9F9F9"><normalfont><input type="text" class="bginput" name="email" size="25" maxlength="50"></normalfont></td>
</tr>
<tr>
<td bgcolor="#F9F9F9"><normalfont><b>Enter Email Again:</b></normalfont></td>
<td bgcolor="#F9F9F9"><normalfont><input type="text" class="bginput" name="emailconfirm" size="25" maxlength="50"></normalfont></td>
</tr>
<input type="hidden" name="showsignatures" value="yes">
<input type="hidden" name="showavatars" value="yes">
<input type="hidden" name="showimages" value="yes">
</table>
</td></tr></table>
<br>
<table cellpadding="2" cellspacing="0" border="0" width="100%" align="center">
<tr>
<td align="center"><normalfont>
<input type="hidden" name="url" value="$url">
<input type="hidden" name="action" value="addmember">
<input type="submit" class="bginput" name="Submit" value="Submit">
<input type="reset" class="bginput" name="Reset" value="Reset">
</normalfont></td>
</tr>
</table>
</form>
$footer
<script language="Javascript">
<!--
if (document.images.avatarpic != null) {
document.images.avatarpic.src = document.forms[0].avatarsel[document.forms[0].avatarsel.selectedIndex].value;
}
// -->
</script>
</body>
</html>