[問題]請問有沒有辦法回覆後不改變位置?
發表於 : 2004-04-08 14:22
請問有沒有辦法回覆後不改變位置?
就是回覆文章之後不會推到第一個
而保持原本的文章順序這樣\r
還有要怎麼做全體公告呢?
因為實在不曉得要用什麼關鍵字搜尋(試了好幾個都沒有)
所以只好直接用問的-O-
就是回覆文章之後不會推到第一個
而保持原本的文章順序這樣\r
還有要怎麼做全體公告呢?
因為實在不曉得要用什麼關鍵字搜尋(試了好幾個都沒有)
所以只好直接用問的-O-
他的意思是,回覆文章後,主題 ( Topic ) 在版面上 ( viewforum.php ) 不會被推到最前面,而是在原來的位置。webspirit 寫:1)看不懂
代碼: 選擇全部
//
// All announcement data, this keeps announcements
// on each viewforum page ...
//
$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_time, p.post_username
FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . USERS_TABLE . " u2
WHERE t.forum_id = $forum_id
AND t.topic_poster = u.user_id
AND p.post_id = t.topic_last_post_id
AND p.poster_id = u2.user_id
AND t.topic_type = " . POST_ANNOUNCE . "
[color=red]ORDER BY t.topic_last_post_id DESC ";[/color]代碼: 選擇全部
ORDER BY t.topic_id DESC ";代碼: 選擇全部
//
// Grab all the basic data (all topics except announcements)
// for this forum
//
$sql = "SELECT t.*, u.username, u.user_id, u2.username as user2, u2.user_id as id2, p.post_username, p2.post_username AS post_username2, p2.post_time
FROM " . TOPICS_TABLE . " t, " . USERS_TABLE . " u, " . POSTS_TABLE . " p, " . POSTS_TABLE . " p2, " . USERS_TABLE . " u2
WHERE t.forum_id = $forum_id
AND t.topic_poster = u.user_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_type <> " . POST_ANNOUNCE . "
$limit_topics_time
[color=red]ORDER BY t.topic_type DESC, t.topic_last_post_id DESC [/color]代碼: 選擇全部
ORDER BY t.topic_type DESC, t.topic_id DESC