Seite 1 von 1
Benachrichtigung neues Thema an alle User
Verfasst: 20.12.2008 21:08
von DirkSch
Hallo Leute,
bin neu hier und habe mal zum Test ein Forum aufgesetzt. Dort sollen max 20 User angemeldet sein.
Jetzt sollen alle User eine Nachricht bekommen wenn dort eine neue Post eingestellt wurde oder jemand antwortet. Egal ob der User da was abonniert hat oder nicht.
Geht das und wie?
Danke Euch
Dirk
Verfasst: 20.12.2008 22:42
von cYbercOsmOnauT
Hallo Dirk,
suche in
/includes/functions_posting.php folgende Zeilen
Code: Alles auswählen
// -- get forum_userids || topic_userids
$sql = 'SELECT u.user_id, u.username, u.user_email, u.user_lang, u.user_notify_type, u.user_jabber
FROM ' . (($topic_notification) ? TOPICS_WATCH_TABLE : FORUMS_WATCH_TABLE) . ' w, ' . USERS_TABLE . ' u
WHERE w.' . (($topic_notification) ? 'topic_id' : 'forum_id') . ' = ' . (($topic_notification) ? $topic_id : $forum_id) . "
AND w.user_id NOT IN ($sql_ignore_users)
AND w.notify_status = 0
AND u.user_type IN (" . USER_NORMAL . ', ' . USER_FOUNDER . ')
AND u.user_id = w.user_id';
und ersetze sie durch
Code: Alles auswählen
// -- get forum_userids || topic_userids
$sql = 'SELECT user_id, username, user_email, user_lang, user_notify_type, user_jabber
FROM ' . USERS_TABLE . '
WHERE user_id NOT IN ('.$sql_ignore_users.')
AND user_type IN (' . USER_NORMAL . ', ' . USER_FOUNDER . ')';
Das sollte es gewesen sein. Ist aber ungetestet, also keine Garantie.
Viele Grüße,
Tekin