找到楼主的
//回覆//
//热帖
$hack_cut_str = 32; //修改标题显示字数
$hack_cut_strauthor = 9;
在后面加上:
$this_time= time();
$sort_time = $this_time - ( 60*60*24*7); //7天内
找到:
$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, 10");
替换成:
$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 and t.dateline > $sort_time ORDER BY t.views DESC LIMIT 0, 10");
再看.你的就可以了.
查看效果,可以到:http://bbs.dd16.com/
[ 本帖最后由 efrog 于 2006-9-12 15:43 编辑 ] |