MyBB Community Forums

Full Version: Set (Instant email notification) when someone posts in a thread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do I Set (Instant email notification) when someone posts in a thread by default
There's a link beneath the thread that says "Subscribe to this thread"
There's a setting in the UserCP for it, but that's just for each user though, so I'll add steps on how to force it in a minute. Requires 2 template edits and an SQL query.

In member_register template, find:

<tr>
<td colspan="2"><span class="smalltext"><label for="subscriptionmethod">{$lang->subscription_method}</label></span></td>
</tr>
<tr>
<td colspan="2">
	<select name="subscriptionmethod" id="subscriptionmethod">
		<option value="0" {$no_subscribe_selected}>{$lang->no_auto_subscribe}</option>
		<option value="1" {$no_email_subscribe_selected}>{$lang->no_email_subscribe}</option>
		<option value="2" {$instant_email_subscribe_selected}>{$lang->instant_email_subscribe}</option>
	</select>
</td>
</tr>

replace with:

<input type="hidden" name="subscriptionmethod" id="subscriptionmethod" value="2">

in usercp_options, find:

<tr>
<td colspan="2"><span class="smalltext"><label for="subscriptionmethod">{$lang->subscription_method}</label></span></td>
</tr>
<tr>
<td colspan="2">
	<select name="subscriptionmethod" id="subscriptionmethod">
		<option value="0" {$no_subscribe_selected}>{$lang->no_auto_subscribe}</option>
		<option value="1" {$no_email_subscribe_selected}>{$lang->no_email_subscribe}</option>
		<option value="2" {$instant_email_subscribe_selected}>{$lang->instant_email_subscribe}</option>
	</select>
</td>
</tr>

replace with:

<input type="hidden" name="subscriptionmethod" id="subscriptionmethod" value="2">

and then in phpMyAdmin

UPDATE `mybb_users` SET `subscriptionmethod` = '2'

Remember your host may have limits on emails etc...