PM Notify via email by default

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Suggested Hosts
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: PM Notify via email by default

Post by Oyabun1 » Sat Sep 19, 2015 3:15 am

Bullseye! wrote:Will this query change it for members that register from now on too?
No.
Bullseye! wrote:if not what do I need to edit?
Request an extension in the appropriate forum.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

User avatar
Bullseye!
Registered User
Posts: 170
Joined: Sun Mar 21, 2010 11:42 pm

Re: PM Notify via email by default

Post by Bullseye! » Sat Sep 19, 2015 6:42 pm

Oyabun1 wrote:
Bullseye! wrote:Will this query change it for members that register from now on too?
No.
Bullseye! wrote:if not what do I need to edit?
Request an extension in the appropriate forum.
running that query made no difference, also this was not really a request for an extension, but more a request for help with making an edit ;)

I want the box that I have marked out checked by default, the query didn't seem to make any difference & I also want it checked by default for new members too, what file do I need to edit?

Image

User avatar
Lumpy Burgertushie
Registered User
Posts: 65166
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: PM Notify via email by default

Post by Lumpy Burgertushie » Sat Sep 19, 2015 6:51 pm

apparently this is not as simple as you think it is.

the board was not designed to force emails on people, it was designed to give people choices if they want email or local notification or both or none at all.

forcing people to get emails that they do not ask for is considered spam and in some places is even illegal.

for you to say that they can just opt out later is the same as saying they can opt in later which is the way the board is designed.

luck,
robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

User avatar
Bullseye!
Registered User
Posts: 170
Joined: Sun Mar 21, 2010 11:42 pm

Re: PM Notify via email by default

Post by Bullseye! » Sat Sep 19, 2015 7:19 pm

I only want it for PMs... and I only sent PMs if I need to contact someone, there is no harm in it, it's not like I'm advertising half price didlos.... my members use it as a means of getting in touch with each other & rely on email notifications to find out if they have a PM, it always used to be set to default...

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: PM Notify via email by default

Post by Oyabun1 » Sun Sep 20, 2015 1:45 am

I tested the query I supplied and it does work. However, I see now that it only works for users who have an existing record in that table, and that only occurs when they have made a previous change to their PM notification setting. It is going to require a script to do it because adding the records needs to be conditional on whether they already exist. So, that means an extension.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

cally6008
Registered User
Posts: 285
Joined: Wed Nov 26, 2008 10:18 pm

Re: PM Notify via email by default

Post by cally6008 » Tue Jan 19, 2016 6:21 pm

Bumping this up for Bullseye (plus I was looking for the same thing myself)

I did what was suggested here, then cleared cache, registered as a new member and this did make the checkbox now ticked (fingers crossed it lasts) - viewtopic.php?f=466&t=2327521&hilit=def ... ifications
Oyabun1 wrote:This edit should change the default applied to new users:
Download, backup, and open /includes/functions_user.php

Find

Code: Select all

            array(
                'item_type'    => 'notification.type.topic',
                'method'    => 'notification.method.email',
            ),  
After add (on new lines)

Code: Select all

            array(
                'item_type'    => 'notification.type.pm',
                'method'    => 'notification.method.email',
            ),  
Save and upload.
I tried this query but it came back as 0 rows affected

Code: Select all

