Advertisement:

Author Topic: Don't want PM text in notification email  (Read 7420 times)

Offline saldali

  • Newbie
  • *
  • Posts: 7
Don't want PM text in notification email
« on: November 10, 2005, 04:06:31 AM »
Title says all, notification email of new PM's contains the PM text. don't want that...

how can i fix this issue??

thank you

Offline kriskd

  • Jr. Member
  • **
  • Posts: 261
  • Gender: Female
    • @kriskd on Twitter
    • Kitty-Cam
Re: Don't want PM text in notification email
« Reply #1 on: May 09, 2006, 04:08:31 PM »
I'd like to second this request.  This is the big item that is preventing me from using SMF.  For the novice user the PM notifications look like standard e-mails and it is so automatic for them to reply to it.  I'd like to know if this feature might be coming or if there are perhaps more topics on this subject (link please).  :)
SMF 2.0.2

Offline kriskd

  • Jr. Member
  • **
  • Posts: 261
  • Gender: Female
    • @kriskd on Twitter
    • Kitty-Cam
Re: Don't want PM text in notification email
« Reply #2 on: May 14, 2006, 11:48:59 AM »
I think I just discovered this feature in SMF 1.1 RC2, namely:

"Don't allow post text in notifications?"

If this is true, I'm a pretty happy admin!!!!
SMF 2.0.2

Offline H

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 21,656
  • Gender: Male
Re: Don't want PM text in notification email
« Reply #3 on: May 14, 2006, 12:01:54 PM »
If you don't like the way e-mails are sent out you can edit the relevant language file. I believe the file might be index.english.php
Huw
Former Support Team Lead
                              I recommend:
Namecheap (domains)
Fastmail (e-mail)
Linode (VPS)
                             

Offline kriskd

  • Jr. Member
  • **
  • Posts: 261
  • Gender: Female
    • @kriskd on Twitter
    • Kitty-Cam
Re: Don't want PM text in notification email
« Reply #4 on: May 16, 2006, 12:10:27 PM »
Okay, I was wrong in my assumption about "Don't allow post text in notifications?".  This doesn't apply to the content of PM notifications.  So, my request still stands, I really need the option to not have the PM text in an e-mail notification because they look too much like a standard e-mail.

I understand I can beef up the language that tells the person not to reply, but is there anyway now to remove this content of the PM from the e-mail notification.  If it's just a matter of removing something from index.english.php, can someone tell me what that would be?  I am using SMF 1.1 RC2.

Thanks.
SMF 2.0.2

Offline Oldiesmann

  • Lead Developer
  • SMF Super Hero
  • *
  • Posts: 23,890
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Don't want PM text in notification email
« Reply #5 on: May 16, 2006, 01:24:27 PM »
Themes/default/languages/PersonalMessage.english.php

Find
Code: [Select]
$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';
Replace
Code: [Select]
$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.';
Find
Code: [Select]
$txt['instant_reply'] = 'Reply to this Personal Message here:';
Add after that
Code: [Select]
$txt['instant_view'] = 'View this Personal Message here:';
Sources/Subs-Post.php

Find
Code: [Select]
$mailmessage .= "\n\n" . $txt['instant_reply'] . ' ' . $scripturl . '?action=pm;sa=send;f=inbox;pmsg=' . $ID_PM . ';quote;u=' . $from['id'];
Replace
Code: [Select]
$mailmessage .= "\n\n" . $txt['instant_view'] . ' ' . $scripturl . '?action=pm#' . $ID_PM;
That will remove the message text from the notification emails and will also change the last line to say "You can view this Personal Message here: {url}" (with {url} being a link to the message) instead of "You can reply to this Personal Message here: {url}" (with {url} being a link to reply to the message). Makes things a bit more convenient, since users will want to view the message before replying to it.

Offline kriskd

  • Jr. Member
  • **
  • Posts: 261
  • Gender: Female
    • @kriskd on Twitter
    • Kitty-Cam
Re: Don't want PM text in notification email
« Reply #6 on: May 16, 2006, 01:38:17 PM »
Thanks for the code suggestions!  I'll have to see if I can get that going!

Sort of a dumb question -- these changes won't affect the users ability to request/recover a new password or anything, right?  I had done a modification with a different forum package and because of that, the user couldn't request a new password.
SMF 2.0.2

Offline sbarnes

  • Jr. Member
  • **
  • Posts: 136
    • www.flashlight-torches.co.uk
Re: Don't want PM text in notification email
« Reply #7 on: May 16, 2006, 01:52:39 PM »
Excellant, thank you very much, works a treat.
Just tested the requesting a new passsord thing and that works as well.

