Evil Quick Reply (快速回覆)

Officially Approved MODs
歡迎推薦由 phpBB Limited 官方發展小組認證的外掛!

版主: 版主管理群譯文組

版面規則
所謂「官方認證外掛」是指經官方認證,已發表在 [3.0.x] MOD Database Releases 版面的外掛。
目前,全數外掛已收錄於 Customisation Database ‹ Modifications
本版面外掛,包含 Official Tools(官方工具)Bridges(橋接)

為了維護推薦外掛之品質,自即日起,如果要在這個版面推薦外掛,那麼請遵守底下格式,謝謝合作!

發文格式:
  • 外掛名稱:(原文/中文化名稱)
  • 外掛作者:(原文)
  • 外掛描述:(原文/中文化描述)
  • 外掛版本:(原文)
  • 外掛下載:(連結位址)
  • 資料來源:(連結位址)
    --
  • 中文化分享:(若外掛無須修改語言檔、或無須上傳語言檔,則免之。)
    --
  • 使用後心得:(簡單陳述您的安裝經驗、使用心得、或其他注意事項。)


p.s.
這個版面之發文,需經版主審核。
主題已鎖定
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8514
註冊時間: 2004-04-30 01:54
來自: Taiwan

Evil Quick Reply (快速回覆)

文章 心靈捕手 »

外掛名稱:Evil Quick Reply
外掛作者:eviL<3
外掛描述:This modification will add a hidden quick reply form to the bottom of the viewtopic page. It adds a "Quick reply" image next to "Post reply", that will display the quick reply form when clicked. The goal of this MOD is not to offer as many features as possible, it's built to be as simple as possible./這個外掛增加一個隱藏的快速回覆表單在文章頁面。它增加了一個「快速回覆」的圖示在「回覆文章」的附近。
外掛版本:1.0.1
外掛下載:evil_quick_reply_1_0_1.zip
資料來源:http://www.phpbb.com/community/viewtopic.php?t=595969

--
DEMO:
http://wang5555.dnsfor.me/test/phpBB3/
2008012601.jpg
2008012602.jpg
--
中文化圖示分享:
1. prosilver:
button_quick_reply.gif
button_quick_reply.gif (1.51 KiB) 已瀏覽 15797 次
2. subsilver2:
button_quick_reply.gif
button_quick_reply.gif (1 KiB) 已瀏覽 15780 次
--
安裝注意事項:
  1. 除了參考 install.xml 修改之外,
    也必須針對您使用的風格, 參考 templates/prosilver.xml 或 templates/subsilver2.xml 修改.
  2. 當然, 也必須針對您所使用的語系 (例如 /zh_cmn_hant/),
    修改相關的語言檔或風格, 以及上傳 (快速回覆) 圖示按鈕.
  3. 修改完後, 進 ACP > 風格 > 樣板/主題/圖檔組 > 您的風格 > 重新整理.
最後由 心靈捕手 於 2010-04-10 23:54 編輯,總共編輯了 3 次。
理由: 補充 "安裝注意事項"
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8514
註冊時間: 2004-04-30 01:54
來自: Taiwan

[分享] 直接顯示 '快速回覆' 介面的方法

文章 心靈捕手 »

既然是 '快速回覆', 其實是不必多一個 '按鈕' 的動作的. ;-)
#
#-----[ OPEN ]-----
#
includes/functions_quick_reply.php

#
#-----[ FIND ]-----
#

代碼: 選擇全部

		'hide_box'			=> true,	// Shall the box be hidden on pageload?
#
#-----[ REPLACE WITH ]-----
#

代碼: 選擇全部

		'hide_box'			=> false,	// Shall the box be hidden on pageload?
#
#-----[ SAVE & CLOSE ]-----
#
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8514
註冊時間: 2004-04-30 01:54
來自: Taiwan

[轉貼] Evil Quick Reply 顯示 BBCode 按鈕的方法

文章 心靈捕手 »

如果要顯示 BBCode 按鈕於快速回覆的區塊, 那麼可以這麼做:

開啟
includes/functions_quick_reply.php

找到

代碼: 選擇全部

'hide_box'			=> true,
取代成

代碼: 選擇全部

'hide_box'			=> false,
儲存檔案

如果要再新增 img, url, flash. quote 等按鈕的話, 那麼可以這麼做:

開啟
includes/functions_quick_reply.php

找到

代碼: 選擇全部

	// Assign template variables
之前, 新增

代碼: 選擇全部

