打開\source\class\block\forum\block_thread.php
尋找:
$query = DB::query("SELECT DISTINCT t.*$sqlfield
復(fù)制代碼
在上方加入:
//隨機(jī)調(diào)用
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);
}
//隨機(jī)調(diào)用