[Frage] PN Benachrichtigung via Mail ändern
Verfasst: 24.11.2004 10:28
Moin,
ich möchte meine PN Benachrichtigung via Mail verändern. Die PN soll komplett in der Benachrichtigung enthalten sein. Für den Absender und den Text hab ich einen Mod von Mac (Y.C. LIN) gefunden. Jetzt fehlt mir nur noch das Subjekt der PN.
Kann ich das so machen: create 'PM_SUBJEKT' => $privmsgs_subject in der privmsg.php und abfragen in der privmsg_notify.tpl. Hab meine Änderung rot in den Mod geschrieben.
ich möchte meine PN Benachrichtigung via Mail verändern. Die PN soll komplett in der Benachrichtigung enthalten sein. Für den Absender und den Text hab ich einen Mod von Mac (Y.C. LIN) gefunden. Jetzt fehlt mir nur noch das Subjekt der PN.
Kann ich das so machen: create 'PM_SUBJEKT' => $privmsgs_subject in der privmsg.php und abfragen in der privmsg_notify.tpl. Hab meine Änderung rot in den Mod geschrieben.
##############################################################
## MOD Title: Disply Sender Username and Private Message Content in E-mail Notification
## MOD Version: 1.0.0
## MOD Author: Mac (Y.C. LIN) < ycl_6@sinamail.com > http://endless-tw.net
##
## 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
##
## Installation Level: Easy
## Installation Time: 3 Minutes
##
## Files To Edit: 2
## privmsg.php
## language/lang_english/email/privmsg_notify.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##############################################################
## MOD History:
##
## 2004-01-14 - Version 1.0.0
## - First Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
$emailer->assign_vars(array(
'USERNAME' => $to_username,
'SITENAME' => $board_config['sitename'],
#
#-----[ IN_LINE FIND ]------------------------------------------
#
'USERNAME' => $to_username,
#
#-----[ AFTER,ADD ]------------------------------------------
#
'SENDER_USERNAME' => $userdata['username'],
'PM_MESSAGE' => str_replace("\'", "''", $privmsg_message),
'PM_SUBJEKT' => $privmsgs_subject,
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/email/privmsg_notify.tpl
#
#-----[ FIND ]------------------------------------------
#
You have received a new private message to your account on "{SITENAME}" and you have requested that you be notified on this event. You can view your new message by clicking on the following link:
#
#-----[ REPLACE WITH ]------------------------------------------
#
Member {SENDER_USERNAME} from "{SITENAME}" have just send you a new private message to your account with this subject {PM_SUBJEKT} , 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:
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM