修改 include/arc.searchview.class.php 文件
//统计列表里的记录
$cquery = "Select * From `dsfw_archives` arc where arc.typeid not in (1,2,3...) and {$this->AddSql}";
//搜索
$query = "Select arc.*,act.typedir,act.typename,act.isdefault,act.defaultname,act.namerule,
act.namerule2,act.ispart,act.moresite,act.siteurl,act.sitepath
from `dsfw_archives` arc left join `dsfw_arctype` act on arc.typeid=act.id
where act.id not in (4,5,,6....) and {$this->AddSql} $ordersql limit $limitstart,$row";
把sql语句换成我这两句,括号里面的是你不搜索栏目的id
如果本文对你有帮助,欢迎打赏本站