Hallo Ramona,
bei mir sieht der Code an der entsprechenden Stelle so aus:
Code: Alles auswählen
[...]
$where_forums = ( $special_forums == '0' ) ? 't.forum_id NOT IN ('. $except_forums .')' : 't.forum_id NOT IN ('. $except_forums .') AND t.forum_id IN ('. $forum_ids .')';
$sql = "SELECT t.*, f.forum_id, f.forum_name, u.username AS first_poster, u.user_id AS first_poster_id, u2.username AS last_poster, u2.user_id AS last_poster_id, p.post_username AS first_poster_name, p2.post_username AS last_poster_name, p2.post_time, pt.*
FROM ". TOPICS_TABLE ." t, ". FORUMS_TABLE ." f, ". USERS_TABLE ." u, ". POSTS_TABLE ." p, ". POSTS_TABLE ." p2, ". USERS_TABLE ." u2, ". POSTS_TEXT_TABLE ." pt
WHERE $where_forums AND t.topic_poster = u.user_id AND f.forum_id = t.forum_id AND p.post_id = t.topic_first_post_id AND p2.post_id = t.topic_last_post_id AND u2.user_id = p2.poster_id AND t.topic_last_post_id = pt.post_id AND topic_status != '2'
ORDER BY t.topic_last_post_id DESC LIMIT $topic_limit";
}
else
{
$sql = "SELECT p.post_id, pt.post_subject FROM ". POSTS_TABLE ." p, ". POSTS_TEXT_TABLE ." pt
WHERE p.topic_id IN ($topic_id) AND p.post_id = pt.post_id ORDER BY p.post_id DESC LIMIT $topic_limit";
}
[...]
Es ist der Code von recent.php, aber ich habe diesen Code direkt in die index.php eingebaut. Du fügst den Befehl
AND topic_status != '2' einfach am Ende der ersten
WHERE Anweisung an, dann sollte es klappen.
Gruß Helmut
Ich bin nicht ganz dicht.... na und.