How to disable email notification function?

This is an archive of the phpBB 2.0.x support forum. Support for phpBB2 has now ended.
Forum rules
Following phpBB2's EoL, this forum is now archived for reference purposes only.
Please see the following announcement for more information: viewtopic.php?f=14&t=1385785
Locked
hillbun
Registered User
Posts: 7
Joined: Wed Dec 25, 2002 12:51 pm

How to disable email notification function?

Post by hillbun »

How to disable email notification function for posts reply and private message in my forum?

I mean the following:

Always notify me of replies:
Sends an e-mail when someone replies to a topic you have posted in. This can be changed whenever you post.

Notify on new Private Message:
GE Hosting.com
Registered User
Posts: 77
Joined: Tue Apr 16, 2002 4:43 am
Location: Canada
Contact:

Post by GE Hosting.com »

Always notify me of replies:
In your profile, under Preferences,

Always notify me of replies: Select no to not be notified


Notify on new Private Message:

In your profile, under Preferences,

Always notify me of replies: Select no to not be notified
Chris Gaube
Hosting . GE Hosting.com . Sales@GEHosting.com
Solutions . GE Solutions.net . Sales@GESolutions.net

- Internet Solutions That Can Be Tailored To Your Needs
hillbun
Registered User
Posts: 7
Joined: Wed Dec 25, 2002 12:51 pm

Post by hillbun »

I know this setting. But I want to disable this function in my whole site, in other word, I don't allow users to enable email notification function.

I can not find the setting in my control panel.

Thanks anyway.
GE Hosting.com
Registered User
Posts: 77
Joined: Tue Apr 16, 2002 4:43 am
Location: Canada
Contact:

Post by GE Hosting.com »

Hmmmm

Ok, Sorry, I did not understand the question.

You are going to need to edit the Registration Template along with the User Preferences Template.

Also, you may have some problems with default settings. I can not remeber if any of the options are selected by default.
Chris Gaube
Hosting . GE Hosting.com . Sales@GEHosting.com
Solutions . GE Solutions.net . Sales@GESolutions.net

- Internet Solutions That Can Be Tailored To Your Needs
LifeIsPain
Former Team Member
Posts: 2148
Joined: Tue Oct 01, 2002 7:04 am
Location: Way Way Behind

Post by LifeIsPain »

For postings, you will need to edit templates/subSilver/profile_add_body.tpl by deleteing the following lines...

Code: Select all

	<tr> 
	  <td class="row1"><span class="gen">{L_NOTIFY_ON_REPLY}:</span><br />
		<span class="gensmall">{L_NOTIFY_ON_REPLY_EXPLAIN}</span></td>
	  <td class="row2"> 
		<input type="radio" name="notifyreply" value="1" {NOTIFY_REPLY_YES} />
		<span class="gen">{L_YES}</span>&& 
		<input type="radio" name="notifyreply" value="0" {NOTIFY_REPLY_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
then in posting.php, remove (or comment out in case you want)

Code: Select all

//
// Notify checkbox - only show if user is logged in
//
if ( $userdata['session_logged_in'] && $is_auth['auth_read'] )
{
	if ( $mode != 'editpost' || ( $mode == 'editpost' && $post_info['poster_id'] != ANONYMOUS ) )
	{
		$template->assign_block_vars('switch_notify_checkbox', array());
	}
}
Next in viewtopic.php find remove everything between the following (or again, comment out)

Code: Select all

//
// Is user watching this thread?
//
and

Code: Select all

//
// Generate a 'Show posts in previous x days' select box. If the postdays var is POSTed
And I think that will do it for letting the user change. Now we need to make it so that the users can't tell their profile to subscribe by default. Use the following sql code for that...

Code: Select all

UPDATE phpbb_users SET user_notify = 0
I think that covers everything (excep that only topics they are watching will still let them get emails, so just dump (get rid of all the data in) phpbb_topics_watch.
LifeIsPain - one who needs to be smackedLife is pain, highness! Anyone who says differently is selling something.
LifeIsPain
Former Team Member
Posts: 2148
Joined: Tue Oct 01, 2002 7:04 am
Location: Way Way Behind

Post by LifeIsPain »

Now for Private messages.... (it is similar, just some different files). First, here is the sql code you will want:

Code: Select all

UPDATE phpbb_users SET user_notify_pm = 0
Next for the templates/subSilver/profile_add_body.tpl file, remove

Code: Select all

	<tr> 
	  <td class="row1"><span class="gen">{L_NOTIFY_ON_PRIVMSG}:</span></td>
	  <td class="row2"> 
		<input type="radio" name="notifypm" value="1" {NOTIFY_PM_YES} />
		<span class="gen">{L_YES}</span>&& 
		<input type="radio" name="notifypm" value="0" {NOTIFY_PM_NO} />
		<span class="gen">{L_NO}</span></td>
	</tr>
And I think that is it, so easier, but I could be wrong.
LifeIsPain - one who needs to be smackedLife is pain, highness! Anyone who says differently is selling something.
DoodBier
Registered User
Posts: 3
Joined: Tue Mar 09, 2004 8:43 am

Post by DoodBier »

Thanks!

I had the same problem and it works! :lol: :lol: :lol:
szquirrel
Registered User
Posts: 21
Joined: Wed Mar 24, 2004 1:07 am

Post by szquirrel »

This is part of the solution, but not all of it.

When you remove the HTML in templates/subSilver/profile_add_body.tpl you must replace it with:

Code: Select all

<input type="hidden" name="notifyreply" value="0" />
<input type="hidden" name="notifypm" value="0" />
Otherwise PM email notification is enabled by default with no way for users to shut it off.

Aside from that this fix worked very well. Thanks!
Locked

Return to “2.0.x Support Forum”