|
thread.php
$R=0;
if($db_topped){
上面加入
if($fid==5 || $fid==6){
$toppedsql = "AND topped!='3'";
}
if($fid==5 || $fid==6){ 自己決定不顯示版塊 ID 舉列 $fid == 3 || $fid == 6
往下一點找這一段
$query=$db->query("SELECT * FROM pw_threads WHERE tid IN($toptids) AND topped>0 ORDER BY topped DESC,lastpost DESC $limit");
換掉
$query=$db->query("SELECT * FROM pw_threads WHERE tid IN($toptids) AND topped>0 $toppedsql ORDER BY topped DESC,lastpost DESC $limit"); |
|