UPDATE phpbb_user_notifications SET notify = 1 WHERE item_type = 'notification.type.pm' AND method = 'notification.method.email'
Another thing I am going to do (once I've tripled checked again that emails are working as they should), is to send out a Mass Email and explain how to make sure the box is ticked for themselves , and then do a sticky post in one of the forums about it as well

Hope this helps.

User avatar
Bullseye!
Registered User
Posts: 170
Joined: Sun Mar 21, 2010 11:42 pm

Re: PM Notify via email by default

Post by Bullseye! » Tue Jan 19, 2016 6:43 pm

That would be awesome.... I've lost no end of new members because of this not working, because I send them a PM and they don't get notified of it.... These days people are dependant on notifications and don't think to turn them on as most sites have them turned on by default.... Really this is currently the only criticism I have for 3.1

User avatar
John connor
Registered User
Posts: 1790
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Contact:

Re: PM Notify via email by default

Post by John connor » Tue Jan 19, 2016 9:51 pm

There are a quit a few users who request this feature with default E-mail and PM notifications on by default. I think someone should make a simple extension to do this. Make life a lot easier. I've edited the core files to change this behavior myself, but since I use Cloudflare and want to keep my real IP address hidden I opted to use gmail for the board's E-mail system and dropped the MX record. Reason being is that you can look up a MX record to some site behind Cloudflare and get the real IP address. And seen as how gmail only allows (I heard) 500 E-mails a day I did not want to flood E-mails all over the place with E-mail & PM notifications on by default.

User avatar
Bullseye!
Registered User
Posts: 170
Joined: Sun Mar 21, 2010 11:42 pm

Re: PM Notify via email by default

Post by Bullseye! » Wed Jan 20, 2016 2:12 am

Well I'm glad I'm not the only one wanting this sorted, like I said it's the only failing of 3.1

User avatar
Elias
Registered User
Posts: 4616
Joined: Sat Feb 25, 2006 4:31 pm
Location: In the Water!
Name: Elias
Contact:

Re: PM Notify via email by default

Post by Elias » Fri Jan 22, 2016 6:06 am

Bullseye! wrote:Will this query change it for members that register from now on too? if not what do I need to edit?
Oyabun1 wrote:This edit should change the default applied to new users:
Download, backup, and open /includes/functions_user.php

Find

Code: Select all

            array(
                'item_type'    => 'notification.type.topic',
                'method'    => 'notification.method.email',
            ),
After add (on new lines)

Code: Select all

            array(
                'item_type'    => 'notification.type.pm',
                'method'    => 'notification.method.email',
            ),
Save and upload.
Seemed to work when i tried it.
"Mystery creates wonder, and wonder is the basis of man's desire to understand." - Neil Armstrong
|Installing Extensions|Writing Extensions|Extension Validation Policy|

User avatar
Bullseye!
Registered User
Posts: 170
Joined: Sun Mar 21, 2010 11:42 pm

Re: PM Notify via email by default

Post by Bullseye! » Sat Jan 23, 2016 1:30 pm

Does it work for new members?

User avatar
Elias
Registered User
Posts: 4616
Joined: Sat Feb 25, 2006 4:31 pm
Location: In the Water!
Name: Elias
Contact:

Re: PM Notify via email by default

Post by Elias » Sat Jan 23, 2016 2:02 pm

Bullseye! wrote:Does it work for new members?
Yes, that is the way to do it for the new members.
"Mystery creates wonder, and wonder is the basis of man's desire to understand." - Neil Armstrong
|Installing Extensions|Writing Extensions|Extension Validation Policy|

User avatar
Bullseye!
Registered User
Posts: 170
Joined: Sun Mar 21, 2010 11:42 pm

Re: PM Notify via email by default

Post by Bullseye! » Fri Jan 29, 2016 9:14 pm

Are you running 3.1.x?

User avatar
Elias
Registered User
Posts: 4616
Joined: Sat Feb 25, 2006 4:31 pm
Location: In the Water!
Name: Elias
Contact:

Re: PM Notify via email by default

Post by Elias » Fri Jan 29, 2016 10:35 pm

Bullseye! wrote:Are you running 3.1.x?
Yep
"Mystery creates wonder, and wonder is the basis of man's desire to understand." - Neil Armstrong
|Installing Extensions|Writing Extensions|Extension Validation Policy|

promod
Registered User
Posts: 53
Joined: Wed Sep 03, 2014 3:56 pm

Re: PM Notify via email by default

Post by promod » Sun Jan 31, 2016 6:34 am

I'm also looking to get the email notification for existing and new users for Topics, Posts and replies by default.
I'm running on 3.1.7PL1

I made following changes to
/includes/functions_user.php

Code: Select all

	'user_notify'			=> 1,
		'user_notify_pm'			=> 1,
		'user_notify_type'		=> NOTIFY_EMAIL,
		'user_allow_pm'			=> 1,
		'user_allow_viewonline'	=> 1,
		'user_allow_viewemail'	=> 1,
		'user_allow_massemail'	=> 1,
Then run the below query through myphpadmin

Code: Select all

UPDATE phpbb_users SET user_notify = 1 WHERE user_type <> 2;
but result was 0 rows affected. (Query took 0.0005 sec)

Edit:- I didn't checked my table prefix before running :oops:

Now after entering the correct table prefix i ran the query again and got a message

14 rows affected. (Query took 0.0295 sec)

Is this ok... I have 612 user presently at board

Locked

Return to “[3.1.x] Support Forum”

Who is online

Users browsing this forum: Tbot [Bot] and 18 guests