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

[教學] 帖内回复栏增加隐藏按钮 (hide)不需高级模式

不选择高级模式回复,也能显示隐藏代码

1111.jpg
2017-7-3 14:53
  1. 1:打开viewthread_fastpost.htm

  2. 找到:
  3. {eval $seditor = array('fastpost', array('bold', 'color', 'img', 'link', 'quote', 'code', 'smilies'));}

  4. 修改:
  5. {eval $seditor = array('fastpost', array('bold', 'color', 'img', 'link','hide', 'quote', 'code', 'smilies'));}

  6. 2:打开seditor.htm

  7. 找到:
  8. <a href="javascript:;" title="{lang e_url}" class="tb_link" onclick="seditor_insertunit('$seditor[0]', '[url]', '[/url]')">Link</a>
  9.         <!--{/if}-->

  10. 下面加:
  11.                         <!--{if in_array('hide', $seditor[1])}-->
  12.                 <a href="javascript:;" title="{lang e_hide}" class="tb_hide" onclick="seditor_insertunit('$seditor[0]', '[hide]', '[/hide]')">Hide</a>
  13.         <!--{/if}-->

  14. 3:打开css_seditor.htm

  15. 找到:
  16.                 .editor_tb div a.tb_link { background-position: -3px -121px; }
複製代碼
下面加:

本帖隱藏的內容需要回復才可以瀏覽


原贴:http://oocn.258club.com/thread-5462-1-1.html

不设权限么?所有会员都可以使用隐藏代码?

TOP

回復 2# 无界


    新会员不能设置隐藏权限。按照后台可设置的会员可以使用。

TOP

回復 3# 哥哥


    你换个普通账号试试

TOP

比較複習的教程;
大家在修改前請先自行備份,
就算不成功也可還原基本!

TOP

回復 4# 无界


    发布前试过了 ,新手,普通会员没有权限。跟高级模式一样有权限可使用

TOP

給我用用看看吧

TOP

這一堂
一定要來學習學習

TOP

謝謝分享

TOP

感謝分享

TOP

返回列表