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
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

email notification for new pm's

Post by TheButcher2 »

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: 53411
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: email notification for new pm's

Post by Brf »

thecoalman wrote: Sun Apr 29, 2018 10:43 pm Around line 238 in includes/functions_users.php
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: email notification for new pm's

Post by TheButcher2 »

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: 53411
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: email notification for new pm's

Post by Brf »

Change

Code: Select all

'user_notify'			=> 0,
to

Code: Select all

'user_notify'			=> 1,
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: email notification for new pm's

Post by TheButcher2 »

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
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: email notification for new pm's

Post by TheButcher2 »

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.
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: email notification for new pm's

Post by TheButcher2 »

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: 69224
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: email notification for new pm's

Post by Lumpy Burgertushie »

in that code, user notify is still set to 0 and it should be set to 1
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
User avatar
TheButcher2
Registered User
Posts: 1030
Joined: Tue May 13, 2014 11:38 pm
Contact:

Re: email notification for new pm's

Post by TheButcher2 »

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: 69224
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: email notification for new pm's

Post by Lumpy Burgertushie »

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
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
mouthpiece
Registered User
Posts: 40
Joined: Fri Mar 09, 2018 9:06 am

Re: email notification for new pm's

Post by mouthpiece »

TheButcher2 wrote: Mon Apr 30, 2018 3:33 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
Hi, which file did you add this code
User avatar
janus_zonstraal
Registered User
Posts: 6427
Joined: Sat Aug 30, 2014 1:30 pm

Re: email notification for new pm's

Post by janus_zonstraal »

thecoalman wrote: Sun Apr 29, 2018 10:43 pm Around line 238 in includes/functions_users.php
Sorry! My English is bat ;) !!!
Post Reply

Return to “phpBB Custom Coding”