Fixed some layout issues

git-svn-id: file:///svn/phpbb/trunk@44 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Paul S. Owen 2001-02-24 14:05:52 +00:00
parent 9f5ffef337
commit 7ee5829185

View file

@ -6,8 +6,7 @@
* copyright : (C) 2001 The phpBB Group * copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com * email : support@phpbb.com
* *
* $Id$ * $Id$ *
*
* *
***************************************************************************/ ***************************************************************************/
@ -56,6 +55,7 @@ if(!$forum_row)
$forum_name = stripslashes($forum_row[0]["forum_name"]); $forum_name = stripslashes($forum_row[0]["forum_name"]);
$forum_moderators = "<a href=\"profile.$phpEx?mode=viewprofile&user_id=1\">james</a>"; $forum_moderators = "<a href=\"profile.$phpEx?mode=viewprofile&user_id=1\">james</a>";
$pagetype = "viewforum"; $pagetype = "viewforum";
$page_title = "View Forum - $forum_name"; $page_title = "View Forum - $forum_name";
include('page_header.'.$phpEx); include('page_header.'.$phpEx);
@ -70,10 +70,13 @@ if(!isset($start))
$start = 0; $start = 0;
} }
$sql = "SELECT t.*, u.username, p.post_time FROM " . TOPICS_TABLE ." t, ". USERS_TABLE. " u $sql = "SELECT t.*, u.username, p.post_time
FROM " . TOPICS_TABLE ." t, ". USERS_TABLE. " u
LEFT JOIN ".POSTS_TABLE." p ON p.post_id = t.topic_last_post_id LEFT JOIN ".POSTS_TABLE." p ON p.post_id = t.topic_last_post_id
WHERE t.forum_id = '$forum_id' AND t.topic_poster = u.user_id WHERE t.forum_id = '$forum_id'
ORDER BY topic_time DESC LIMIT $start, $topics_per_page"; AND t.topic_poster = u.user_id
ORDER BY topic_time DESC
LIMIT $start, $topics_per_page";
if(!$t_result = $db->sql_query($sql)) if(!$t_result = $db->sql_query($sql))
{ {
error_die($db, QUERY_ERROR); error_die($db, QUERY_ERROR);
@ -108,8 +111,6 @@ else
error_die($db, NO_POSTS); error_die($db, NO_POSTS);
} }
include('page_tail.'.$phpEx); include('page_tail.'.$phpEx);
?> ?>