PunBB Resource

Your ultimate PunBB resource!

Keywords:

    (Extended)

You are not logged in.

#26 2007-10-27 18:26:34

no64
Member
Registered: 2007-06-20
Posts: 179

Re: email notification of PM?

Vanslyde, thank's, that work good......
but how can I add the "owners" (recipient) username after the "Hello...."  ?

Offline

 

#27 2007-10-27 19:15:50

no64
Member
Registered: 2007-06-20
Posts: 179

Re: email notification of PM?

Vanslyde,

..i got this, so you don't have to implement the url directly:

Code:

 if ($alert)
            {
            require PUN_ROOT.'include/email.php';
            $mail_subject = 'New Private Message has arrived';
            $mail_message = 'Hello XXXXXXX '."\n\n".'You have received a private message from '.$pun_user['username'].' to your account on "'.$pun_config['o_board_title'].'". '."\n".'You can view your new message by clicking on the following link:  '."\n\n".' '.$pun_config['o_base_url'].'/message_list.php'.' '."\n\n".'Remember that you can always choose not to be notified of new messages by changing the appropriate setting in your profile. '."\n\n".'-------------------------------------------------- '."\n".'Thanks. The Forum Team'."\n".'(Please do not reply to this message)';
            pun_mail($email, $mail_subject, $mail_message);
            }

Offline

 

#28 2007-10-27 21:00:50

no64
Member
Registered: 2007-06-20
Posts: 179

Re: email notification of PM?

nickfzx wrote:

just alter the template file for new_pm

your will need to add <username> to the template and then add a string replace to the message_send.php file where the email notification is constructed.

It is pretty simple...if you do a little php and mysql learning (i recommend Lynda video training) simple stuff like this will become very easy.

nickfzx I don't have the "new_pm" file.......it seems there are two different mod for this:
http://www.punres.net/viewtopic.php?pid=20708#p20708

that one uses a "new_pm" file

...hmmmm, have to check if they are similar besides that.

Offline

 

#29 2007-10-28 18:21:49

no64
Member
Registered: 2007-06-20
Posts: 179

Re: email notification of PM?

nickfzx wrote:

I would love to integrate this mod with the Mass Private Message plugin.  So that you can mass pm everyone in certain groups and they get a email notification (if that is set in their preferences) about the private message.


Any ideas or pointers on where to get started?

Nickfzx....., would you share this?  I read you did it.

Offline

 

#30 2007-11-15 13:41:53

add18uk
New member
Registered: 2007-01-18
Posts: 7

Re: email notification of PM?

Can anyone please help. I have installed this mod and done everything correctly. however, its not sending the email at all. Has anyone made more of an official mod release of this, or is there any new PM systems with it built in? ive searched the forum but not been able to find my answers.

My website is hosted with godaddy so im wondering whether maybe i need to change the info under admin > options > email

thanks for any help

Offline

 

#31 2008-02-26 10:07:17

Rich T
Member
Registered: 2008-02-23
Posts: 17

Re: email notification of PM?

Hi all, I am not too good with coding but i try. Does this code work with 1.2.17 ?  Also, I do not understand where I am supposed to add this first bit of code

Add a field 'email_alert' to it table '*_users'

Code:

Code:

Champ -> email_alert   Type ->  tinyint(1)    NULL -> NOTNULL    D�faut -> 0

Cheers Richard

Offline

 

#32 2008-03-18 23:07:23

vauxtigra2005
Member
Registered: 2008-03-09
Posts: 10

Re: email notification of PM?

Hi there,

Looking to put this in mine but the bit I'm not sure about is: Add a field 'email_alert' to it table '*_users' could someone please explain as slowly learning php...

would the table be the userlist.php?

Thanks

Offline

 

#33 2008-03-18 23:50:49

Vanslyde
Member
From: Montreal
Registered: 2007-03-19
Posts: 21
Website

Re: email notification of PM?

Rich T, vauxtigra2005

Add a field 'email_alert' in the database, not in the php files.
Under the table "Users" you add a field and name it 'email_alert' along with the other specifications.

http://i119.photobucket.com/albums/o144/indiequebec/idqpunbbpmnotice.gif

^^ my 'email_alert' field is showing in the picture because I've had it created already.

Last edited by Vanslyde (2008-03-18 23:56:51)

Offline

 

#34 2008-03-19 22:33:32

vauxtigra2005
Member
Registered: 2008-03-09
Posts: 10

Re: email notification of PM?

After putting this in getting this error back!

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/zworxuk/public_html/forum/message_send.php on line 135

how do i find line 135???

Thanks

Offline

 

#35 2008-03-20 06:50:07

MattF
Member
From: South Yorkshire, England
Registered: 2007-03-16
Posts: 415

Re: email notification of PM?

Grep if on *nix, or use some text editor with a search function on M$.

Offline

 

#36 2008-09-03 21:07:29

vauxtigra2005
Member
Registered: 2008-03-09
Posts: 10

Re: email notification of PM?

Vanslyde wrote:

Rich T, vauxtigra2005

Add a field 'email_alert' in the database, not in the php files.
Under the table "Users" you add a field and name it 'email_alert' along with the other specifications.

http://i119.photobucket.com/albums/o144 … notice.gif

^^ my 'email_alert' field is showing in the picture because I've had it created already.

Finally got my laptop back after the hard drive died!

Sorry but still not sure where in the database this is going maybe I've missed something, could you/someone explain in jannet and john as still on the learning curve!!!

Thanks for your time.

Offline

 

#37 2008-09-03 23:54:01

Vanslyde
Member
From: Montreal
Registered: 2007-03-19
Posts: 21
Website

Re: email notification of PM?

In your database you have a "users" table, click it,
Then enter "1" in the field next to "Add".
Just below, click Go, you'll be talen to a series of empty fields where you'll name your new field "email_alert" and give it the other specs shown in page 1.

Offline

 

#38 2008-09-05 10:15:28

vauxtigra2005
Member
Registered: 2008-03-09
Posts: 10

Re: email notification of PM?

Found it was just looking in the wrong place! have now got it up and working thanks.

Offline

 

Board footer

Based on PunBB
© Copyright 2002–2005 Rickard Andersson

© Copyright 2004–2006 Kristoffer Jansson

User contributed files are property of their respective owners.