// 首页热门帖 CACHE 版 For D4 //
case 'topview':
$table = 'threads';
$cols='dateline,tid,subject,author,views,replies';
$conditions = "ORDER BY views DESC LIMIT 0,10";
break;
case 'topreply':
$table = 'threads';
$cols='dateline,tid,subject,author,views,replies';
$conditions = "ORDER BY replies DESC LIMIT 0,10";
break;
case 'toppostnum':
$table = 'members';
$cols='username, uid, posts';
$conditions = "ORDER BY posts DESC LIMIT 0, 10";
break;
// 首页热门帖 CACHE 版 For D4 //
回楼上几位,只需要修改这些参数就可以了 |