|
请确定你的调用为帖子模块的高级自定义!
----------------------------------
A文件 source/class/block/forum/block_thread.php
1. 在
'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'";
}
B文件 source/language/block/lang_threadlist.php
4. 在
'threadlist_recommend' => '推荐主题过滤',
之下加
'threadlist_replies' => '未回复主题过滤',
|
|