Hallo ,
Ich habe das MOD von phphacks.com genommen aber leider funktionier nicht kommt fehler meldung mit emailer.php , weiss jemand noch ein mod oder snippet ?
danke im voraus
Email bei bann
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.
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.
Code: Alles auswählen
###############################################
## MOD Title: Email notify on user ban
## MOD Author: kber < webmaster@phpbbegypt.com > (kber) http://www.phpbbegypt.com
## MOD Description: An email is sent to the user who is banned by an admin.
##
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 1 minutes
## Files To Edit: 1
## admin/admin_user_ban.php
##
## Included Files:1
## root/language/lang_english/email/ban_notify.tpl
##
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
##############################################################
## Author Notes:
## yes we banned u , but u have to know that ! enjoy
##############################################################
## MOD History:
## 2006 - 11 - 10
## fix templeate name ( thnks RMcGirr83)
## 2006-11-09- virsion 1.0.0 ( released )
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#-----[ COPY ]------------------------------------------
#
copy root/language/lang_english/email/ban_notify.tpl to language/lang_english/email/ban_notify.tpl
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_user_ban.php
#
#-----[ FIND ]------------------------------------------
#
$message = $lang['Ban_update_sucessful'] . '<br /><br />' . sprintf($lang['Click_return_banadmin'], '<a href="' . append_sid("admin_user_ban.$phpEx") . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_admin_index'], '<a href="' . append_sid("index.$phpEx?pane=right") . '">', '</a>');
#
#-----[ AFTER, ADD ]------------------------------------------
#
// START - Email notify on user ban ( www.phpbbegypt.com)
$email_headers = 'From: ' . $board_config['board_email'] . "\nReturn-Path: " . $board_config['board_email'] . "\n";
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
$emailer = new emailer($board_config['smtp_delivery']);
$emailer->use_template('ban_notify', $to_userdata['user_lang']);
$emailer->extra_headers($email_headers);
$emailer->email_address($email);
$emailer->set_subject(); //$lang['Notification_subject']
$emailer->assign_vars(array(
'USERNAME' => $username,
'SITENAME' => $board_config['sitename'],
'EMAIL_SIG' => str_replace('<br />', "\n", "-- \n" . $board_config['board_email_sig'])
)
);
$emailer->send();
$emailer->reset();
// END - Email notify on user ban ( www.phpbbegypt.com)
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM
Fehler soweit ich mich erinnern kann war emailer.php , aber da wurde ja auch nichts modifiziert