Mal ganz simpel:
posting.php
Code: Alles auswählen
#
#------[ FINDE ]---------------------
#
case 'poll_delete':
delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id);
break;
}
#
#------[ DARUNTER EINFÜGEN (unterhalb der Klammer) ]---------------------
#
if( $submit )
{
include($phpbb_root_path .'includes/emailer.'.$phpEx);
$emailer = new emailer($board_config['smtp_delivery']);
$script_name = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['script_path']));
$u_topic = ( $script_name != '' ) ? $script_name .'/viewtopic.'.$phpEx : 'viewtopic.'.$phpEx;
$u_profile = ( $script_name != '' ) ? $script_name .'/profile.'.$phpEx : 'profile.'.$phpEx;
$server_name = trim($board_config['server_name']);
$server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://';
$server_port = ( $board_config['server_port'] <> 80 ) ? ':'. trim($board_config['server_port']) .'/' : '/';
$orig_word = array();
$replacement_word = array();
obtain_word_list($orig_word, $replacement_word);
$emailer->from($board_config['board_email']);
$emailer->replyto($board_config['board_email']);
$emailer->use_template('admin_topic_notify', $board_config['default_lang']);
$emailer->email_address('test@test.de');
$topic_title = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, unprepare_message($subject)) : unprepare_message($subject);
switch( $mode )
{
case 'newtopic': $action = 'Neues Thema'; break;
case 'reply': $action = 'Antwort'; break;
case 'editpost': $action = 'Beitrag geändert'; break;
default: $action = ''; break;
}
$emailer->assign_vars(array(
'EMAIL_SIG' => ( !empty($board_config['board_email_sig']) ) ? str_replace('<br />', "\n", "-- \n". $board_config['board_email_sig']) : '',
'USER' => $server_protocol . $server_name . $server_port . $u_profile .'?mode=viewprofile&'. POST_USERS_URL ."=". $userdata['user_id'],
'ACTION' => $action,
'TOPIC_TITLE' => $topic_title,
'U_TOPIC' => $server_protocol . $server_name . $server_port . $u_topic .'?'. POST_POST_URL ."=$post_id#$post_id",
));
$emailer->send();
$emailer->reset();
}
Hier deine eMail-Adresse eintragen.
Und dann noch eine admin_topic_notify.tpl mit folgendem Inhalt im Ordner /language/lang_german/email erstellen:
Code: Alles auswählen
Subject: Themenbenachrichtigung - {TOPIC_TITLE}
Charset: iso-8859-1
Thema: {TOPIC_TITLE}
Link: {U_TOPIC}
User: {USER}
Aktion: {ACTION}
{EMAIL_SIG}