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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[发布] 首页四格+社区之星后台控制全Cache版 FOR DZ5.0正式版

[复制链接]
 楼主| PHP论坛 发表于 2006-9-4 00:50:04 | 显示全部楼层
原帖由 sxrm 于 2006-9-3 23:10 发表
Parse error: syntax error, unexpected T_LNUMBER in /home/sxrm/domains/sxrm.cn/public_html/index.php on line 118



[dz使用常见问题收录]
https://discuz.dismall.com/thread-382964-1-2.html

9,出现类似错误提示
Parse error: syntax error, unexpected $end in e:\vhost\dearclass111\web\bbs\admin\misc.inc.php on line 379

将所提及的文件重新二进制上传覆盖下



请参考此帖,将所提及的文件index.php重新用二进制上传覆盖下.
回复

使用道具 举报

拒买日本货 发表于 2006-9-4 01:02:07 | 显示全部楼层
我不要最热门贴子XX名贴。那位高人能否帮我改成“论坛最新图片”?

在线等待了。。

先行谢谢了。

[ 本帖最后由 拒买日本货 于 2006-9-4 01:44 编辑 ]
回复

使用道具 举报

oasisfl 发表于 2006-9-4 01:13:05 | 显示全部楼层
原帖由 PHP论坛 于 2006-9-4 00:42 发表




请详细查看此处。是否按照这个来修改的。如果不是也会造成首页无法显示:

8. 编辑文件index.php

8.1查找
$threads = $posts = $todayposts = $fids = 0;



//首页四格TOPLIST_CACHE版, By oyt ...


检查过了,都是按照你写的代码改的,后台更新完缓存以后首页就打不开了,我是在本地测试的。
回复

使用道具 举报

lwyy 发表于 2006-9-4 01:24:30 | 显示全部楼层
已经安装成功,改了不少代码,LZ发的代码里面好多错误,而且需要添加的代码里多出许多回车和空格符号,下面是INDEX.PHP里的一段代码。修改完后就能正确显示。
大家可以到我的论坛来看演示:www.lwyy.net

//========== 社区明星 开始
$nopoststar ='<td valign=top>姓名: 虚位以待! <br>积分:空<br>精华:空<br>今日发帖:空<br>总发帖量:空<br>在线时间:空<br></td><td width=16% align=center class=altbg1><IMG height=80 src="images/nopic.gif" width=80 align=center></td>';
if($_DCACHE['daystar']) {
        foreach($_DCACHE['daystar'] as $key => $dstar) {
                if ($key<3){
                        $daystars .="<td valign=top>姓名:".$dstar[author]."<br>积分:".$dstar[credits]."<br>精华:".$dstar[digestposts]."<br> 篇今日发帖:".$dstar[num]."篇<br>总发帖量:".$dstar[posts]." 篇<br>在线时间:".$dstar[oltime]." 小时<br></td><td width=16% align=center class=altbg1><IMG src=".$dstar[avatar]." width=".$dstar[avatarwidth]." height=".$dstar[avatarheight]." align=center></td>";
                        $n=$key;
                }
        }
            if($n==0){$daystars .=$nopoststar.$nopoststar;}elseif($n==1){$daystars .=$nopoststar;}
}
if($_DCACHE['weekstar']) {
        foreach($_DCACHE['weekstar'] as $key => $wstar) {
                if ($key<3){
                        $weekstars .="<td valign=top>姓名:".$wstar[author]."<br> 积分:".$wstar[credits]."<br>精华:".$wstar[digestposts]." 篇<br>本周发帖:".$wstar[num]."篇<br>总发帖量:".$wstar[posts]." 篇<br>在线时间:".$wstar[oltime]."小时</td><TD width=16% align=center class=altbg1><IMG src=".$wstar[avatar]." width=".$wstar[avatarwidth]." height=".$wstar[avatarheight]." align=center></td>";
                        $weeknum=$key;
                }
    }
        if($weeknum==0){$weekstars .= $nopoststar.$nopoststar;}elseif($weeknum==1){$weekstars.=$nopoststar;}
}
if($_DCACHE['monthstar']) {
        foreach($_DCACHE['monthstar'] as $key => $mstar) {
                if ($key<3){
                        $monthstars .="<td valign=top>姓名:".$mstar[author]."<br>积分:".$mstar[credits]."<br>精华:".$mstar[digestposts]."篇<br>".$month."月发帖:".$mstar[num]." 篇<br>总发帖量:".$mstar[posts]." 篇<br>在线时间:".$mstar[oltime]." 小时</td><TD width=16% align=center class=altbg1><IMG src=".$mstar[avatar]." width=".$mstar[avatarwidth]." height=".$mstar[avatarheight]." align=center></td>";
                        }
        }
}
if($_DCACHE['yearstar']) {
        foreach($_DCACHE['yearstar'] as $key => $ystar) {
                if ($key<3){
                        $yearstars .="<td valign=top>姓名:".$ystar[author]."<br>积分:".$ystar[credits]."<br>精华:".$ystar[digestposts]." 篇<br>".$year."年发帖:".$ystar[num]."篇<br>总发帖量:".$ystar[posts]." 篇<br>在线时间:".$ystar[oltime]." 小时</td><TD width=16% align=center class=altbg1><IMG src=".$ystar[avatar]." width=".$ystar[avatarwidth]." height=".$ystar[avatarheight]." align=center></td>";
                }
    }
}
//
回复

