免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 發帖

[版型教學] 【蓝氏原创】发帖按钮处的提示代码 FOR:DZ7.2/SCLUB

1.jpg
2012-11-27 15:24


具体操作: 1、放在发帖页面模板目录post.htm找到
  1. <button type="submit" id="postsubmit" prompt="post_submit" value="true" name="{if $action == 'newthread'}topicsubmit{elseif $action == 'reply'}replysubmit{elseif $action == 'edit'}editsubmit{/if}" tabindex="1">
  2. <!--{if $action == 'newthread'}-->
  3. <!--{if $special == 0}-->{lang post_newthread}
  4. <!--{elseif $special == 1}-->{lang post_newthreadpoll}
  5. <!--{elseif $special == 2}-->{lang post_newthreadtrade}
  6. <!--{elseif $special == 3}-->{lang post_newthreadreward}
  7. <!--{elseif $special == 4}-->{lang post_newthreadactivity}
  8. <!--{elseif $special == 5}-->{lang post_newthreaddebate}
  9. <!--{elseif $special == 127}-->
  10. <!--{if $buttontext}-->$buttontext<!--{else}-->{lang post_newthread}<!--{/if}-->
  11. <!--{/if}-->
  12. <!--{elseif $action == 'reply' && !empty($addtrade)}-->{lang trade_add_post}
  13. <!--{elseif $action == 'reply'}-->{lang join_thread}
  14. <!--{elseif $action == 'edit'}-->{lang edit_thread}
  15. <!--{/if}-->
  16. </button>
複製代碼
在其下面添加:
本帖隱藏的內容需要回復才可以瀏覽


2.在快速回覆处添加:
模板目录viewthread_fastpost.htm找到
  1. <p><button type="submit" name="replysubmit" id="fastpostsubmit" value="replysubmit"
  2. tabindex="5">{lang post_newreply}</button>
  3. <!--{if $ordertype != 1}-->
  4. <input id="fastpostrefresh" type="checkbox" /> <label for="fastpostrefresh">{lang
  5. post_fastreply_gotolast}</label></p><script type="text/javascript">if(getcookie('discuz_fastpostrefresh') == 1)
  6. {$('fastpostrefresh').checked=true;}</script>
  7. <!--{/if}-->
  8. </p>
複製代碼
在其下面添加:
本帖隱藏的內容需要回復才可以瀏覽
1

評分人數

接着坐沙发…

TOP

不错!回帖支持一下!
http://www.mybpcity.imotor.com/

TOP

谢谢分享

TOP

看起来不错,回复支持

TOP

貌似 很复杂。

TOP

這代碼真是很棒啊

學習~學習~

TOP

谢谢分享!不错的代码!
欢迎来我Q群玩耍,群号159218504,群号没有错哦

TOP

不错不错!收下了!

TOP

感謝分享~

TOP

返回列表