原帖由 孤情一刀 于 2006-10-5 18:17 发表
隐藏哪个区的咋搞
index.php 新增加的那部分中
- $query = $db->query("SELECT dateline,tid,subject,author,views,replies FROM {$tablepre}threads ORDER BY dateline DESC LIMIT 0, $hack_subject_num");
复制代码
改为
$query = $db->query("SELECT dateline,tid,subject,author,views,replies FROM {$tablepre}threads where fid!=100 ORDER BY dateline DESC LIMIT 0, $hack_subject_num");
- $query = $db->query("SELECT replies, tid, subject,author,views,lastposter FROM {$tablepre}threads where replies !=0 ORDER BY lastpost DESC LIMIT 0, $hack_subject_num");
复制代码
改为
$query = $db->query("SELECT replies, tid, subject,author,views,lastposter FROM {$tablepre}threads where replies !=0 and fid!=100 ORDER BY lastpost DESC LIMIT 0, $hack_subject_num");
红色部分为添加的,注意将其中等号后面的数字修改为想隐藏版面的FID编号,多版面隐藏在后面再加“and fid!=111”(不含引号)即可。 |