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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

鲜花鸡蛋 For DZ6.1 优化美化 GBK 080606 版

[复制链接]
 楼主| silverd 发表于 2008-6-21 22:42:53 | 显示全部楼层
原帖由 眉来眼去 于 2008-6-21 22:25 发表
根据里面说明文本的第一步操作出现
升级错误,MySQL 提示: Duplicate column name 'flower' ,请返回。

第一步是这个:
ALTER TABLE `cdb_posts` ADD `flower` INT(10) DEFAULT '0' NOT NULL;
ALTER TABLE `cd ...

表里已有这个字段,你安装过 6.0版鲜花鸡蛋? 安装过的话就跳过上面说的数据库升级,直接修改文件即可
回复

使用道具 举报

okooo 发表于 2008-6-21 22:48:05 | 显示全部楼层
........................................
回复

使用道具 举报

ndren 发表于 2008-6-21 22:54:09 | 显示全部楼层
太帅了,哈,一直在等这个呢。
回复

使用道具 举报

67ke 发表于 2008-6-21 23:59:45 | 显示全部楼层
你太伟大了
回复

使用道具 举报

516 发表于 2008-6-22 00:01:27 | 显示全部楼层
接到鲜花者得到extcre ...
你设置了哪个extcredits买,就增加哪个extcredits的值.
接到鸡蛋失去的extcre ...
你设置了哪个extcredits买,就减少哪个extcredits的值


要是能把这也改成随便我们怎么设置的话``那就好多了。!!!

能让我们自己设置增加extcredits减少哪个extcredits值~!
回复

使用道具 举报

眉来眼去 发表于 2008-6-22 00:14:28 | 显示全部楼层
感谢楼主,真的好伟大!具有分享精神!不知道该说什么谢谢你!太需要了,安装成功了!
回复

使用道具 举报

stephenchan 发表于 2008-6-22 00:19:03 | 显示全部楼层
如果想在帖子显示鲜花或鸡蛋, 请加回以下原码:


1. viewthread.php

查找:

$post['dateline'] = gmdate("$dateformat $timeformat", $post['dateline'] + $timeoffset * 3600);
下面加:


                for($i=0;$i<$post['flower'];$i++){
                $post['flowercou'].="<img border=0 src='images/common/flower.gif' align=absmiddle>";
                }

                for($i=0;$i<$post['egg'];$i++){
                $post['eggcou'].="<img border=0 src='images/common/eggs.gif' align=absmiddle>";
                }


2. viewthread.htm

查找:


<!--{if $post['subject']}-->
<h2>$post[subject]</h2>

替换为:


<!--{if $post['subject']}--><span class="smalltxt"><span class="bold">$post[subject]</span></span><br><!--{/if}--><!--{if $post['flower'] || $post['egg']}-->
        <br><hr color="{BORDERCOLOR}" width="95%" size="1"><center>{$post['flowercou']}{$post['eggcou']}</center><hr color="{BORDERCOLOR}" width="95%" size="1"><br>

[ 本帖最后由 stephenchan 于 2008-6-22 00:42 编辑 ]
回复

使用道具 举报

67ke 发表于 2008-6-22 00:34:09 | 显示全部楼层
升级错误,MySQL 提示: Table 'cdb_felog' already exists ,请返回。
点击这里返回上一页
回复

使用道具 举报

情迷戈壁滩 发表于 2008-6-22 00:36:53 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

眉来眼去 发表于 2008-6-22 00:36:56 | 显示全部楼层
30楼的朋友附带的代码是不是有问题啊?
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-26 18:02 , Processed in 0.210235 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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