Firefox PHP

new message notification: whole body of new message in email

Posted by Marian 
new message notification: whole body of new message in email
October 27, 2005 11:53PM
If someone want's to send the whole body of a new post to users who subscribed to that thread, do the following:

1. in include/email_functions.php, somwhere between line 101 and 108, add the line
"body"    => wordwrap($message["body"], 72),

for more context, here are my lines 104 to 106
"subject" => $message['subject'],
"body"    => wordwrap($message["body"], 72), //MG: neu
"read_url" => phorum_get_url(PHORUM_READ_URL, $message['thread'], $message['message_id']),

2. in include/lang/*your_language_file*, add %body% to an appropriate place at "NewReplyMessage".

Again, for more context here is my expression:

"NewReplyMessage" => "Es gibt einen neuen Beitrag in einem von Dir abonnierten Thema.\n\nThema: %subject%\n\n%body%\n\nZum Beitrag:\n%read_url%\n",

Tested with Phorum 5.0.19.

Cheers,
Marian
Re: new message notification: whole body of new message in email
October 28, 2005 08:13AM
Thats already implemented in phorum-5.1.x. Not sure if the tag was the same ... I think I had there the raw-body and the plain-body (with tags stripped).


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: new message notification: whole body of new message in email
October 28, 2005 08:55AM
It's full_body and plain_body. Maybe it would be a good idea to do the 72 character wrapping in plain_body, since it is used for mailing.
Re: new message notification: whole body of new message in email
October 28, 2005 11:13AM
Quote
ts77
Thats already implemented in phorum-5.1.x.

Good to know (did not find anything by searching the support-phorums).
Anyway, my users demanded it "right here, right now!" ;-)

Cheers,
Marian
Sorry, only registered users may post in this forum.

Click here to login