[REL] Forum Notification Mod v1.4 für phpBB 2.0.6
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.
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...
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...
- pfifferhannes
- Mitglied
- Beiträge: 4
- Registriert: 13.10.2005 16:06
Mein Problem ist gelöst
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...
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...
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
Dat Ei
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
Ich kaufe Dein Forum! Angebote bitte an marc at gutt punkt it
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),
-
- Mitglied
- Beiträge: 5
- Registriert: 03.03.2006 19:47
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!
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!
Hi, comrades!
(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'.

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