Great job

Offline Oldiesmann

  • Lead Developer
  • SMF Super Hero
  • *
  • Posts: 23,890
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Don't want PM text in notification email
« Reply #8 on: May 16, 2006, 02:04:36 PM »
Thanks for the code suggestions!  I'll have to see if I can get that going!

Sort of a dumb question -- these changes won't affect the users ability to request/recover a new password or anything, right?  I had done a modification with a different forum package and because of that, the user couldn't request a new password.

That's a completely different email message, so no it won't. :)

Offline kriskd

  • Jr. Member
  • **
  • Posts: 261
  • Gender: Female
    • @kriskd on Twitter
    • Kitty-Cam
Re: Don't want PM text in notification email
« Reply #9 on: May 17, 2006, 10:02:40 PM »
Thanks Oldiesmann -- that worked perfectly for me as well!

Wish me luck people, I'll be launching my SMF forum either late Thursday or on Friday.  I think I got it working the way I want to!
SMF 2.0.2

Offline lordg

  • Semi-Newbie
  • *
  • Posts: 13
Re: Don't want PM text in notification email
« Reply #10 on: December 26, 2009, 07:41:56 AM »
I cant find this "Sources/Subs-Post.php"

Can you help with the exact location like the previous bit i.e Themes/language/english etc. Tried the search button etc.

Thanks in advance :)

Offline Arantor

  • SMF Friend
  • SMF Legend
  • *
  • Posts: 58,417
Re: Don't want PM text in notification email
« Reply #11 on: December 26, 2009, 07:47:46 AM »
Sources/Subs-Post.php is the exact location. It doesn't live anywhere inside the themes area.

Offline lordg

  • Semi-Newbie
  • *
  • Posts: 13
Re: Don't want PM text in notification email
« Reply #12 on: January 07, 2010, 04:33:20 PM »
Thanks I found it and amended it but there were two similar posts called the same as you mention above. However still the message is displayed on the email about a PM ?

Thanks

Offline JimM

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,977
  • Gender: Male
    • Southern Spirit Hunters
Re: Don't want PM text in notification email
« Reply #13 on: January 08, 2010, 09:13:43 PM »
There's only one that matches exactly as Oldiesmann posted it and if you change that one it should work fine.
Jim "JimM" Moore
Former Support Specialist
jimm@simplemachines.org

Please do not PM me for support!                   
Installing SMF
Upgrade SMF
Manual Installation of Mods

Offline lordg

  • Semi-Newbie
  • *
  • Posts: 13
Re: Don't want PM text in notification email
« Reply #14 on: March 13, 2010, 05:02:16 PM »
Sorry me again, whats the command to find the relevant text within the text document ?? Tried looking but no luck  :-[

Thanks

Offline Arantor

  • SMF Friend
  • SMF Legend
  • *
  • Posts: 58,417
Re: Don't want PM text in notification email
« Reply #15 on: March 13, 2010, 05:04:37 PM »
So what package are you using open and edit the document?

Offline lordg

  • Semi-Newbie
  • *
  • Posts: 13
Re: Don't want PM text in notification email
« Reply #16 on: March 13, 2010, 05:06:49 PM »
Hi,

1.1.11 Found the file, then right clicked on the relevant file and clicked Edit.

Now have the file text open in front of me, I think there is a command which brings up a window where I can input the text and find the relevant line but I cannot remember what the command is ?

Thanks

Offline Wizzlefits

  • Jr. Member
  • **
  • Posts: 115
  • Gender: Male
  • Don't ask! I have NO idea!
    • The Bloody Blog
Re: Don't want PM text in notification email
« Reply #17 on: March 13, 2010, 05:08:45 PM »
Ctrl+f
or
Control plus f

Offline Arantor

  • SMF Friend
  • SMF Legend
  • *
  • Posts: 58,417
Re: Don't want PM text in notification email
« Reply #18 on: March 13, 2010, 05:08:54 PM »
So... cPanel code editor? You could try using your browser's own find function (Ctrl-F) I suppose...

Offline lordg

  • Semi-Newbie
  • *
  • Posts: 13
Re: Don't want PM text in notification email
« Reply #19 on: March 13, 2010, 05:12:03 PM »
Yeah sorry thats what I am using.

In fact it seems I have already replace the text with

      $mailmessage .= "\n\n" . $txt['instant_view'] . ' ' . $scripturl . '?action=pm#' . $ID_PM;

But still PM's get text included ??