This modification allows delivery of the message text straight into user's email, similar to facebook.
Disclaimer: This tutorial is provided as is. No official support is provided, you can ask questions on our community forum. This tutorial is copyright socialenginemods.net. Any distribution of the installer or the tutorial without prior permission is prohibited. You can link back to this tutorial.
Installer for SE V3.11 : Download
Important: the included file include/class_user.php is for SE version 3.11 only.
| 1 |
Open include/class_user.php and find: (around line 2149 for SE V3.11)
send_systememail('message', $current_recipient->user_info[user_email], array(
$current_recipient->user_displayname,
$this->user_displayname,
"&la href=\"{$url->url_base}login.php\">{$url->url_base}login.php</a>"
));
replace it with
send_systememail('message', $current_recipient->user_info[user_email], array(
$current_recipient->user_displayname,
$this->user_displayname,
"<a href=\"{$url->url_base}login.php\">{$url->url_base}login.php</a>",
$subject,
$message
));
|
| 2 |
Run the following SQL query:
UPDATE se_systememails SET systememail_vars = '[displayname],[sender],[link],[message_subject],[message_body]' WHERE systememail_name = 'message'; |
| 3 |
Navigate to SE Admin "System Emails" and find "New Message Email" email template
Replace the contents with: Hello [displayname], You have just received a new message from [sender]. Please click the following link to login and view and reply to it: [link] ----------------------------- [message_subject] [message_body] Best Regards, Social Network Administration |