Seite 5 von 8

Verfasst: 18.10.2005 16:56
von Toelpel
Eigentlich solltest du nach korrekter Installation des Mods in jedem Forum unten einen neuen kleinen Link ''Bei Antworten in diesem Forum benachrichtigen' haben den der User anklicken kann...

Danach erhält dieser User Mails sobald ein neuer Beitrag geschrieben wurde...

Ich benutze noch phpBB 2.16, denke aber ned dass das an der fehlenden V2.17 liegt dass es bei euch ned geht...

Verfasst: 18.10.2005 17:44
von El Mujo
Da steht tatsächlich etwas, ganz klein aber es steht was :lol: ! Muß ich jetzt als admin in jeden Forum mich durchklicken und auf diesen Link drücken damit ich informiert bin oder gibt es eine einfache Variante

Danke!

Mein Problem ist gelöst

Verfasst: 20.10.2005 04:21
von pfifferhannes
Hallo Toelpel,

ich war total auf dem Holzweg mit meiner Suche nach dem Fehler in den Sicherheitschecks.

Steht eigentlich irgendwo in der Anleitung, daß man bei EIGENEM neuen Thema
KEINE Mail bekommt, auch wenn man das Forum beobachtet?

Draufgekommen bin ich über den zweiten Nebensatz einer geklammerten
Anweisung in einer völlig anderen MOD, die ich in einem anderen Board gefunden habe.


Eröffne ich ein neues Thema mit anderem Nutzeraccount, dann
bekomme ich auch meine Benachrichtigung bei Privat(versteckt)-Forums.

Vielleicht sind viele der im Forum geposteten Berichte und Fragen zu
angeblichen Fehlfunktionen in dieser MOD darauf zurückzuführen?
Wer weiß?

Trotzdem Danke für die Nachdenkzeit und die Mühe eines Replies.

Liebe Grüße
Hans


PS: Alle Tage sind gleich lang - aber unterschiedlich breit...

Verfasst: 29.10.2005 13:50
von jaeckel
Ist der Bug mit den falschen Ansprechnamen immer noch nicht gefunden?

Verfasst: 16.12.2005 16:32
von Gigabryte
jaeckel hat geschrieben:Ist der Bug mit den falschen Ansprechnamen immer noch nicht gefunden?
ja, das würde mich auch brennend interessieren, nach einer halben Stunde googlen hab ich es aber immerhin bis hierhin geschafft, wo ich Gleichgesinnte treffe :grin:

Verfasst: 14.01.2006 17:44
von Dat Ei
So, wie ich den Code verstehe, werden die eMails per BCC an die Abonnenten verschickt. Somit entsteht pro Benachrichtigung eine einzige Mail für alle Abonnenten. Damit existiert aber auch nur ein Mail-Body. Die Variable USERNAME wird mit dem Usernamen des ersten Empfängers in der BCC-Liste gefüllt. M.E. läßt sich der Bug nur beheben, wenn man die Mails einzeln verschicken würde, was aber mehr Last erzeugt, insbesondere, wenn man ein großes Forum mit vielen Usern betreibt. Mein Workaround wird so aussehen, daß ich die Variable USERNAME nicht mehr in den Mail-Templates verwenden werde.


Dat Ei

Verfasst: 14.01.2006 19:47
von mgutt
Wenn es so ist, dann ist es doch logisch, dass der "Fehler" zustande kommt.

Verfasst: 16.01.2006 22:35
von Poruchik
I offer my changes this mod

Code: Alles auswählen

#
#-----[ OPEN ]------------------------------------------ 
#
posting.php

