注意:(修改前请备份原文件)
1.修正首页九格最新发的帖子在最新回复栏目出现的解决方法
打开/include/request.func.php文件查找以下代码
- if(in_array($orderby, array('hourviews','todayviews','weekviews','monthviews'))) {
- $historytime = 0;
- switch($orderby) {
- case 'hourviews':
- $historytime = $timestamp - 3600 * $hours;
- break;
- case 'todayviews':
- $historytime = mktime(0, 0, 0, date('m', $timestamp), date('d', $timestamp), date('Y', $timestamp));
- break;
- case 'weekviews':
- $week = gmdate('w', $timestamp) - 1;
- $week = $week != -1 ? $week : 6;
- $historytime = mktime(0, 0, 0, date('m', $timestamp), date('d', $timestamp) - $week, date('Y', $timestamp));
- break;
- case 'monthviews':
- $historytime = mktime(0, 0, 0, date('m', $timestamp), 1, date('Y', $timestamp));
- break;
- }
- $sql .= ' AND t.dateline>='.$historytime;
- $orderby = 'views';
复制代码 替换为
- //sdaupp changed
- //if(in_array($orderby, array('hourviews','todayviews','weekviews','monthviews'))) {
- if(in_array($orderby, array('hourviews','todayviews','weekviews','monthviews','lastpost'))) {
- // end
- $historytime = 0;
- switch($orderby) {
- case 'hourviews':
- $historytime = $timestamp - 3600 * $hours;
- break;
- case 'todayviews':
- $historytime = mktime(0, 0, 0, date('m', $timestamp), date('d', $timestamp), date('Y', $timestamp));
- break;
- case 'weekviews':
- $week = gmdate('w', $timestamp) - 1;
- $week = $week != -1 ? $week : 6;
- $historytime = mktime(0, 0, 0, date('m', $timestamp), date('d', $timestamp) - $week, date('Y', $timestamp));
- break;
- case 'monthviews':
- $historytime = mktime(0, 0, 0, date('m', $timestamp), 1, date('Y', $timestamp));
- break;
- // sdaupp add
- case 'lastpost':
- $noreply = true;
- break;
- // end
- }
- $sql .= ' AND t.dateline>='.$historytime;
- $orderby = 'views';
- // sdaupp add
- if($noreply) {
- $sql .= ' AND t.replies<>0';
- $orderby = 'lastpost';
- }
- //end
复制代码 2.鼠标所指帖子呈现显示详细同步数据信息的解决方法
打开/include/request.func.php文件查找以下代码- $replace['{subject}'] = "<a href='".$boardurl."viewthread.php?tid=$tid' title='$value[subject]'$SubjectStyles$LinkTarget>".$replace['{subject_nolink}']."</a>";
复制代码 替换为- $replace['{subject}'] = "<a href='".$boardurl."viewthread.php?tid=$tid' title="所属版块:$value[fname]\n主题标题:$value[subject]\n主题作者:$value[author]\n发表日期:$value[dateline]\n浏览次数:$value[views]次\n回复次数:$value[replies]次\n最后回复:$value[lastpost]\n最后发表:$value[lastposter]"$SubjectStyles$LinkTarget>".$replace['{subject_nolink}']."</a>";
复制代码 如果这个文件没修改过的,请下载下面附件里的文件直接覆盖即可!
=================================================================================
安装说明:
上传 include 和 images 文件里的全部文件到论坛根目录(放心,完全不会覆盖以前论坛的文件)
然后进入后台步骤如下:
工具 - 数据调用 - 导入
将 discuz_request_20080611.txt
导入
然后修改模版 disucz.htm
查找:
<!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['text'])}--
在上面添加:
{eval request('首页四格');}
然后后台更新缓存 OK
首页九格完美免费版图例
首页九格完美收费版图例
================================================================
20080611更新
1.修正了附件调用图片方框对齐问题
2.修正了会员排行名称对齐问题
3.解决了模板适应的宽窄问题(不会因为个别模板窄造成的字体错位)
4.修正完善了天气预报(增加无数个城市)
5.修正周热心会员显示格式
================================================================
[ 本帖最后由 chcst 于 2008-9-24 19:00 编辑 ] |