Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Baitjunky on April 08, 2013, 07:24:05 PM

Title: Hide text in email notifications
Post by: Baitjunky on April 08, 2013, 07:24:05 PM
Is there a mod that hides the pm text in the email notification? 2.0.4, I cant seem to find anything in the admin to do this.
Title: Re: Hide text in email notifications
Post by: shadow82x on April 09, 2013, 03:00:52 AM
Welcome to SMF!
There is no mod unfortunately however it's an easy edit. Within FTP navigate to ../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.';
Title: Re: Hide text in email notifications
Post by: Colin on April 09, 2013, 03:09:00 AM
It looks like someone already put a request in for it.

http://www.simplemachines.org/community/index.php?topic=426840.0

I might add it to my growing idea list.
Title: Re: Hide text in email notifications
Post by: shadow82x on April 09, 2013, 03:10:12 AM
It shouldn't be a hard mod to make :P
Title: Re: Hide text in email notifications
Post by: Baitjunky on April 20, 2013, 11:59:22 AM
Thanks guys, I been here, I just cant log in I forgot my password and its a old email addy.
Title: Re: Hide text in email notifications
Post by: Colin on September 04, 2014, 02:03:33 AM
http://www.simplemachines.org/community/index.php?topic=527293.0