Jason 18:46:36
thread_list.inc.htm文件 修改 这里<?php if($threadlist) { foreach($threadlist as &$_thread) { if($_thread[‘closed’] == 0) {?>
Jason 18:46:41
加一个判断语句
Jason 18:46:55
if($_thread[‘closed’] == 0) { 加一条这个
具体为在对应模板htm文件夹下的thread_list.inc.htm文件:
将 <?php if($threadlist) { foreach($threadlist as &$_thread) {?>
改为: <?php if($threadlist) { foreach($threadlist as &$_thread) { if($_thread[‘closed’] == 0) {?>
然后:将closed设为2 status设置大于0(1)就可以列表不显示。点击文章ID也不访问内容页
注意后面加},让大括号成双。
共有 0 条评论