Discuz DIY 最新回覆數據調用 BUGFIX
1. source/class/block/forum/block_thread.php 找 'recommend' => array('title' => 'threadlist_recommend',
'type' => 'radio'
),
之下加'replies' => array(
'title' => 'threadlist_replies',
'type' => 'radio'
),2.$recommend = !empty($parameter['recommend']) ? 1 : 0;之下加$replies = !empty($parameter['replies']) ? 1 : 0;3. if($recommend) {
$sqlfrom .= " $joinmethod JOIN `".DB::table('forum_forumrecommend')."` fc ON fc.tid=t.tid";
}之下加if($replies) {
$sql .= " AND t.replies > '0'";
}4. source/language/block/lang_threadlist.php 找 'threadlist_recommend' => '推薦主題過濾',之下加 'threadlist_replies' => '未回覆主題過濾',轉自 http://www.alan888.com/Discuz/viewthread.php?tid=197381 (samhouse)
頁:
[1]