Report #44: Forum name in news/announcements title

This commit is contained in:
Ice
2008-01-27 23:10:51 +00:00
parent 20535ecc3c
commit 121bafb630
11 changed files with 34 additions and 23 deletions

View File

@@ -70,11 +70,13 @@ function phpbb_fetch_posts($forum_sql, $number_of_posts, $text_length, $time, $t
p.enable_bbcode,
p.enable_magic_url,
p.bbcode_bitfield,
p.bbcode_uid
p.bbcode_uid,
f.forum_name
FROM
' . TOPICS_TABLE . ' AS t,
' . USERS_TABLE . ' AS u,
' . POSTS_TABLE . ' AS p
' . POSTS_TABLE . ' AS p,
' . FORUMS_TABLE . ' AS f
WHERE
' . $topic_type . '
' . $from_forum . '
@@ -82,7 +84,8 @@ function phpbb_fetch_posts($forum_sql, $number_of_posts, $text_length, $time, $t
t.topic_poster = u.user_id AND
t.topic_first_post_id = p.post_id AND
t.topic_status <> 2 AND
t.topic_approved = 1
t.topic_approved = 1 AND
t.forum_id = f.forum_id
ORDER BY
t.topic_time DESC';
@@ -138,6 +141,7 @@ function phpbb_fetch_posts($forum_sql, $number_of_posts, $text_length, $time, $t
$posts[$i]['poll'] = ($row['poll_title']) ? true : false;
$posts[$i]['attachment'] = ($row['topic_attachment']) ? true : false;
$posts[$i]['topic_views'] = ($row['topic_views']);
$posts[$i]['forum_name'] = ($row['forum_name']);
$message = $posts[$i]['post_text'];
$message = str_replace("\n", '<br />', $message);
@@ -200,11 +204,13 @@ function phpbb_fetch_posts($forum_sql, $number_of_posts, $text_length, $time, $t
p.enable_bbcode,
p.enable_magic_url,
p.bbcode_bitfield,
p.bbcode_uid
p.bbcode_uid,
f.forum_name
FROM
' . TOPICS_TABLE . ' AS t,
' . USERS_TABLE . ' AS u,
' . POSTS_TABLE . ' AS p
' . POSTS_TABLE . ' AS p,
' . FORUMS_TABLE . ' AS f
WHERE
' . $topic_type . '
' . $from_forum . '
@@ -212,7 +218,8 @@ function phpbb_fetch_posts($forum_sql, $number_of_posts, $text_length, $time, $t
t.topic_last_poster_id = u.user_id AND
t.topic_last_post_id = p.post_id AND
t.topic_status <> 2 AND
t.topic_approved = 1
t.topic_approved = 1 AND
t.forum_id = f.forum_id
ORDER BY
t.topic_last_post_time DESC';
@@ -269,6 +276,7 @@ function phpbb_fetch_posts($forum_sql, $number_of_posts, $text_length, $time, $t
$posts[$i]['poll'] = ($row['poll_title']) ? true : false;
$posts[$i]['attachment'] = ($row['topic_attachment']) ? true : false;
$posts[$i]['topic_views'] = ($row['topic_views']);
$posts[$i]['forum_name'] = ($row['forum_name']);
$message = $posts[$i]['post_text'];
$message = str_replace("\n", '<br/> ', $message);