Advertisement:

Author Topic: [TIP/TRICK] Hide PM Text in Email Notifications  (Read 15812 times)

Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
[TIP/TRICK] Hide PM Text in Email Notifications
« on: July 28, 2013, 07:03:32 PM »
This is a simple trick that hides the pm text in email notifications.
This was requested on the SMF site by a member, and was originally posted by: shadow82x

../Themes/default/languages/PersonalMessage.english.php

Code: (Find) [Select]
$txt['pm_email'] = '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';
Code: (Replace with) [Select]
$txt['pm_email'] = '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" . 'Instead, please visit the forum at ' . $GLOBALS['scripturl'] . '?action=pm to read your message.';


For those people who wanted this as a mod, here it is!
I have approval to post this here, since the only reason it was not approved for the Mod site, was due to being so small a mod.



Hide PM Text in Email Notifications - Link to Mod

Latest Version: 1.0
Compatible With SMF: 2.0.x

Made by: BurkeKnight - BurkeKnight Enterprises
For Support: The mod's Support topice at SMF, or at BurkeKnight Enterprises.

This is a simple mod that hides the pm text in email notifications.
This was requested on the SMF site by a member, and was originally posted by: shadow82x

Settings:
Admin > Configuration > Modification Settings > Hide PM Text in Email Notifications



Credit:
shadow82x - For posting the edit.



« Last Edit: September 05, 2014, 10:21:59 AM by BurkeKnight »

Neo_TE

  • Guest
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #1 on: July 29, 2013, 02:51:31 AM »
Wow, nice trick. Thanks.

Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #2 on: July 29, 2013, 06:11:46 AM »
Thank you. :)

Offline GL700Wing

  • Jr. Member
  • **
  • Posts: 270
  • Gender: Female
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #3 on: July 29, 2013, 06:52:12 AM »
Great tip - thanks!

Offline badon

  • Jr. Member
  • **
  • Posts: 185
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #4 on: August 17, 2013, 05:17:06 PM »
Is this the #1 most requested feature for all versions of SMF during the last 10 years?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,061
    • Arantor on GitHub
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #5 on: August 17, 2013, 05:32:23 PM »
Not even close.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline badon

  • Jr. Member
  • **
  • Posts: 185
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #6 on: August 17, 2013, 05:49:20 PM »
What's the most requested feature during the last 10 years that SMF still doesn't have? I'm just curious. Is there a ranked list of top requested features?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,061
    • Arantor on GitHub
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #7 on: August 17, 2013, 06:12:00 PM »
Last 10 years? You mean before SMF was even released...?

There isn't a formal list. The most popular in recent times is for better mobile support. Other than that, most of the requested things fall into broad categories like 'clan system' and 'ranking system' (for which everyone has a different definition) or calendar tweaks which only apply to a small subset of users anyway.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #8 on: August 17, 2013, 06:18:52 PM »
What's the most requested feature during the last 10 years that SMF still doesn't have? I'm just curious. Is there a ranked list of top requested features?

That would be a question best posted in Chit Chat, not in topic for something else. ;)

Offline badon

  • Jr. Member
  • **
  • Posts: 185
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #9 on: August 17, 2013, 06:32:19 PM »
Right, I'm just making a backwards point that I think this ought to be a feature of SMF, especially since it is already a feature for topic reply notifications. In any case, the mod is easy enough to do manually, and it should be pretty easy to eventually add as a new feature too.

Offline badon

  • Jr. Member
  • **
  • Posts: 185
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #10 on: August 17, 2013, 06:34:12 PM »
Another thing worth mentioning is that email notifications circumvent HTTPS, so they're kind of important from a security perspective. More info: Does SMF 2.0.2 support SSL/HTTPS?.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,061
    • Arantor on GitHub
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #11 on: August 17, 2013, 06:36:11 PM »
When you figure out how to implement secure email, let everyone (including the NSA) know. In any case, SSL on forums is almost never about implementing it for protecting the content but about protecting the user's data.

In any case from a security perspective there are many, many more important things to do first.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

You either die a hero or live long enough to see yourself become the villain. It seems you have chosen which, and now I must do the same.

Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #12 on: August 18, 2013, 06:06:17 AM »
For those people who wanted this as a mod, here it is!
I have approval to post this here, since the only reason it was not approved for the Mod site, was due to being so small a mod.

(First Post is also modified.)



Hide PM Text in Email Notifications - Download Mod

Version: 1.0 | Date: July 23, 2013
Compatibility: SMF 2.0

Made by: BurkeKnight - BurkeKnight Enterprises

This is a simple mod that hides the pm text in email notifications.
This was requested on the SMF site by a member, and was originally posted by: shadow82x

There are no settings, so if you want to disable this mod, just uninstall it via the package manager.



Credit:
shadow82x - For posting the edit.



« Last Edit: August 27, 2014, 11:27:58 PM by BurkeKnight »

Offline Burke ♞ Knight

  • SMF Hero
  • ******
  • Posts: 3,534
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #13 on: September 05, 2014, 10:20:41 AM »
This topic can be closed now, since the cust team approved the new mod for it:

Hide PM Text in Email Notifications



Hide PM Text in Email Notifications - Link to Mod

Latest Version: 1.0
Compatible With SMF: 2.0.x

Made by: BurkeKnight - BurkeKnight Enterprises
For Support: The mod's Support topice at SMF, or at BurkeKnight Enterprises.

This is a simple mod that hides the pm text in email notifications.
This was requested on the SMF site by a member, and was originally posted by: shadow82x

Settings:
Admin > Configuration > Modification Settings > Hide PM Text in Email Notifications



Credit:
shadow82x - For posting the edit.




Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: [TIP/TRICK] Hide PM Text in Email Notifications
« Reply #14 on: September 05, 2014, 10:25:00 AM »
As requested, locking ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair