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

標題: [版型教學] 快捷回复栏加上传附件按钮。 [打印本頁]

作者: 无界    時間: 2013-6-10 10:24     標題: 快捷回复栏加上传附件按钮。

QQ截图20130610101409.png

打开viewthread_fastpost.htm模板,搜索代码
  1. <p><button type="submit" name="replysubmit" id="fastpostsubmit" value="replysubmit" tabindex="5">{lang post_newreply}</button>
複製代碼
在下面加
  1. <!--{if in_array('rayfile', $seditor[1])}-->
  2. <script type="text/javascript"  src="http://www.rayfile.com/media/js/plug_in.js"></script>
  3. <input name='rayfile_email' type='hidden' value='601447405@qq.com' id='rayfile_email'/>
  4. <input name='rayfile_tmp_address' type='hidden' value='http://www.test.com/phpwind87/plug_tmp.html' id='rayfile_tmp_address' />
  5. <input name='open_plug' type='button' onclick='open_new_html()' title="快速上传附件" value='上传附件' -3px -501px;}"></a>
  6. <!--{/if}-->
複製代碼
其中601447405@qq.com是我的网盘注册账号,改成你自己的就行了。没有账号的到rayfile申请去。

效果可以到我的论坛随便点击个上传试试。

圖片附件: QQ截图20130610101409.png (2013-6-10 10:22, 9.59 KB) / 下載次數 872
http://www.sclub.com.tw/discuz/attachment.php?aid=21166&k=d5b8f9ca6456f37d462f9b68e673ae40&t=1714309133&sid=4e8QM1


作者: xuan    時間: 2013-6-10 17:52

謝謝分享
作者: bossll    時間: 2013-6-10 19:55

辛勞你分享很好代碼,謝謝!
作者: pigeon    時間: 2013-6-10 21:23

为什么我用不了?用上就什么按钮都没了。
unamed1370870714.png

圖片附件: unamed1370870714.png (2013-6-10 21:23, 51.77 KB) / 下載次數 869
http://www.sclub.com.tw/discuz/attachment.php?aid=21169&k=3ce0a34d449496cf05ad448d8895e60d&t=1714309133&sid=4e8QM1


作者: 干掉大白兔    時間: 2013-6-15 13:30

哇。这个好强大。~~~
作者: 达人小G    時間: 2013-6-27 03:39

能不能使用论坛的附件上传?
作者: kaixin666    時間: 2021-6-7 12:13

謝謝分享




歡迎光臨 SCLUB免費論壇申請-使用者論壇 (http://www.sclub.com.tw/discuz/) Powered by Discuz! 7.2