插件说明:实现论坛对任何发贴或回复进行送花扔鸡蛋功能,相当于“顶/踩”功能,同时可进行论坛积分的消费等
全新手动安装方法:
第一步:
========
先到后台设置扩展积分处,添加两个扩展积分:
例:
extcredits4 鲜花
extcredits5 鸡蛋
并勾选啟用此积分和在帖子中显示
<font color=red>注意:如果不让鲜花鸡蛋的数量影响到总积分的话,这一步不要做。</font>
后台,总积分计算公式, 后面加:
+extcredits4*2-extcredits5*3
PS.+extcredits4*2 // 鲜花所用的extcredits值為4,得一朵鲜花便会增加2个积分;
-extcredits5*3 // 鸡蛋所有的extcredits值為5,得一隻鸡蛋便会减少3个积分;
根据你的设置把extcredits4,extcredits5改為你所用的值。
升级数据库1:
ALTER TABLE `cdb_posts` ADD `flower` INT(10) DEFAULT '0' NOT NULL;
ALTER TABLE `cdb_posts` ADD `egg` INT(10) DEFAULT '0' NOT NULL;
ALTER TABLE `cdb_threads` ADD `flower` INT(10) DEFAULT '0' NOT NULL;
ALTER TABLE `cdb_threads` ADD `egg` INT(10) DEFAULT '0' NOT NULL;
升级数据库2:
CREATE TABLE `cdb_felog` (
`id` mediumint( 20 ) unsigned NOT NULL AUTO_INCREMENT ,
`fromuser` varchar( 15 ) NOT NULL default '',
`touser` varchar( 15 ) NOT NULL default '',
`asfe` varchar( 8 ) NOT NULL default '',
`score` int( 10 ) NOT NULL default '0',
`tid` varchar( 15 ) NOT NULL default '',
`aswhat` varchar( 100 ) NOT NULL default '',
PRIMARY KEY ( `id` )
) ENGINE=MyISAM CHARACTER SET 'gbk';
第二步:
===========
修改文件:(如果你之前没有修改过以下任何文件,请下载附件直接上传 “永诚鲜花鸡蛋V7 覆盖版”覆盖源文件即可。注:如果你之前修改过以下文件,请最好手动修改)
1、templates/default/forumdisplay.htm
查找:
<!--{if $thread[multipage]}-->
<span class="threadpages">$thread[multipage]</span>
<!--{/if}-->
上面加:
<!--永诚鲜花鸡蛋V7-->
<!--{if $thread[flower]}-->
<span style="color:#009900;"><img src=images/common/flower.gif>+$thread[flower] </span>
<!--{/if}-->
<!--{if $thread[egg]}-->
<span style="color:#FF0000;"><img src=images/common/eggs.gif>+$thread[egg]</span>
<!--{/if}-->
<!--永诚鲜花鸡蛋V7-->
2、templates/default/viewthread_node.htm
查找:
</div>
</div>
</div>
<div class="defaultpost">
上面加:
<!--永诚鲜花鸡蛋V7-->
<a {if $discuz_uid}href="plugin.php?identifier=flegg&module=flegg&action=flower&pid={$post[pid]}&page={$page}"{else}href="logging.php?action=login"{/if}><img src=images/default/send_flower.gif border="0" align="absmiddle" send_flowers}"></a>
<a {if $discuz_uid}href="plugin.php?identifier=flegg&module=flegg&action=eggs&pid={$post[pid]}"{else}href="logging.php?action=login"{/if}><img src=images/default/send_egg.gif border="0" align="absmiddle" send_eggs}"></a>
<!--永诚鲜花鸡蛋V7-->
再找:
<a id="ratelink" {if $discuz_uid}href="misc.php?action=rate&tid=$tid&pid=$post[pid]"{else}href="logging.php?action=login"{/if}>{lang rate}</a>
下面加:
<!--永诚鲜花鸡蛋V7-->
<a id="flowers" {if $discuz_uid}href="plugin.php?identifier=flegg&module=flegg&action=flower&pid={$post[pid]}&page={$page}"{else}href="logging.php?action=login"{/if}><font color=red>送花</font></a>
<a id="eggs" {if $discuz_uid}href="plugin.php?identifier=flegg&module=flegg&action=eggs&pid={$post[pid]}"{else}href="logging.php?action=login"{/if}><font color=red>扔蛋</font></a>
<!--永诚鲜花鸡蛋V7-->
查找:
<!--{if $admode && empty($insenz['hardadstatus']) && !empty($advlist['thread1'][$post['count']])}--><div class="ad_textlink1" id="ad_thread1_$post[count]">$advlist[thread1][$post[count]]</div><!--{else}--><div id="ad_thread1_$post[count]"></div><!--{/if}-->
上面加:
<!--永诚鲜花鸡蛋V7-->
<!--{if $post['flower'] || $post['egg']}-->
<fieldset>
<legend><a href="plugin.php?identifier=flegg&module=flegg" title="鲜花鸡蛋赠送记录" target=blank>鲜花鸡蛋赠送记录</a></legend>
<ul>
<li>{$post['flowercou']}{$post['eggcou']}</li>
</ul>
</fieldset><br><!--{/if}-->
<!--永诚鲜花鸡蛋V7-->
3、templates/default/pms.lang.php
查找:
);
?>
上面加:
// 永诚鲜花鸡蛋V7 fucenyuan add
'flowers_pm_subject' => '恭喜, 有人送鲜花给你啦!',
'eggs_pm_subject' => '请注意, 有人向你扔鸡蛋啦!',
'flowers_notice1' => '这是由系统自动发送的通知短消息。
恭喜, {$discuz_user} 送了您 {$flowers} 束鲜花!
并留言: {$aswhat}
帖子地址: [url={$boardurl}viewthread.php?tid=$tid&page=$page#pid{$pid}]点击打开[/url]
由此对您的影响是: {$anys_2}: + {$moneyadd}',
'flowers_notice2' => '这是由系统自动发送的通知短消息。
恭喜, {$discuz_user} 送了您 {$flowers} 束鲜花!
并留言: {$aswhat}
由此对您的影响是: {$anys_2}: + {$moneyadd}',
'eggs_notice1' => '这是由系统自动发送的通知短消息。
请注意, {$discuz_user} 送了您 {$eggs} 个鸡蛋!
并留言: {$aswhat}
帖子地址: [url={$boardurl}viewthread.php?tid=$tid&page=$page#pid{$pid}]点击打开[/url]
由此对您的影响是: {$anys_2}: - {$moneydec}',
'eggs_notice2' => '这是由系统自动发送的通知短消息。
请注意, {$discuz_user} 送了您 {$eggs} 个鸡蛋!
并留言: {$aswhat}
由此对您的影响是: {$anys_2}: - {$moneydec}',
// 永诚鲜花鸡蛋V7 fucenyuan end
4、templates/default/templates.lang.php
查找:
);
?>
上面加:
// 永诚鲜花鸡蛋V7 fucenyuan add
'flowers' => '鲜花',
'eggs' => '鸡蛋',
'send_flowers' => '送鲜花',
'send_eggs' => '扔鸡蛋',
// 永诚鲜花鸡蛋V7 fucenyuan end
5、viewthread.php
查找:
$post['dbdateline'] = $post['dateline'];
$post['dateline'] = dgmdate("$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>";
}
6、templates/default/css_viewthread.htm
查找:
.useraction { height: 50px; width: 165px; clear: both; display: block; margin: 20px auto; }
更改为:
.useraction { height: 50px; width: 500px; clear: both; display: block; margin: 20px auto; }
查找:
#emailfriend { background-position: 0 -50px; }
下面加上
#flowers { background-position: 0 -150px; }
#eggs { background-position: 0 -200px; }
6、 按结构上传文件到论坛目录。
7、 后台导入 永诚鲜花鸡蛋V7 导入码.txt 。
8、 后台设置插件参数。
9、 更新缓存!
全新自动安装方法:
=================
1、按手动安装方法第一步,后台升级数据库
2、解压并上传 “永诚鲜花鸡蛋V7 覆盖版”到论坛
3、后台导入 永诚鲜花鸡蛋V7 导入码.txt,同时后台设置相关插件参数,更新缓存!
DZ6.1_to_DZ7.0用户升级安装方法:
==============================
此方法仅适用于从DZ6.1升级到DZ7.0,同时已经安装过DZ6.1版本的鲜花鸡蛋插件的用户
第一步:(不用升级数据库)
============================
按全新安装方法修改DZ源文件
第二步:
========
按结构上传文件到论坛
第三步:
========
后台导入 永诚鲜花鸡蛋V7 导入码.txt,同时后台设置相关插件参数,更新缓存!

娱乐大富翁 论坛游戏(带股市功能)插件 for Discuz!7.0 繁体UTF8

娱乐大富翁论坛游戏(带股市功能)插件 for Discuz!7.0 BIG5

发帖时默认禁用url识别 for discuz7

首页边栏QQ强行聊天插件 for Discuz!7.0 GBK

天使房产插件 for Discuz!7.0

GBK多功能论坛多媒体插件 for Discuz!7.0

会员N天未登录邮件提示插件 for Discuz! 7.2 GBK UTF8 BIG5

phpdisk网盘 Mini版

组图插件 For Discuz!7.0

社区茶坊 for Discuz

Discuz!亮剑打卡签到系统

Alexa 走势图插件 for discuz 7.0
网友评论