使用道具 举报

lwyy 发表于 2006-9-4 01:29:12 | 显示全部楼层
另:
后台控制根本就是假的,templates\default\discuz.htm里面的{template toplist}前后根本没有加控制语句,不管后台怎么选都是显示的。
回复

使用道具 举报

拒买日本货 发表于 2006-9-4 01:40:00 | 显示全部楼层
Parse error: parse error, unexpected T_LNUMBER in d:\freehost\lhp138love\web\index.php on line 116

呜呜~~
回复

使用道具 举报

ankty 发表于 2006-9-4 02:16:06 | 显示全部楼层
还是不要了,如果有直接覆盖的和备份文件下载就好了
回复

使用道具 举报

拒买日本货 发表于 2006-9-4 02:29:20 | 显示全部楼层
当贴子的标题过长时,会排列多出一排来,难看!!


如何长能排列整齐???(不要排到第二行的)
回复

使用道具 举报

bored葬月 发表于 2006-9-4 02:36:29 | 显示全部楼层
Warning: main(d:\webhost\qiuqiao\web\vip\05\./forumdata/templates/1_toplist.tpl.php): failed to open stream: No such file or directory in d:\webhost\qiuqiao\web\vip\05\forumdata\templates\1_discuz.tpl.php on line 106

Warning: main(d:\webhost\qiuqiao\web\vip\05\./forumdata/templates/1_toplist.tpl.php): failed to open stream: No such file or directory in d:\webhost\qiuqiao\web\vip\05\forumdata\templates\1_discuz.tpl.php on line 106

Warning: main(): Failed opening 'd:\webhost\qiuqiao\web\vip\05\./forumdata/templates/1_toplist.tpl.php' for inclusion (include_path='.;c:\php4\pear') in d:\webhost\qiuqiao\web\vip\05\forumdata\templates\1_discuz.tpl.php on line 106



草 首页显示这个
回复

使用道具 举报

oasisfl 发表于 2006-9-4 03:00:12 | 显示全部楼层
原帖由 lwyy 于 2006-9-4 01:24 发表
已经安装成功,改了不少代码,LZ发的代码里面好多错误,而且需要添加的代码里多出许多回车和空格符号,下面是INDEX.PHP里的一段代码。修改完后就能正确显示。
大家可以到我的论坛来看演示:www.lwyy.net



谢谢,现在可以了!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-22 23:19 , Processed in 0.568261 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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