// This get the bbcodes status for this topic - Start
	// HTML, BBCode, Smilies, Images and Flash status
	$bbcode_status   = ($config['allow_bbcode'] && $auth->acl_get('f_bbcode', $forum_id)) ? true : false;
	$smilies_status   = ($bbcode_status && $config['allow_smilies'] && $auth->acl_get('f_smilies', $forum_id)) ? true : false;
	$img_status      = ($bbcode_status && $auth->acl_get('f_img', $forum_id)) ? true : false;
	$url_status      = ($config['allow_post_links']) ? true : false;
	$flash_status   = ($bbcode_status && $auth->acl_get('f_flash', $forum_id) && $config['allow_post_flash']) ? true : false;
	$quote_status   = ($auth->acl_get('f_reply', $forum_id)) ? true : false;
// This get the bbcodes status for this topic - End
找到

代碼: 選擇全部

		'S_QR_RESIZE'			=> $qr_config['resize'],
之後, 新增

代碼: 選擇全部

// This Show the bbcodes buttons for this topic - Start
		'S_BBCODE_IMG'         => $img_status,
		'S_LINKS_ALLOWED'      => $url_status,
		'S_BBCODE_FLASH'       => $flash_status,
		'S_BBCODE_QUOTE'       => $quote_status,
// This Show the bbcodes buttons for this topic - End
儲存檔案

--
參考資料:
http://www.phpbb.com/community/viewtopi ... 5#p5227085
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8514
註冊時間: 2004-04-30 01:54
來自: Taiwan

Evil Quick Reply (快速回覆) 顯示「表情符號 & BBCode 按鈕」的方法

文章 心靈捕手 »

前言:
上一篇回文,已有說明 Evil Quick Reply (快速回覆) 顯示 BBCode 按鈕方法。
在此,(一併)補充說明:顯示表情符號的方法。


方法:
--開啟--
includes/functions_quick_reply.php

--找到--

代碼: 選擇全部

if (!defined('IN_PHPBB'))
{
	exit;
}
--之後增加--

代碼: 選擇全部

/* + 表情符號 & BBCode 按鈕 */
include($phpbb_root_path . 'includes/functions_posting.' . $phpEx);
// Generate smiley listing
generate_smilies('inline', $forum_id);

// Language file (see documentation related to language files)
$user->setup('posting');
/* - 表情符號 & BBCode 按鈕 */
--找到--

代碼: 選擇全部

		'hide_box'			=> true,	// Shall the box be hidden on pageload?
--REPLACE WITH--

代碼: 選擇全部

		'hide_box'			=> false,	// Shall the box be hidden on pageload?
--找到--

代碼: 選擇全部

	// Page title & action URL, include session_id for security purpose
	$s_action = append_sid("{$phpbb_root_path}posting.$phpEx", false, true, $user->session_id);
--之後增加--

代碼: 選擇全部

/* + 表情符號 & BBCode 按鈕 */
	$bbcode_status   = ($config['allow_bbcode'] && $auth->acl_get('f_bbcode', $forum_id)) ? true : false;
	$smilies_status   = ($bbcode_status && $config['allow_smilies'] && $auth->acl_get('f_smilies', $forum_id)) ? true : false;
	$img_status      = ($bbcode_status && $auth->acl_get('f_img', $forum_id)) ? true : false;
	$url_status      = ($config['allow_post_links']) ? true : false;
	$flash_status   = ($bbcode_status && $auth->acl_get('f_flash', $forum_id) && $config['allow_post_flash']) ? true : false;
	$quote_status   = ($auth->acl_get('f_reply', $forum_id)) ? true : false;
/* - 表情符號 & BBCode 按鈕 */
--找到--

代碼: 選擇全部

		'S_QR_RESIZE'			=> $qr_config['resize'],
--之後增加--

代碼: 選擇全部

/* + 表情符號 & BBCode 按鈕 */
		'S_SMILIES_ALLOWED'			=> $smilies_status,
		'S_BBCODE_ALLOWED'			=> $bbcode_status,
		'S_SHOW_SMILEY_LINK' 	=> true,
		'U_MORE_SMILIES' 		=> append_sid("{$phpbb_root_path}posting.$phpEx", 'mode=smilies&f=' . $forum_id),
		'S_BBCODE_IMG'         => $img_status,
		'S_LINKS_ALLOWED'      => $url_status,
		'S_BBCODE_FLASH'      => $flash_status,
		'S_BBCODE_QUOTE'      => $quote_status,
/* - 表情符號 & BBCode 按鈕 */
--儲存與關閉--

後記:
參考資料:
http://www.phpbb.com/community/viewtopi ... 5#p5227085
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
主題已鎖定

回到「[3.0.x] 官方認證外掛」