在快速回覆框中使用多重引用
在官方網站中看到這個修改簡單卻蠻實用的功能,
這個修改的概念是利用IE的JS Code來實現多重引用效果, 不過,目前尚不支援論壇所見即所得編輯器開啟的時候使用。 修改很簡單,不過修羅懶的測試,有用到的人記得來說說好不好用^^ 官方Hack站說的是適用於3.0.3,不過我相信大家都知道,這並不一定啦.... 編輯檔案 clientscript/vbulletin_quickreply.js 搜尋: PHP代碼: var active = true; 在下面加上: PHP代碼: // ############################ Xenons Multiquote ############################## function doMultiQuote(user, postid) { var selectedtext = ""; if (window.getSelection) { // Mozilla Browsers selectedtext = window.getSelection(); } else if (document.selection.createRange().text) { // IE Based Browsers selectedtext = document.selection.createRange().text; } if (selectedtext != "") { document.vbform.qr_message.value += " 引用:
document.vbform.qr_quickreply.checked = ''; return false; } else if (document.vbform.qr_message.value == "") { document.vbform.qr_quickreply.checked = 'checked'; return qr(postid); } else { htmlwindow = fetch_object("qr_message"); htmlwindow.focus(); } return false; } 編輯模板 postbit 並搜尋: HTML代碼: <if condition="$SHOWQUICKREPLY AND !$show['threadedmode']"> <a href="$post[replylink]" onclick="return qr($post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a> </if> 整段替換為: HTML代碼: <if condition="$SHOWQUICKREPLY AND !$show['threadedmode']"> <a href="$post[replylink]" onclick="return doMultiQuote('$post[username]', $post[postid]);"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a> </if> 修改完成,夠簡單了吧! |
所有時間均為台北時間。現在的時間是 07:32 AM。 |
Powered by vBulletin® 版本 3.6.8
版權所有 ©2000 - 2024, Jelsoft Enterprises Ltd.
『服務條款』
* 有問題不知道該怎麼解決嗎?請聯絡本站的系統管理員 *