[Frage] PN Benachrichtigung via Mail ändern

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
synack
Mitglied
Beiträge: 67
Registriert: 27.06.2003 14:25

[Frage] PN Benachrichtigung via Mail ändern

Beitrag von synack »

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.

##############################################################
## 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
synack
Mitglied
Beiträge: 67
Registriert: 27.06.2003 14:25

Beitrag von synack »

*schieb*

Möchte doch nur wissen ob 'PM_SUBJEKT' => $privmsgs_subject wiklich den Titel der PN ausgibt oder ob da noch str_replace("\'", "''"," vor muss(oder so ähnlich)?
synack
Mitglied
Beiträge: 67
Registriert: 27.06.2003 14:25

Beitrag von synack »

*schieb*

zu einfach? oder sollte ich einfach mal probieren?
Antworten

Zurück zu „phpBB 2.0: Mod Support“