原帖由 youha1314 于 2007-10-9 09:01 发表
把热门话题改为本周热门(大众需求,只好改称本周啦)
把这个热门改成以前的显示形式,不要本周怎么改??
修改
查找index_four.php- //热帖
- $hack_cut_str = 25; //修改标题显示字数
- $hack_cut_strauthor = 12;
- $new_hot_threadlist = array();
- $mthread = array();
- $ctime=$timestamp-3600*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 AND t.dateline>$ctime AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.replies DESC LIMIT 0, 10");
复制代码 替换- //热帖
- $hack_cut_str = 25; //修改标题显示字数
- $hack_cut_strauthor = 12;
- $new_hot_threadlist = array();
- $mthread = array();
- $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");
复制代码 |