Code: Select all
Hello Shof515 Testing,
Member Shof515 from "Shof515.com" have just send you a new private message to
your account, and you have requested that you be notified on this event. The
content of the message is as follow:
Can you please post?
You can view your new message by clicking on the following link:
http://shof515.com/(edit link)
Remember that you can always choose not to be notified of new messages by
changing the appropriate setting in your profile.
--
Thanks, Shof515
Code: Select all
$privmsg_message = prepare_message($HTTP_POST_VARS['message'], $html_on, $bbcode_on, $smilies_on, $bbcode_uid);
//Extended_PM_Notification MOD
//Clean up all BBcode UID
$message_text = htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['message'])));
$quote = $lang['Quote'];
$code = $lang['Code'];
//Clean up all BBcode tags
$bbcode_match = array('/\[quote=\"\;\w+\"\;\]/si', '/\[quote\]/si', '/\[\/quote\]/si', '/\[code\]/si', '/\[\/code\]/si', '/\[\w+\]/si', '/\[\/\w+\]/si', '/\[\w+=\w+\]/si', '/\[\/\w+=\w+\]/si','/\[\w+\]/si', '/\[\/\w+\]/si');
$bbcode_replace = array("\n$quote >>\n", "\n$quote >>\n","\n<< $quote\n", "\n$code >>\n","\n<< $code\n",'','','','','','');
$message_text = preg_replace($bbcode_match, $bbcode_replace, $message_text);
Code: Select all
$emailer->assign_vars(array(
'USERNAME' => $to_username,
'SENDER_USERNAME' => htmlspecialchars($userdata['username']), //Extended_PM_Notification MOD
'PM_MESSAGE' => $message_text, //Extended_PM_Notification MOD
'SITENAME' => $board_config['sitename'],
'EMAIL_SIG' => (!empty($board_config['board_email_sig'])) ? str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig']) : '',
'U_INBOX' => $server_protocol . $server_name . $server_port . $script_name . '?folder=inbox')
);
Code: Select all
Subject: New Private Message has arrived
Charset: iso-8859-1
Hello {USERNAME},
The member, {SENDER_USERNAME} from "{SITENAME}" has just sent you a new private message, and you have requested that you be notified on this event. The content of the message is as follow:
{PM_MESSAGE}
You can view your new message by clicking on the following link:
{U_INBOX}
Remember that you can always choose not to be notified of new messages by changing the appropriate setting in your profile.
{EMAIL_SIG}
Hello [AAE]-=GIT-R-DONE=-,
The member, from "AmericasArmyElite.com" has just sent you a new private message, and you have requested that you be notified on this event. The content of the message is as follow:
You can view your new message by clicking on the following link:
http://www.AmericasArmyElite.com/module ... lder=inbox
Remember that you can always choose not to be notified of new messages by changing the appropriate setting in your profile.
--
Thanks, The Web Team @ AmericasArmyElite.com
MOD Database Manager wrote: Classification: 54 Communication
MOD Name: Extended Private Message Notification
Author: ycl6
MOD Description: This MOD will allow receiver who enables e-mail notification when receiving new private message to have sender's username and message content included in the e-mail
MOD Version: 1.1.5
Installation Level: Easy
Installation Time: ~ 3 Minutes
Download File: Extended_PM_Notification_1.1.5.zip
File Size: 5434 Bytes
Security Score:
Ekac wrote: will this work in version 2.0.10 ?