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.
Get Involved
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
Bullseye!
Registered User
Posts: 170
Joined: Sun Mar 21, 2010 11:42 pm

PM Notify via email by default

Post by Bullseye! » Fri Sep 11, 2015 12:45 am

Just looked in some of the seemingly obvious places, could not find a file with the relevant parts to edited, but found nothing, I have managed to get people to be notified on topic replies via email, but if a new member receive a PM they will not be notified via email, so they won't know if someone is trying to reach them via the forums, is there anyway to fix this?

Here is a screenshot of what I am talking about, my one is always checked, always has been, but those defaults didn't seem to carry over during the upgrade to 3.1 for new users...
screenshot2.png

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 49039
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: PM Notify via email by default

Post by stevemaury » Fri Sep 11, 2015 12:50 am

For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

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 Sep 11, 2015 1:27 am

I just tried it but it hasn't made any difference, I made a test account after making the changes and that bottom box is still unchecked for email notifications.....

I have attached my functions_user.php file, this is the unedited version
Attachments
functions_user.php
(94.78 KiB) Downloaded 21 times

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 49039
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: PM Notify via email by default

Post by stevemaury » Fri Sep 11, 2015 2:21 pm

The article explains how to change it for EXISTING users in the database. The file includes/functions_user.php must be edited to change it for new users. Also, notification by email is the default. The unedited file I have. What changes did you make to the file? And what is the output of this query:

Code: Select all

SELECT user_notify_type FROM phpbb_users
Also, no notification is the default, so try this query:

Code: Select all

UPDATE phpbb_users SET user_notify = 1
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

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 Sep 11, 2015 2:54 pm

All I changed in that file was the bit where they are subscribed to topics they have started or replied to that bit worked, I want to have it so the new members have the bottom box checked for email notifications when receiving a PM, but nothing I have tried in that article seem to have worked.. these are the edits I made in in an attempt to get it to work....

This is what it looked like before the edits:

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,
This what it looked like after I made the edits:

Code: Select all

'user_notify'			=> 1,
		'user_notify_pm'		=> 1,
		'user_notify_type'		=> NOTIFY_BOTH,
		'user_allow_pm'			=> 1,
		'user_allow_viewonline'	=> 1,
		'user_allow_viewemail'	=> 1,
		'user_allow_massemail'	=> 1,
I registered a test account after I saved and uploaded these edits, but it made no difference.....

As for the file I uploaded that is the one without these mentioned changes, I restored the back up incase I had edited a part that could have broke the forum.... I'm a bit cautious like that ;)

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 49039
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: PM Notify via email by default

Post by stevemaury » Fri Sep 11, 2015 3:57 pm

Did you run the queries as I asked?
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

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 Sep 11, 2015 8:18 pm

Just so I get it right:

I edit the file accordingly, by changing NOTIFY_EMAIL to NOTIFY_BOTH & then run them 2 queries?

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 49039
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: PM Notify via email by default

Post by stevemaury » Sat Sep 12, 2015 2:44 am

You never said you wanted NOTIFY_BOTH. But you can make the edit. Give me the output of the queries.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

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 12, 2015 6:03 pm

will NOTIFY_BOTH mean that people are notified via email when receiving a PM?

sorry for all the questions, I just don't want to mess my board up...

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 Sep 16, 2015 4:27 pm

All I want to do is change it so that new members get an email to say that they have a PM, but everyone who joined after I updated to 3.1 don't get this email, will running the query make this available for existing members only or does it work for new members too?

I want it available for new and existing members, sorry if I didn't explain it very well :P

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 Sep 16, 2015 7:20 pm

Ok the query has been ran... output says it changed 48 Entries

I made the edit again ran this query:

Code: Select all

UPDATE phpbb_users SET user_notify = 1
and it has still made no difference :(

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! » Thu Sep 17, 2015 7:40 pm

What am I doing wrong with the edits?

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 » Fri Sep 18, 2015 2:18 am

Bullseye! wrote:This what it looked like after I made the edits:

Code: Select all

'user_notify'			=> 1,
		'user_notify_pm'		=> 1,
		'user_notify_type'		=> NOTIFY_BOTH,
		'user_allow_pm'			=> 1,
		'user_allow_viewonline'	=> 1,
		'user_allow_viewemail'	=> 1,
		'user_allow_massemail'	=> 1,
NOTIFY_BOTH is not correct, that is for both email and XMPP notifications.
Bullseye! wrote:I made the edit again ran this query:

Code: Select all

UPDATE phpbb_users SET user_notify = 1
and it has still made no difference :(
Because it is the wrong query. Your users may be upset that you have now subscribed them, by default, to any topics they post in.

The query to enable email notifications for PMs for existing members would be:

Code: Select all

UPDATE phpbb_user_notifications SET notify = 1 WHERE item_type = 'notification.type.pm' AND method = 'notification.method.email'
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 49039
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: PM Notify via email by default

Post by stevemaury » Fri Sep 18, 2015 3:01 am

Yeah, sorry about that.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. PM or email me.

All unsolicited PMs will be ignored.

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 12:01 am

Oyabun1 wrote:
Bullseye! wrote:This what it looked like after I made the edits:

Code: Select all

'user_notify'			=> 1,
		'user_notify_pm'		=> 1,
		'user_notify_type'		=> NOTIFY_BOTH,
		'user_allow_pm'			=> 1,
		'user_allow_viewonline'	=> 1,
		'user_allow_viewemail'	=> 1,
		'user_allow_massemail'	=> 1,
NOTIFY_BOTH is not correct, that is for both email and XMPP notifications.
Bullseye! wrote:I made the edit again ran this query:

Code: Select all

UPDATE phpbb_users SET user_notify = 1
and it has still made no difference :(
Because it is the wrong query. Your users may be upset that you have now subscribed them, by default, to any topics they post in.

The query to enable email notifications for PMs for existing members would be:

Code: Select all

UPDATE phpbb_user_notifications SET notify = 1 WHERE item_type = 'notification.type.pm' AND method = 'notification.method.email'
They like to be notified about replies to topics they have posted in, they can always unsubscribe/opt out anyway :)

Will this query change it for members that register from now on too? if not what do I need to edit?

Cheers :)

Locked

Return to “[3.1.x] Support Forum”

Who is online

Users browsing this forum: No registered users and 16 guests