E-mail reminder bij elke post in een forum.
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

E-mail reminder bij elke post in een forum.
Is het mogelijk dat gebruikers een email kunnen ontvangen, niet alleen wanneer er een reply word geplaatst op een topic waar zij op hebben geabonneerd, maar ook wanneer er een nieuw topic geopend word in een forum waarop zij geabonneerd zijn (iets wat nu dus nog niet kan)
hij werkt nietmosymuis schreef:http://www.pda0.net/foro/viewtopic.php?t=406

krijg deze error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/home/magnet/domains/thedutchalliance.nl/public_html/db/mysql4.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /usr/home/magnet/domains/thedutchalliance.nl/public_html/db/mysql4.php:214) in /usr/home/magnet/domains/thedutchalliance.nl/public_html/posting.php on line 719
Warning: Cannot modify header information - headers already sent by (output started at /usr/home/magnet/domains/thedutchalliance.nl/public_html/db/mysql4.php:214) in /usr/home/magnet/domains/thedutchalliance.nl/public_html/includes/page_header.php on line 483
Warning: Cannot modify header information - headers already sent by (output started at /usr/home/magnet/domains/thedutchalliance.nl/public_html/db/mysql4.php:214) in /usr/home/magnet/domains/thedutchalliance.nl/public_html/includes/page_header.php on line 485
Warning: Cannot modify header information - headers already sent by (output started at /usr/home/magnet/domains/thedutchalliance.nl/public_html/db/mysql4.php:214) in /usr/home/magnet/domains/thedutchalliance.nl/public_html/includes/page_header.php on line 486
dit is volgens mij het stukje waar iets niet aan klopt:
// For each of the users watching the forum, set them as watchers on the topics_watch table
if ( $row = $db->sql_fetchrow($result) )
{
do {
$sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : '';
$sql = "INSERT $sql_priority INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id, notify_status)
VALUES (" . $row['user_id'] . ", $topic_id, 0)";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not insert topic watch information", '', __LINE__, __FILE__, $sql);
}
}
while ( $row = $db->sql_fetchrow($result) );
}
// For each of the users watching the forum, set them as watchers on the topics_watch table
if ( $row = $db->sql_fetchrow($result) )
{
do {
$sql_priority = (SQL_LAYER == "mysql") ? "LOW_PRIORITY" : '';
$sql = "INSERT $sql_priority INTO " . TOPICS_WATCH_TABLE . " (user_id, topic_id, notify_status)
VALUES (" . $row['user_id'] . ", $topic_id, 0)";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Could not insert topic watch information", '', __LINE__, __FILE__, $sql);
}
}
while ( $row = $db->sql_fetchrow($result) );
}