Announcements fix #1
This commit is contained in:
@@ -56,7 +56,6 @@ function phpbb_fetch_posts($forum_sql, $number_of_posts, $text_length, $time, $t
|
|||||||
t.topic_views,
|
t.topic_views,
|
||||||
t.poll_title,
|
t.poll_title,
|
||||||
t.topic_replies,
|
t.topic_replies,
|
||||||
t.forum_id,
|
|
||||||
t.topic_poster,
|
t.topic_poster,
|
||||||
u.username,
|
u.username,
|
||||||
u.user_id,
|
u.user_id,
|
||||||
@@ -73,20 +72,25 @@ function phpbb_fetch_posts($forum_sql, $number_of_posts, $text_length, $time, $t
|
|||||||
p.bbcode_uid,
|
p.bbcode_uid,
|
||||||
f.forum_name
|
f.forum_name
|
||||||
FROM
|
FROM
|
||||||
' . TOPICS_TABLE . ' AS t,
|
' . TOPICS_TABLE . ' AS t
|
||||||
' . USERS_TABLE . ' AS u,
|
LEFT JOIN
|
||||||
' . POSTS_TABLE . ' AS p,
|
' . USERS_TABLE . ' as u
|
||||||
' . FORUMS_TABLE . ' AS f
|
ON
|
||||||
|
t.topic_poster = u.user_id
|
||||||
|
LEFT JOIN
|
||||||
|
' . FORUMS_TABLE . ' as f
|
||||||
|
ON
|
||||||
|
t.forum_id=f.forum_id
|
||||||
|
LEFT JOIN
|
||||||
|
' . POSTS_TABLE . ' as p
|
||||||
|
ON
|
||||||
|
t.topic_first_post_id = p.post_id
|
||||||
WHERE
|
WHERE
|
||||||
' . $topic_type . '
|
' . $topic_type . '
|
||||||
' . $from_forum . '
|
' . $from_forum . '
|
||||||
' . $post_time . '
|
' . $post_time . '
|
||||||
t.topic_poster = u.user_id AND
|
|
||||||
t.topic_first_post_id = p.post_id AND
|
|
||||||
t.topic_status <> 2 AND
|
t.topic_status <> 2 AND
|
||||||
t.topic_approved = 1 AND
|
t.topic_approved = 1
|
||||||
t.forum_id = f.forum_id
|
|
||||||
|
|
||||||
ORDER BY
|
ORDER BY
|
||||||
t.topic_time DESC';
|
t.topic_time DESC';
|
||||||
|
|
||||||
@@ -219,7 +223,7 @@ function phpbb_fetch_posts($forum_sql, $number_of_posts, $text_length, $time, $t
|
|||||||
t.topic_last_post_id = p.post_id AND
|
t.topic_last_post_id = p.post_id AND
|
||||||
t.topic_status <> 2 AND
|
t.topic_status <> 2 AND
|
||||||
t.topic_approved = 1 AND
|
t.topic_approved = 1 AND
|
||||||
t.forum_id = f.forum_id
|
f.forum_id = t.forum_id
|
||||||
|
|
||||||
ORDER BY
|
ORDER BY
|
||||||
t.topic_last_post_time DESC';
|
t.topic_last_post_time DESC';
|
||||||
|
|||||||
Reference in New Issue
Block a user