首页四格不显示某个指定的版块 
 
AND f.fid NOT IN (XX)好像对CACHE版无效~ 
 
原帖:https://discuz.dismall.com/viewth ... ight=CACHE%2B%B8%F1 
 
源代码: 
 
-   //首页四格TOPLIST_CACHE版, By oytktk 代码首
 
 -                 case 'newthread':
 
 -                         $table = 'threads t';
 
 -                         $cols = 't.tid, t.fid, t.author, t.subject, t.dateline, t.lastpost, t.lastposter, t.views, t.replies, t.highlight, f.name';
 
 -                         $conditions = "LEFT JOIN {$tablepre}forums f ON f.fid=t.fid WHERE t.displayorder!='-1' ORDER BY t.dateline DESC LIMIT 0, 10";
 
 -                         break;
 
  
-                 case 'newreply':
 
 -                         $table = 'threads t';
 
 -                         $cols = 't.tid, t.fid, t.author, t.subject, t.dateline, t.lastpost, t.lastposter, t.views, t.replies, t.highlight, f.name';
 
 -                         $conditions = "LEFT JOIN {$tablepre}forums f ON f.fid=t.fid WHERE t.replies>0 and t.displayorder!='-1'  ORDER BY t.lastpost DESC LIMIT 0, 10";
 
 -                         break;
 
 -                 case 'topdigest':
 
 -                         $table = 'threads t';
 
 -                         $cols = 't.tid, t.fid, t.author, t.subject, t.digest, t.dateline, t.lastpost, t.lastposter, t.views, t.replies, t.highlight, f.name';
 
 -                         $conditions = "LEFT JOIN {$tablepre}forums f ON f.fid=t.fid WHERE digest>0 ORDER BY rand() LIMIT 0, 10";
 
 -                         break;
 
 -                 
 
 -                 case 'topviews':
 
 -                         $table = 'threads t';
 
 -                         $view = rand(1,3)==1 ? 'views' : 'replies';
 
 -                         $cols = 't.tid, t.fid, t.author, t.subject, t.dateline, t.lastpost, t.lastposter, t.views, t.replies, t.highlight, f.name';
 
 -                         $conditions = "LEFT JOIN {$tablepre}forums f ON f.fid=t.fid WHERE t.displayorder!='-1' ORDER BY t.$view DESC LIMIT 0, 10";
 
 -                         break;
 
  
-                 //首页四格TOPLIST_CACHE版, By oytktk 代码尾
 
 
  复制代码 
 
希望高人帮帮~谢谢~  |