原来代码为
CODE: [Copy to clipboard]
--------------------------------------------------------------------------------
$query = $db->query("SELECT dateline,tid,subject,author,views,replies FROM $table_threads ORDER BY dateline DESC LIMIT 0, $hack_subject_num");
while($thread = $db->fetch_array($query)) {
$thread[subject0]=$thread[subject];
$thread['subject'] = wordscut($thread['subject'], $hack_subject_len);
$hack_newthreads_threadlist[] = $thread;
}
修改为如下内容,其中fid<>'2' and fid<>'3' 3和4 为隐藏版面的id
CODE: [Copy to clipboard]
--------------------------------------------------------------------------------
$query = $db->query("SELECT dateline,tid,subject,author,views,replies FROM $table_threads where fid<>'2' and fid <>'3' ORDER BY dateline DESC LIMIT 0, $hack_subject_num");
while($thread = $db->fetch_array($query)) {
$thread[subject0]=$thread[subject];
$thread['subject'] = wordscut($thread['subject'], $hack_subject_len);
$hack_newthreads_threadlist[] = $thread;
} |