News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Don't want PM text in notification email

Started by saldali, November 10, 2005, 04:06:31 AM

Previous topic - Next topic

Arantor

$txt[562] = 'You have just been sent a personal message by SENDER on ' . $context['forum_name'] . '.' . "\n\n" . 'IMPORTANT: Remember, this is just a notification. Please do not reply to this email.' . "\n\n" . 'The message they sent you was:' . "\n\n" . 'MESSAGE';

^^ that's the one you have to edit according to Oldiesmann's instructions; you've only edited part of it.

lordg

PM messages now look like this  :-[

You have just been sent a personal message by Gman on For Sale Forum - FREE to Join and FREE to advertise.

IMPORTANT: Remember, this is just a notification. Please do not reply to this email.

The message they sent you was:

test

http://forsaleforum.co.uk/index.php?action=pm#3162 [nofollow]

Arantor

You've modified part of it without doing the other part.

lordg

Looking at his instructions I found the first line and replaced with the line listed. Then added the extra bit, then found the next part and replace that too.

When you say I have only modified part what bit do you mean ?

Thanks

Arantor

You couldn't have made the first change because it still quoted the message....

lordg

Thats what I thought so I double checked. Code in Themes/default/languages/PersonalMessage.english.php now says.

$txt[562] = 'You have just been sent a personal message by SENDER on ' . $context['forum_name'] . '.' . "\n\n" . 'IMPORTANT: Remember, this is just a notification. Please do not reply to this email.';
$txt[748] = '(multiple recipients: \'name1, name2\')';
// Use numeric entities in the below string.
$txt['instant_reply'] = 'Reply to this Personal Message here:';
$txt['instant_view'] = 'View this Personal Message here:';

Code in Sources/Subs-Post.php now says

$mailsubject = str_replace(array('SUBJECT', 'SENDER'), array($subject, un_htmlspecialchars($from['name'])), $txt[561]);
      $mailmessage = str_replace(array('SUBJECT', 'MESSAGE', 'SENDER'), array($subject, $message, un_htmlspecialchars($from['name'])), $txt[562]);
      $mailmessage .= "\n\n" . $txt['instant_view'] . ' ' . $scripturl . '?action=pm#' . $ID_PM;

I have bolded the text for the bits I have amended and they match what has been advised but still the PM looks like the earlier message.







Wizzlefits

Pardon the stupid question.
But after making the edits, did you save the files to your server?

Arantor

Question: are you using English, English-UTF-8 or English British?

JimM

There are a total of 3 edits in 2 different files.  Did you accomplish all 3?
Jim "JimM" Moore
Former Support Specialist

lordg

Quote from: Arantor on March 13, 2010, 05:57:33 PM
Question: are you using English, English-UTF-8 or English British?

Hmmm I am not sure how would I find out ?

Quote from: JimM on March 13, 2010, 08:54:49 PM
There are a total of 3 edits in 2 different files.  Did you accomplish all 3?

I sure did, all the text in bold are the changes I made. Changed the first bit, added the second bit and then changed the last bit as per the instructions, yet still not working ?

Thanks for trying to help guys.

JimM

Quote from: lordg on March 14, 2010, 07:28:17 AM
Quote from: Arantor on March 13, 2010, 05:57:33 PM
Question: are you using English, English-UTF-8 or English British?

Hmmm I am not sure how would I find out ?

Admin > Configuration > Server Settings > Core Configuration > Default Forum Language
Jim "JimM" Moore
Former Support Specialist

lordg

#31
Ah thanks.

Forum is using English-Utf8.

Edit - You little beauty, I changed the forum language to English and it now works perfectly.

Your a star :D ;)

Comes up like this now

You have just been sent a personal message by Gman on For Sale Forum - FREE to Join and FREE to advertise.

IMPORTANT: Remember, this is just a notification. Please do not reply to this email.

View this Personal Message here: http://forsaleforum.co.uk/index.php?action=pm#3185 [nofollow]

JimM

Great.  If this is solved, please mark it solved by clicking the Mark Topic Solved link at the bottom left.
Jim "JimM" Moore
Former Support Specialist

Square

#33
SMF 1.1.16

Hi,

Thanks for the code.

I did the changes and everything is working fine except that the link in the notification email brings to the PM inbox instead of the message itself.
In other words, the 3rd line in the notification email is
View this Personal Message here: http://www.blabla.com/forum/index.php?action=pm#6412
while it should be
View this Personal Message here: http://www.blabla.com/forum/index.php?action=pm#msg6412
to go directly to the PM.

Any idea?

Thanks.  :)


Advertisement: