打開\source\class\block\forum\block_thread.php
尋找:
$query = DB::query("SELECT DISTINCT t.*$sqlfield
复制代码
在上方加入:
//隨機調用
if($startrow==1000){
$yunhuifus = DB::query("SELECT DISTINCT t.*$sqlfield
FROM `".DB::table('forum_thread')."` t
$sqlfrom WHERE {$maxwhere}t.readperm='0'
$sql
AND t.displayorder>='0'
ORDER BY t.$orderby DESC;"
);
$sqlNum = mysql_num_rows($yunhuifus);
$startrow = mt_rand(0, $sqlNum-$items);
}
//隨機調用