Seite 1 von 1

Email bei bann

Verfasst: 29.10.2008 14:28
von goodpeace
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

Verfasst: 29.10.2008 18:31
von Miriam
Welche Mod genau und welche Fehlermeldung?

Verfasst: 29.10.2008 19:20
von goodpeace
Weiss ich nicht mehr finde den mod nicht mehr .

Kennts du denn keine andere lösung mehr dazu oder nen MOD?

Danke im voraus

Verfasst: 29.10.2008 19:43
von Miriam
Du weisst die Mod nicht mehr und kannst auch die Fehlermeldung nicht sagen.... was/wie sollen wir da helfen?

Verfasst: 29.10.2008 21:16
von goodpeace

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
Hier ist der Mod hab so eingebaut wie da steht und das Email templates auch hochgeladen

Fehler soweit ich mich erinnern kann war emailer.php , aber da wurde ja auch nichts modifiziert

Verfasst: 30.10.2008 18:21
von Miriam
Gab es diesen "emailer-Fehler" vorher auch schon?

Verfasst: 30.10.2008 18:50
von goodpeace
Nee nur nach dem einbau des Mods

Verfasst: 30.10.2008 19:18
von Miriam
Und wie lautet der Fehler?