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}-->

 

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

点赞

发表评论

电子邮件地址不会被公开。 必填项已用*标注