[REL] Forum Notification Mod v1.4 für phpBB 2.0.6

In diesem Forum können Mod-Autoren ihre Mods vorstellen, die sich noch im Entwicklungsstatus befinden. Der Einbau in Foren im produktiven Betrieb wird nicht empfohlen.
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.
Toelpel
Mitglied
Beiträge: 5
Registriert: 14.05.2005 16:35

Beitrag 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...
El Mujo
Mitglied
Beiträge: 11
Registriert: 09.07.2005 10:51

Beitrag 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!
Benutzeravatar
pfifferhannes
Mitglied
Beiträge: 4
Registriert: 13.10.2005 16:06

Mein Problem ist gelöst

Beitrag 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...
jaeckel
Mitglied
Beiträge: 31
Registriert: 17.09.2004 09:29
Wohnort: Bad Nauheim
Kontaktdaten:

Beitrag von jaeckel »

Ist der Bug mit den falschen Ansprechnamen immer noch nicht gefunden?
Gigabryte
Mitglied
Beiträge: 50
Registriert: 16.12.2005 16:18

Beitrag 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:
Dat Ei
Mitglied
Beiträge: 1
Registriert: 14.01.2006 17:39

Beitrag 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
Benutzeravatar
mgutt
Mitglied
Beiträge: 2999
Registriert: 31.08.2004 16:44
Wohnort: Hennef
Kontaktdaten:

Beitrag von mgutt »

Wenn es so ist, dann ist es doch logisch, dass der "Fehler" zustande kommt.
meine Foren: http://www.maxrev.de/communities.htm
Ich kaufe Dein Forum! Angebote bitte an marc at gutt punkt it
Benutzeravatar
Poruchik
Mitglied
Beiträge: 12
Registriert: 16.01.2006 21:21
Kontaktdaten:

Beitrag 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), 

julesagogo
Mitglied
Beiträge: 5
Registriert: 03.03.2006 19:47

Beitrag 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!
Benutzeravatar
Poruchik
Mitglied
Beiträge: 12
Registriert: 16.01.2006 21:21
Kontaktdaten:

Beitrag 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'.
Antworten

Zurück zu „phpBB 2.0: Mods in Entwicklung“