email notification for new pm's

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Post Reply
TheButcher2
Registered User
Posts: 395
Joined: Tue May 13, 2014 11:38 pm
Contact:

email notification for new pm's

Post by TheButcher2 » Mon Apr 30, 2018 12:07 pm

Hi guys, any idea if this is possible, to edit a template where members get an email to notify them they have a new pm.

Thanks

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51138
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: email notification for new pm's

Post by Brf » Mon Apr 30, 2018 12:11 pm

thecoalman wrote:
Sun Apr 29, 2018 10:43 pm
Around line 238 in includes/functions_users.php

TheButcher2
Registered User
Posts: 395
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: email notification for new pm's

Post by TheButcher2 » Mon Apr 30, 2018 12:19 pm

Brf wrote:
Mon Apr 30, 2018 12:11 pm
thecoalman wrote:
Sun Apr 29, 2018 10:43 pm
Around line 238 in includes/functions_users.php
Thank you for that, looked at it but not being a php type can't figure out what to modify, any chance you could be kind enough to tell me what to add/remove please.


Thanks

User avatar
Brf
Support Team Member
Support Team Member
Posts: 51138
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: email notification for new pm's

Post by Brf » Mon Apr 30, 2018 1:37 pm

Change

Code: Select all

'user_notify'			=> 0,
to

Code: Select all

'user_notify'			=> 1,

TheButcher2
Registered User
Posts: 395
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: email notification for new pm's

Post by TheButcher2 » Mon Apr 30, 2018 2:04 pm

Brf wrote:
Mon Apr 30, 2018 1:37 pm
Change

Code: Select all

'user_notify'			=> 0,
to

Code: Select all

'user_notify'			=> 1,
Perfect thanks Brf,

going to setup a test account test it, have a great day.

Thanks again

TheButcher2
Registered User
Posts: 395
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: email notification for new pm's

Post by TheButcher2 » Mon Apr 30, 2018 2:21 pm

hmmm that didn't work, I setup a test account, sent that account a pm, no email came thru. I checked the "Notifications" settings and the

Miscellaneous Notifications

Someone sends you a private message doesn't have a check mark in it.

Any ideas please.

TheButcher2
Registered User
Posts: 395
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: email notification for new pm's

Post by TheButcher2 » Mon Apr 30, 2018 2:38 pm

Here is the code in case I have changed the wrong value.

Code: Select all

'user_new_privmsg'		=> 0,
		'user_unread_privmsg'	=> 0,
		'user_last_privmsg'		=> 0,
		'user_message_rules'	=> 0,
		'user_full_folder'		=> PRIVMSGS_NO_BOX,
		'user_emailtime'		=> 0,

		'user_notify'			=> 0,
		'user_notify_pm'		=> 0,
		'user_notify_type'		=> NOTIFY_EMAIL,
		'user_allow_pm'			=> 1,
		'user_allow_viewonline'	=> 1,
		'user_allow_viewemail'	=> 1,
		'user_allow_massemail'	=> 1,

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

Re: email notification for new pm's

Post by Lumpy Burgertushie » Mon Apr 30, 2018 3:19 pm

in that code, user notify is still set to 0 and it should be set to 1
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

TheButcher2
Registered User
Posts: 395
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: email notification for new pm's

Post by TheButcher2 » Mon Apr 30, 2018 3:33 pm

Lumpy Burgertushie wrote:
Mon Apr 30, 2018 3:19 pm
in that code, user notify is still set to 0 and it should be set to 1
Hi Robert

It was 1 and in a previous post brf said set it to 0.

BTW I just got this to work by adding a couple of lines of code a friend told me to do,I have tested it and it works.

Here is the code,

Code: Select all

array(
                'item_type'    => 'notification.type.pm',
                'method'    => 'notification.method.email',
            ),



peace

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

Re: email notification for new pm's

Post by Lumpy Burgertushie » Mon Apr 30, 2018 11:29 pm

glad you got it working but brf said just the oposite. go back and look at his post.

change 0 to 1 is what is says.


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

Post Reply

Return to “phpBB Custom Coding”

Who is online

Users browsing this forum: No registered users and 5 guests