Discuz教程网

[代码修改] Discuz X2.5发帖按钮处显示提示代码的修改方法(作者:sun21)

[复制链接]
authicon dly 发表于 2012-12-1 11:12:23 | 显示全部楼层 |阅读模式
效果示范:
发帖框效果:
163433i08bwgiu8bm598gm.png.thumb.jpg

快速回复效果:

163432un1tytc0z7qcfia8.png.thumb.jpg


1.在发帖框的的效果美化代码
打开:/template/风格模板/forum/post
查找
  1. <button type="submit" id="postsubmit" class="pn pnc" value="true" name="{if $_GET[action] == 'newthread'}topicsubmit{elseif $_GET[action] == 'reply'}replysubmit{elseif $_GET[action] == 'edit'}editsubmit{/if}">
  2. <!--{if $_GET[action] == 'newthread'}-->
  3. <!--{if $special == 0}--><span>{lang post_newthread}</span>
  4. <!--{elseif $special == 1}--><span>{lang post_newthreadpoll}</span>
  5. <!--{elseif $special == 2}--><span>{lang post_newthreadtrade}</span>
  6. <!--{elseif $special == 3}--><span>{lang post_newthreadreward}</span>
  7. <!--{elseif $special == 4}--><span>{lang post_newthreadactivity}</span>
  8. <!--{elseif $special == 5}--><span>{lang post_newthreaddebate}</span>
  9. <!--{elseif $special == 127}-->
  10. <span><!--{if $buttontext}-->$buttontext<!--{else}-->{lang post_newthread}<!--{/if}--></span>
  11. <!--{/if}-->
  12. <!--{elseif $_GET[action] == 'reply' && !empty($_GET['addtrade'])}--><span>{lang trade_add_post}</span>
  13. <!--{elseif $_GET[action] == 'reply'}--><span>{lang join_thread}</span>
  14. <!--{elseif $_GET[action] == 'edit' && $isfirstpost && $thread['displayorder'] == -4}-->
  15. <span>{lang post_newthread}</span>
  16. <!--{elseif $_GET[action] == 'edit'}--><span>{lang edit_save}</span>
  17. <!--{/if}-->
  18. </button>
复制代码

在下面添加
  1. <div style="width:590px; height:40px; line-height:15px; background:#fff7a0; border:#aa9c03 1px dotted; font-size:12px;padding:5px; clear:both; margin-top:5px"><FONT color=#5087DA>■</FONT> 当前IP:<FONT color=red>$_SERVER[REMOTE_ADDR]</FONT> <FONT color=#5087DA>■</FONT> 发帖时请遵守本站版规,尊重主帖作者的辛劳,请勿恶意灌水,勿使用纯英文字母、纯表情或毫无意义的词语。如果你对主帖作者的帖子不屑一顾的话,请勿回帖。谢谢合作!
  2. </div>
复制代码

2.在快速回复框的效果代码。
打开:template/风格模板/viewthread_fastpost

查找
  1. <button {if $allowpostreply}type="submit" {elseif !$_G['uid']}type="button" onclick="showWindow('login', 'member.php?mod=logging&action=login&guestmessage=yes')" {/if}name="replysubmit" id="fastpostsubmit" class="pn pnc vm" value="replysubmit" tabindex="5"><strong>{lang post_newreply}</strong></button>
复制代码

在下面添加:
  1. <p><div style="width:590px; height:30px; line-height:15px; background:#fff7a0; border:#aa9c03 1px dotted; font-size:12px;padding:5px; clear:both; margin-top:5px"><FONT color=#5087DA>■</FONT> 当前IP:<FONT color=red>$_SERVER[REMOTE_ADDR]</FONT> <FONT color=#5087DA>■</FONT> 发帖时请遵守本站版规,尊重主帖作者的辛劳,请勿恶意灌水,勿使用纯英文字母、纯表情或毫无意义的词语。如果你对主帖作者的帖子不屑一顾的话,请勿回帖。谢谢合作!
  2. 。</div></p>
复制代码




上一篇:貂小婵比文招亲 《将魂三国》12.6内测庆生礼包开抢
下一篇:转载:超级开心,巴厘岛之库塔海滩
authicon 狼夜 发表于 2012-12-1 12:32:59 | 显示全部楼层

Discuz!X2.5

我这个为什么没有效果,www.xhhome.net
fast.png
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2024-5-17 04:42

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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