首页 > 学习笔记 > Discuz 悬赏主题帖刷金币解决办法
2012
01-06

Discuz 悬赏主题帖刷金币解决办法

打开 templates/default/post_reward.htm 文件,找到下面一段:
<!--{if $thread['price'] > 0}-->

<dd><input onkeyup="getrealprice(this.value)" type="text" name="rewardprice" id="rewardprice" class="txt" size="6" value="$rewardprice" tabindex="1" /></dd>

<dd>{lang reward_tax_add} <span id="realprice">0</span> {$extcredits[$creditstransextra[2]][unit]} ({lang reward_low} $minrewardprice {$extcredits[$creditstransextra[2]][unit]}<!--{if $maxrewardprice > 0}--> - $maxrewardprice {$extcredits[$creditstransextra[2]][unit]}<!--{/if}-->)</dd>

<!--{elseif $thread['price'] < 0 && $forum['ismoderator']}-->

<dd><input type="text" name="rewardprice" size="6" value="$rewardprice" id="rewardprice" class="txt" tabindex="1" /></dd>

<!--{else}-->

<dd><input onkeyup="getrealprice(this.value)" type="hidden" name="rewardprice" size="6" value="$rewardprice" tabindex="1" />$rewardprice {$extcredits[$creditstransextra[2]][unit]}</dd>

<!--{/if}-->

 

将其修改为:

<!--{if $thread['price'] > 0}-->

<dd><input onkeyup="getrealprice(this.value)" type="text" name="rewardprice" id="rewardprice" class="txt" size="6" value="$rewardprice" tabindex="1" /></dd>

<dd>{lang reward_tax_add} <span id="realprice">0</span> {$extcredits[$creditstransextra[2]][unit]} ({lang reward_low} $minrewardprice {$extcredits[$creditstransextra[2]][unit]}<!--{if $maxrewardprice > 0}--> - $maxrewardprice {$extcredits[$creditstransextra[2]][unit]}<!--{/if}-->)</dd>

<!--{else}-->

<dd><input onkeyup="getrealprice(this.value)" type="hidden" name="rewardprice" size="6" value="$rewardprice" tabindex="1" />$rewardprice {$extcredits[$creditstransextra[2]][unit]}</dd>

<!--{/if}-->

 

修改后,若悬赏主题有最佳答案,任何人都不得编辑悬赏金额


最后编辑:
作者:六度
这个人很懒什么也没留!~

发布评论

表情
需要勾选我,才能再发表评论