柒瑞

找回密码
注册

QQ登录

只需一步,快速开始

发新帖

454

积分

0

好友

0

主题
发表于 2007-10-3 19:08:18 | 查看: 183865| 回复: 2151
版权声明:

首页四格原作者: xuon
微美化作者:红蓝白
缓存版程序作者:PLM
天气预报作者:9944
名人名言随机显示作者:红蓝白
4格折叠美化作者:9944


适用环境: discuz! 6.0.0 GBK
插件特点: 缓存不读取数据库高速、经典版式、精彩flash幻灯、完美的4格宽度自适应
插件下载:
1,经典基础版,不含天气预报及名人名言:见2楼
2,天气预报、名人名言显示、折叠版(071224更新):见7楼 (已更新本地天气详情和海量名人名言条目)
3,柒瑞首页四格2007圣诞纪念版(本地天气详情、海量名人名言条目、无缝滚屏):见674楼


插件截图:

[ 本帖最后由 红蓝白 于 2007-12-24 12:46 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

发表于 2007-10-3 19:08:45

下载地址

本地下载。。。。。

需要的朋友顶下帖就可以下载了,:face18: 不需要的朋友直接路过即可。:face15:
游客,如果您要查看本帖隐藏内容请回复


[ 本帖最后由 红蓝白 于 2007-10-3 19:10 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

发表于 2007-10-3 19:36:30

本插件安装方法

懒人,直接按目录用二进制上传附件内容,覆盖原文件即可  (记得备份先)

高手,可以打开文件看看什么地方修改了,更可以DIY成自己喜欢的哦 (记得备份先)

=======================================================================
另附:精华帖  调用的参考

1/2:  修改index-four.php 增加或者修改如下部分:
//精华帖
$hack_cut_str = 20; //标题字数
$hack_cut_strauthor = 9;
$new_digest_threadlist = array();
$dthread = array();
$dtime=$timestamp-3600*24*30;//最后30是天数为本月  
$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>$dtime AND t.digest in (1,2,3) AND f.fid not in (0) AND t.displayorder not in (-1,-2) ORDER BY t.replies DESC LIMIT 0, 9");
while($dthread = $db->fetch_array($query)) {
        $dthread['forumname'] = ereg_replace('<[^>]*>','',$dthread['name']);
        $dthread['view_subject'] = cutstr($dthread['subject'],$hack_cut_str);
        $dthread['view_lastposter'] = cutstr($dthread['lastposter'],$hack_cut_strauthor);
$dthread['date']= gmdate("$dateformat $timeformat", $dthread['dateline'] + $timeoffset * 3600);
        $dthread['lastreplytime']= gmdate("$dateformat $timeformat", $dthread[lastpost] + ($timeoffset * 3600));
        if($dthread['highlight']) {
                $string = sprintf('%02d', $dthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $dthread['highlight'] = 'style="';
                $dthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $dthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $dthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $dthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $dthread['highlight'] .= '"';
        } else {
                $dthread['highlight'] = '';
        }
        $new_digest_threadlist[] = $dthread;



2/2: 修改templates/default/discuz.htm
把其中的需要替换的部分,比如 『 本周热门 』 修改成『 本月精华 』
然后修改对应的调用代码,比如:
      <!--{loop $new_hot_threadlist $mthread}-->
       <div style="overflow: hidden;height: 20px;width: 100%;"><img src="images/list.gif" border="0" /> <a href="viewthread.php?tid=$mthread[tid]" $mthread['highlight'] title='本周热门 {LF}所在论坛: $mthread[forumname]{LF}主题标题: $mthread[subject]{LF}主题作者: $mthread[author]{LF}发表时间: $mthread[date]{LF}浏览次数: $mthread[views] 次{LF}回复次数: $mthread[replies] 次{LF}最后回复: $mthread[lastreplytime]{LF}{lang lastpost}: $mthread[lastposter]'>$mthread[view_subject]</a></div>
      <!--{/loop}-->

替换成
      <!--{loop $new_digest_threadlist $dthread}-->
       <div style="overflow: hidden;height: 20px;width: 100%;"><img src="images/list.gif" border="0" /> <a href="viewthread.php?tid=$dthread[tid]" $dthread['highlight'] title='本周热门 {LF}所在论坛: $dthread[forumname]{LF}主题标题: $dthread[subject]{LF}主题作者: $dthread[author]{LF}发表时间: $dthread[date]{LF}浏览次数: $dthread[views] 次{LF}回复次数: $dthread[replies] 次{LF}最后回复: $dthread[lastreplytime]{LF}{lang lastpost}: $dthread[lastposter]'>$dthread[view_subject]</a></div>
      <!--{/loop}-->

懒人回复后直接二进制按目录结构上传覆盖即可,回帖后在这里下载修改好的文件:
游客,如果您要查看本帖隐藏内容请回复

-----------------------------------------------------------------------------------------------
如果要在主题列表前面显示所在板块,请针对templates/default/discuz.htm做如下手动修改(请先备份文件)这里以热门为例,新帖、回复、精华的修改方法是一致的:
      <!--{loop $new_hot_threadlist $mthread}-->
       <div style="overflow: hidden;height: 20px;width: 100%;"><img src="images/list.gif" border="0" /> <a href="viewthread.php?tid=$mthread[tid]" $mthread['highlight'] title='本周热门 {LF}所在论坛: $mthread[forumname]{LF}主题标题: $mthread[subject]{LF}主题作者: $mthread[author]{LF}发表时间: $mthread[date]{LF}浏览次数: $mthread[views] 次{LF}回复次数: $mthread[replies] 次{LF}最后回复: $mthread[lastreplytime]{LF}{lang lastpost}: $mthread[lastposter]'>$mthread[view_subject]</a></div>
      <!--{/loop}-->

替换为
      <!--{loop $new_hot_threadlist $mthread}-->
       <div style="overflow: hidden;height: 20px;width: 100%;"><img src="images/list.gif" border="0" /> <a href="viewthread.php?tid=$mthread[tid]" $mthread['highlight'] title='本周热门 {LF}主题标题: $mthread[subject]{LF}主题作者: $mthread[author]{LF}发表时间: $mthread[date]{LF}浏览次数: $mthread[views] 次{LF}回复次数: $mthread[replies] 次{LF}最后回复: $mthread[lastreplytime]{LF}{lang lastpost}: $mthread[lastposter]'>[$mthread[forumname]] $mthread[view_subject]</a></div>
      <!--{/loop}-->


[ 本帖最后由 红蓝白 于 2008-1-3 23:52 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

发表于 2007-10-3 20:27:58
:hou01: :hou01: :hou01:
发表于 2007-10-4 00:19:53
:yang08: :yang13: :yang14:
发表于 2007-10-4 19:15:55
:tianxian011: :tianxian011: 顶啊
发表于 2007-10-4 19:25:48

柒瑞首页4格【天气预报、名人名言显示、折叠版】FOR DZ6.0 GBK 插件

:face23: :face23:

功能再次更新:在原有基础上增加:天气预报(根据IP判断城市)、名人名言显示、折叠版功能
071224更新增加:天气详情本地显示功能,及扩充海量名人名言显示。
升级方法,重新下载附件用二进制上传覆盖即可,请先备份原文件

顶帖后就可下载:
游客,如果您要查看本帖隐藏内容请回复


演示效果见截图:

[ 本帖最后由 红蓝白 于 2007-12-24 09:35 编辑 ]

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

发表于 2007-10-4 20:23:39
好东西,一定要支持,呵呵,顶
发表于 2007-10-4 20:39:16
看看哦,不知道好不好
发表于 2007-10-4 20:40:26
:yang18: :yang18: :yang18:
发表于 2007-10-4 21:10:15
:yang23: :yang23:  顶下。
发表于 2007-10-4 22:23:11
强烈支持。。。。。。。。。。。。。。。。。
发表于 2007-10-4 23:04:00
强烈支持:D
发表于 2007-10-4 23:08:54
:victory:
发表于 2007-10-4 23:18:53
:face18: :face18: :face18: :face18:
您需要登录后才可以回帖 登录 | 注册

手机版|Archiver|西安柒瑞信息科技有限公司 ( 陕ICP备07000656 )   | 用户授权协议 | 法律顾问吴兴亮 | 关于柒瑞 | 安全认证

GMT+8, 2012-5-19 14:40

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部