MyBB Community Forums

Full Version: Notify me by email when I recieve a new Private Message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
Right now this option Notify me by email when I receive a new Private Message is not checked by default upon new user registration. I would like to have it checked by default. Where should i make code modifications to achieve that?
Thank you much.
Email Notification for new PM

Please look here!
Thanks for the tip, but i have not found that code in member_register template.
That is the code i have there:
<html>
<head>
<title>$settings[bbname] - $lang->registration</title>
$headerinclude
</head>
<body>
$header
<br />
<form action="member.php" method="post">
$regerrors
<table border="0" cellspacing="$theme[borderwidth]" cellpadding="$theme[tablespace]" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>$lang->registration</strong></td>
</tr>
<tr>
<td width="50%" class="trow1" valign="top">
<fieldset class="trow2">
<legend><strong>$lang->account_details</strong></legend>
<table cellspacing="0" cellpadding="$theme[tablespace]">
<tr>
<td colspan="2"><span class="smalltext">$lang->username</span></td>
</tr>
<tr>
<td colspan="2"><input type="text" name="username" size="40" value="$username" /></td>
</tr>
$passboxes
<tr>
<td><span class="smalltext">$lang->email</span></td>
<td><span class="smalltext">$lang->confirm_email</span></td>
</tr>
<tr>
<td><input type="text" name="email" size="20" maxlength="50" value="$email" /></td>
<td><input type="text" name="email2" size="20" maxlength="50" value="$email2" /></td>
</tr>
</table>
</fieldset>
$requiredfields
$referrer
</td>
<td width="50%" class="trow1" valign="top">
<fieldset class="trow2">
<legend><strong>$lang->account_prefs</strong></legend>
<table cellspacing="0" cellpadding="$theme[tablespace]">
<tr>
<td valign="top" width="1" /><input type="checkbox" name="allownotices" id="allownotices" value="yes" $allownoticescheck /></td>
<td valign="top"><span class="smalltext"><label for="allownotices">$lang->allow_notices</label></span></td>
</tr>
<tr>
<td valign="top" width="1" /><input type="checkbox" name="hideemail" id="hideemail" value="yes" $hideemailcheck /></td>
<td valign="top"><span class="smalltext"><label for="hideemail">$lang->hide_email</label></span></td>
</tr>
<tr>
<td valign="top" width="1" /><input type="checkbox" name="invisible" id="invisible" value="yes" $invisiblecheck /></td>
<td valign="top"><span class="smalltext"><label for="invisible">$lang->invisible_mode</label></span></td>
</tr>
<tr>
<td valign="top" width="1" /><input type="checkbox" name="emailnotify" id="emailnotify" value="yes" checked="checked" /></td>
<td valign="top"><span class="smalltext"><label for="emailnotify">$lang->email_notify</label></span></td>
</tr>
<tr>
<td valign="top" width="1" /><input type="checkbox" name="receivepms" id="receivepms" value="yes" $receivepmscheck /></td>
<td valign="top"><span class="smalltext"><label for="receivepms">$lang->receive_pms</label></span></td>
</tr>
</table>
</fieldset>
<br />
<fieldset class="trow2">
<legend><strong>$lang->time_offset</strong></legend>
<table cellspacing="0" cellpadding="$theme[tablespace]">
<tr>
<td><span class="smalltext">$lang->time_offset_desc</td>
</tr>
<tr>
<td>$tzselect</td>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
<table width="50%" cellspacing="0" cellpadding="0" border="0" align="center">
<tr><td>
$regimage
</td></tr>
</table>
<br />
<center>
<input type="hidden" name="action" value="do_register">
<input type="submit" name="regsubmit" value="$lang->submit_registration">
<input type="reset" name="reset" value="$lang->reset_button">
</center>
</form>
$footer
</body>
</html>