Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Now Available => Topic started by: Burke ♞ Knight on July 28, 2013, 07:03:32 PM

Title: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: Burke ♞ Knight 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 (http://custom.simplemachines.org/mods/index.php?mod=3927)

Latest Version: 1.0
Compatible With SMF: 2.0.x


Made by: BurkeKnight (http://www.simplemachines.org/community/index.php?action=profile;u=150637) - BurkeKnight Enterprises (http://www.burkeknight.com/)
For Support: The mod's Support topice at SMF, or at BurkeKnight Enterprises (http://www.burkeknight.com/).


This is a simple mod that hides the pm text in email notifications.
This was requested on the SMF site (http://www.simplemachines.org/community/index.php?topic=501395.0) by a member, and was originally posted by: shadow82x (http://www.simplemachines.org/community/index.php?action=profile;u=93211)

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




Credit:
shadow82x (http://www.simplemachines.org/community/index.php?action=profile;u=93211) - For posting the edit.




(http://creativecommons.org/licenses/by-sa/3.0/deed.en_US)
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License (http://creativecommons.org/licenses/by-sa/3.0/deed.en_US).
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: Neo_TE on July 29, 2013, 02:51:31 AM
Wow, nice trick. Thanks.
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: Burke ♞ Knight on July 29, 2013, 06:11:46 AM
Thank you. :)
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: GL700Wing on July 29, 2013, 06:52:12 AM
Great tip - thanks!
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: badon 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?
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: Arantor on August 17, 2013, 05:32:23 PM
Not even close.
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: badon 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?
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: Arantor 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.
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: Burke ♞ Knight on August 17, 2013, 06:18:52 PM
Quote from: badon 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?

That would be a question best posted in Chit Chat, not in topic for something else. ;)
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: badon 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.
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: badon 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? (http://www.simplemachines.org/community/index.php?topic=480271.0).
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: Arantor 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.
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: Burke ♞ Knight 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 (http://www.burkeknight.com/index.php?action=downloads;sa=downfile&id=39)

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

Made by: BurkeKnight (http://www.simplemachines.org/community/index.php?action=profile;u=150637) - BurkeKnight Enterprises (http://www.burkeknight.com/)

This is a simple mod that hides the pm text in email notifications.
This was requested on the SMF site (http://www.simplemachines.org/community/index.php?topic=501395.0) by a member, and was originally posted by: shadow82x (http://www.simplemachines.org/community/index.php?action=profile;u=93211)

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




Credit:
shadow82x (http://www.simplemachines.org/community/index.php?action=profile;u=93211) - For posting the edit.




(http://creativecommons.org/licenses/by-sa/3.0/deed.en_US)
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License (http://creativecommons.org/licenses/by-sa/3.0/deed.en_US).
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: Burke ♞ Knight 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 (http://custom.simplemachines.org/mods/index.php?mod=3927)




Hide PM Text in Email Notifications - Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=3927)

Latest Version: 1.0
Compatible With SMF: 2.0.x


Made by: BurkeKnight (http://www.simplemachines.org/community/index.php?action=profile;u=150637) - BurkeKnight Enterprises (http://www.burkeknight.com/)
For Support: The mod's Support topice at SMF, or at BurkeKnight Enterprises (http://www.burkeknight.com/).


This is a simple mod that hides the pm text in email notifications.
This was requested on the SMF site (http://www.simplemachines.org/community/index.php?topic=501395.0) by a member, and was originally posted by: shadow82x (http://www.simplemachines.org/community/index.php?action=profile;u=93211)

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




Credit:
shadow82x (http://www.simplemachines.org/community/index.php?action=profile;u=93211) - For posting the edit.




(http://creativecommons.org/licenses/by-sa/3.0/deed.en_US)
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License (http://creativecommons.org/licenses/by-sa/3.0/deed.en_US).
Title: Re: [TIP/TRICK] Hide PM Text in Email Notifications
Post by: margarett on September 05, 2014, 10:25:00 AM
As requested, locking ;)