免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
游客
游客

爱秀代码

  • 游客仅可浏览部分版块
  • 请登录解锁全部权限

[一般闲聊] 测试发帖艾特按钮

热门
icode
2018-9-25 20:44 / 24 评论 / 179375 阅读
[at]無名[/at]
[at]麻城生活网[/at]
[at]波斯佳人[/at]
[at]老闆[/at]
[at]Yenifer[/at]

评论一下?

登录后即可参与评论

  1. 波斯佳人
    波斯佳人
    第 2 楼
  2. 無名
    無名
    第 3 楼
    我刚刚才弄完回复框的@,这个又怎么弄?请问路径在那个模板!
  3. icode
    icode
    第 4 楼
    安装前提已经替换了快捷回复图标样式

    http://sclub.com.tw/discuz/viewthread.php?tid=33465

    一、快捷回复安装方法:
    1、viewthread_fastpost模版找到
    1. {eval $seditor = array('fastpost', array('bold', 'color', 'img', 'link', 'quote', 'code', 'smilies'));}
    复制
    替换为
    1. {eval $seditor = array('fastpost', array('bold', 'color', 'img', 'link', 'quote', 'code', 'at', 'smilies'));}
    复制
    2、打开seditor.htm模版,找到
    1. <!--{if in_array('code', $seditor[1])}-->
    2. <a href="javascript:;" title="{lang e_code}" class="tb_code" onclick="seditor_insertunit('$seditor[0]', '[c ode]', '
    复制
    在下边加
    1.         <!--{if in_array('at', $seditor[1])}-->
    2.                 <a href="javascript:;" title="召唤" class="tb_at" onclick="seditor_insertunit('$seditor[0]', '@', '')">At</a>
    3.         <!--{/if}-->
    复制
    3、css_seditor模版找到
    1. .editor_tb div a.tb_imme { background-position: -3px -763px; }
    复制
    在下边加
    1. .editor_tb div a.tb_at {background-position: -140px 0; }
    复制
    二、发帖编辑框安装
    1、进入 界面--编辑器设置--Discuz!代码
    新建一个标签
    标签名称
    1. at
    复制
    勾选
    1. “显示”“可用”
    复制
    图标文件 / 描述
    1. 任意填写
    复制
    进入详情
    替换内容
    1. @{1}
    复制
    解释:
    1. 呼叫你的好友或关注的人
    复制
    参数提示语:
    1. 请输入要呼叫的用户名
    复制
    2、打开css_common模版
    在最下边加
    1. #e_cmd_custom1_at {
    2.     background: url(http://icode.258club.com/attachments/month_1809/1809011001e1ecb63c9068ea49.gif) no-repeat;
    3.     background-position: -122px -120px;
    4.     width: 40px;
    5.     padding-top: 28px;
    6.     height: 18px;
    7.     text-indent: 0;
    8.     font-size: 12px;
    9.     text-align: center;
    10. }
    11. #e_cmd_custom1_at img{display: none;}
    复制
    3、在第三方加入代码
    1. <script>$jq("#e_cmd_custom1_at").text("@朋");</script>
    复制
  4. 麻城生活网
    麻城生活网
    第 5 楼
    @icode
    这么快就出教程了呀
上一页 1 2 3 … 5 下一页
/ 5 页