# 
#-----[ FIND ]------------------------------------------ 
# 
			if ( $post_data['first_post'] )
			{
				// fetch topic title
				$sql = "SELECT topic_title, topic_id 

# 
#-----[ REPLACE WITH ]------------------------
# 
			if ( $post_data['first_post']  && $mode != 'editpost')
			{
				// fetch topic title
				$sql = "SELECT topic_title, topic_id 
# 
#-----[ FIND ]------------------------------------------ 
# 
			else
			{
				user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
			}
# 
#-----[ REPLACE WITH ]------------------------
# 
			else  if ( $mode != 'editpost' )
			{
				user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user);
			}

#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_db_utilities.php

#
#-----[ FIND ]------------------------------------------------
# NOTE: Whole string is longer 
#
			$tables = array('auth_access', 'banlist', 'categories',

#
#-----[ IN-LINE FIND ]----------------------------------------
#
); 

#
#-----[ IN-LINE BEFORE, ADD ]----------------------------------
#
, 'forums_watch'

#
#-------[ OPEN ]---------
#
includes/function_post.php

#
#-------[ FIND ]---------
#
//
// Handle user notification on new post (including forum notification)
//

#
#-------[ BEFORE, ADD ]---------
#
//Clean up all BBcode UID 
function clean_up_all_bbcode($post_text, $orig_word, $replacement_word)
{
	global $lang, $orig_word;
	$post_text = " " . $post_text;
	if (!$orig_word)
	{
		$orig_word = array();
		$replacement_word = array();
		obtain_word_list($orig_word, $replacement_word);
	}

	$post_text = (count($orig_word)) ? preg_replace($orig_word, $replacement_word, unprepare_message($post_text)) : unprepare_message($post_text);

	// First: If there isn't a "[" and a "]" in the message, don't bother.
	if (! (strpos($post_text, "[") && strpos($post_text, "]")) )
	{
		// Remove padding, return.
		$post_text = stripslashes(substr($post_text, 1));
		return $post_text;
	}

	//Extended_PM_Notification MOD 
	//Clean up all BBcode UID 
	$post_text = stripslashes($post_text); 
	$quote = $lang['Quote']; 
	$code = $lang['Code']; 
	$wrote = $lang['wrote'];

	$post_text = preg_replace("/\[quote[\:1]*\:[0-9a-z]+=\"([^\"]*)\".*?\]/si", "\\1 $wrote >>\n", $post_text);
	$post_text = preg_replace("/\[quote[\:1]*\:[0-9a-z]+\]/si", "$quote >>", $post_text);
	$post_text = preg_replace("/\[\/quote[\:1]*\:[0-9a-z]+\]/si", "<< $quote", $post_text);
	$post_text = preg_replace("/\[code[\:1]*\:[0-9a-z]+\]/si",  "$code >>", $post_text);
	$post_text = preg_replace("/\[\/code[\:1]*\:[0-9a-z]+\]/si", "<< $code", $post_text);
	$post_text = preg_replace("/\[(([^\s\]]+\:[0-9a-z]+)|([\/]?url[^\s\]]*))\]/si", "", $post_text); 
	$post_text = preg_replace("/&#([0-9+]*);/sie", "chr(\\1)", $post_text);
	// Remove our padding from the string..
	$post_text = substr($post_text, 1);
	return $post_text;
}

# 
#-----[ FIND ]------------------------------------------ 
# 
	if ($mode == 'delete')
	{
		$delete_sql = (!$post_data['first_post'] && !$post_data['last_post']) ? " AND user_id = " . $userdata['user_id'] : '';
		$sql = "DELETE FROM " . TOPICS_WATCH_TABLE . " WHERE topic_id = $topic_id" . $delete_sql;
		if (!$db->sql_query($sql))
		{
			message_die(GENERAL_ERROR, 'Could not change topic notify data', '', __LINE__, __FILE__, $sql);
		}
	}
	else 
	{

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
	if ($mode != 'delete')
	{

#
#-------[ FIND ]---------
#
		if ($mode == 'reply')
		{
			$sql = "SELECT ban_userid 

#
#-------[ BEFORE, ADD ]---------
#
		$orig_word = array();
		$replacement_word = array();
		obtain_word_list($orig_word, $replacement_word);

#
#-------[ FIND ] (3-x)---------
#
					$orig_word = array();
					$replacement_word = array();
					obtain_word_list($orig_word, $replacement_word);

#
#------[ REPLACE WITH ] (3-x) ------------
# (just remove the lines)
#


#
#-------[ FIND ] (3-x)---------
#
					$post_text = (count($orig_word)) ? preg_replace($orig_word, $replacement_word, unprepare_message($post_data['message'])) : unprepare_message($post_data['message']);

#
#------[ REPLACE WITH ] (3-x) ------------
#
					$post_text = clean_up_all_bbcode($post_data['message'], $orig_word, $replacement_word);

#
#-------[ FIND ] (3-x)---------
#
							'TOPIC_TITLE' => $topic_title, 

#
#------[ REPLACE WITH ] (3-x) ------------
#
							'TOPIC_TITLE' => stripslashes($topic_title), 


Verfasst: 03.03.2006 19:55
von julesagogo
Hi all,

Sorry, my German is old and rusty! It looks like Poruchick has modified the "Forum Notification" Mod originally written for phpbb 2.0.11 to phpbb 2.0.19 - is this correct? I couldn't get to the file through David's link, but I think I found it here:
http://www.phpbbhacks.com/download/293

Just want to be sure before I make any changes.

Thanks!

Verfasst: 04.03.2006 13:27
von Poruchik
Hi, comrades! :grin: (Excuse me for bad English)

I offer the new version this mod for phpbb 2.0.19.
This mod is further development a mod Forum notification by David Herrmann.

New:
- Removed some hard coded language to be fficially PHPBB MOD Compatible.
- Updated template disclaimer/license to be fficially PHPBB MOD Compatible.

MOD Download
The texts are available both in English, German, Russian.
Translations to other languages you can find at 'translations'.