我需要随机精华.....
我找看看...
、热门改为精华怎么改?
根据数据库结构调用 digest 规则
如:将
引用:
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 ORDER BY t.views DESC LIMIT 0, 8");
改为:
复制内容到剪贴板代码:
$query = $db->query("SELECT t.*, f.name FROM {$tablepre}threads t, {$tablepre}forums f WHERE t.fid<>'$fid' AND f.fid=t.fid AND digest in(1,2,3) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 ORDER BY t.views DESC LIMIT 0, 8");
其中:digest in(1,2,3)为精华1 2 3
这是改哪个文件..
[ 本帖最后由 疯婆娘 于 2007-9-7 11:04 编辑 ] |