Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[DST] 柒瑞首页4格【圣诞版】(天气、名人名言、折叠、滚动)FOR DZ6.0 GBK 插件

[复制链接]
szbamboo 发表于 2007-12-17 16:49:16 | 显示全部楼层
非常感谢了。

但是我在本机上能运行,一上传到SERVER就不行啦。 说pic.php OUT OF MEMORY.  就是那个GROUP BY的语句惹的祸。
回复

使用道具 举报

小宝子 发表于 2007-12-19 00:27:19 | 显示全部楼层
恩  看来很不错。。。。。:)
回复

使用道具 举报

qzcmj 发表于 2007-12-19 08:16:27 | 显示全部楼层

FOR DZ6.0 GBK 插件首页4格修改屏蔽的板块ID文件

柒瑞 [DST]【创意首页4格:名人名言显示、天气预报、折叠、缓存版】FOR DZ6.0 GBK 插件

在 index-four.php 这个文件中

/---设置---start
require_once('./include/geyan-7ree.php');

$cachelife        = 1800;//缓存时间.
$cachename        = DISCUZ_ROOT.'./forumdata/cache/cache_showother.php';//缓存名.若与何插件冲突请修改,只要不冲突不会影响使用.

if(@!include($cachename) || @filemtime($cachename) + $cachelife > $timestamp) {
        require_once './include/common.inc.php';
require_once DISCUZ_ROOT.'./include/cache.func.php';
$colorarray = array('', 'red', 'orange', 'yellow', 'green', 'cyan', 'blue', 'purple', 'gray');
//新贴
$hack_cut_str = 26; //标题字数
$hack_cut_strauthor = 9;
$new_post_threadlist = array();
$nthread = 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.displayorder not in (-1,-2) ORDER BY t.dateline DESC LIMIT 0, 9");
while($nthread = $db->fetch_array($query)) {
        $nthread['forumname'] = ereg_replace('<[^>]*>','',$nthread['name']);
        $nthread['view_subject'] = cutstr($nthread['subject'],$hack_cut_str);
        $nthread['view_author'] = cutstr($nthread['author'],$hack_cut_strauthor);
        $nthread['date']= gmdate("$dateformat $timeformat", $nthread['dateline'] + $timeoffset * 3600);
        $nthread['lastreplytime']= gmdate("$dateformat $timeformat", $nthread[lastpost] + ($timeoffset * 3600));
        if($nthread['highlight']) {
                $string = sprintf('%02d', $nthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $nthread['highlight'] = 'style="';
                $nthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $nthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $nthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $nthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $nthread['highlight'] .= '"';
        } else {
                $nthread['highlight'] = '';
        }
        $new_post_threadlist[] = $nthread;
}
$curdata = "\$new_post_threadlist = ".arrayeval($new_post_threadlist).";\n\n";
//新回复
$hack_cut_str = 26; //标题字数
$hack_cut_strauthor = 9;
$new_reply_threadlist = array();
$rthread = 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.displayorder not in (-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 9");
while($rthread = $db->fetch_array($query)) {
        $rthread['forumname'] = ereg_replace('<[^>]*>','',$rthread['name']);
        $rthread['view_subject'] = cutstr($rthread['subject'],$hack_cut_str);
        $rthread['view_lastposter'] = cutstr($rthread['lastposter'],$hack_cut_strauthor);
        $rthread['date']= gmdate("$dateformat $timeformat", $rthread['dateline'] + $timeoffset * 3600);
        $rthread['lastreplytime']= gmdate("$dateformat $timeformat", $rthread[lastpost] + ($timeoffset * 3600));
        if($rthread['highlight']) {
                $string = sprintf('%02d', $rthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $rthread['highlight'] = 'style="';
                $rthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $rthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $rthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $rthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $rthread['highlight'] .= '"';
        } else {
                $rthread['highlight'] = '';
        }
        $new_reply_threadlist[] = $rthread;
}
$curdata .= "\$new_reply_threadlist = ".arrayeval($new_reply_threadlist).";\n\n";
//热帖
$hack_cut_str = 26; //标题字数
$hack_cut_strauthor = 9;
$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.displayorder not in (-1,-2) AND t.closed NOT LIKE 'moved|%' AND t.replies !=0 ORDER BY t.views DESC LIMIT 0, 9");
while($mthread = $db->fetch_array($query)) {
        $mthread['forumname'] = ereg_replace('<[^>]*>','',$mthread['name']);
        $mthread['view_subject'] = cutstr($mthread['subject'],$hack_cut_str);
        $mthread['view_lastposter'] = cutstr($mthread['lastposter'],$hack_cut_strauthor);
        $mthread['date']= gmdate("$dateformat $timeformat", $mthread['dateline'] + $timeoffset * 3600);
        $mthread['lastreplytime']= gmdate("$dateformat $timeformat", $mthread[lastpost] + ($timeoffset * 3600));
        if($mthread['highlight']) {
                $string = sprintf('%02d', $mthread['highlight']);
                $stylestr = sprintf('%03b', $string[0]);
                $mthread['highlight'] = 'style="';
                $mthread['highlight'] .= $stylestr[0] ? 'font-weight: bold;' : '';
                $mthread['highlight'] .= $stylestr[1] ? 'font-style: italic;' : '';
                $mthread['highlight'] .= $stylestr[2] ? 'text-decoration: underline;' : '';
                $mthread['highlight'] .= $string[1] ? 'color: '.$colorarray[$string[1]] : '';
                $mthread['highlight'] .= '"';
        } else {
                $mthread['highlight'] = '';
        }
        $new_hot_threadlist[] = $mthread;
}
$curdata .= "\$new_hot_threadlist = ".arrayeval($new_hot_threadlist).";\n\n";

        writetocache("showother", '', $curdata);
        include $cachename;
}
?>




再上面文件中的:
require_once('./include/geyan-7ree.php');
下面添加:

$fid=需要屏蔽的板块ID;

这样就可以屏蔽的板块需要的板块了

详情可以见:https://discuz.dismall.com/thread-812622-1-1.html
回复

使用道具 举报

yueyehan 发表于 2007-12-19 11:13:44 | 显示全部楼层
很不错
先收着了
回复

使用道具 举报

wwwwere 发表于 2007-12-20 12:45:40 | 显示全部楼层
文字大小为 3
回复

使用道具 举报

nagekyo 发表于 2007-12-25 05:22:54 | 显示全部楼层
haishi 首页,占位支持
回复

使用道具 举报

UranusDU 发表于 2007-12-25 10:12:13 | 显示全部楼层
图片一直不显示,不知为什么?
回复

使用道具 举报

diannao521 发表于 2007-12-25 17:08:33 | 显示全部楼层
;P ;P ;P
回复

使用道具 举报

szbamboo 发表于 2007-12-25 17:32:54 | 显示全部楼层
非常感谢楼主的分享。
我在我网站上已经成功的用上了该系统。 bbs.rcfans.com
我作了如下修改:
1 滚动图片去调用java实无必要,改动 index.php就可以很好的完成此工作,效率会高很多。
2 更新数据做成一个计划任务文件。
3 多写了个从SUPESITE调用新闻图片的功能
回复

使用道具 举报

cxd44 发表于 2007-12-26 10:21:34 | 显示全部楼层
我也出现这个问题,,就是安装了,图片是空白的,没有显示,不知道是不是程序问题,还是我的空间组件的问题,但是看了人的回复,也反映了这个问题,应该有人出来分析下,帮我下们吧。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-22 02:46 , Processed in 0.109725 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表