[外掛] 改良型引言 1.0.0

MODs Released by Other phpbb Sites
非官方認證通過之 MOD ,或許有安全性之疑慮,所有問題由原發表者回覆!

版主: 版主管理群

主題已鎖定
天霜
竹貓忠實會員
竹貓忠實會員
文章: 883
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

[外掛] 改良型引言 1.0.0

文章 天霜 » 2004-09-09 12:23

代碼: 選擇全部

################################################################# 
## Mod Title: Extended Quote Tag
## Mod Version: 1.0.0
## Author: Acyd Burn < acyd.burn@gmx.de > - Meik Sievertsen - http://www.opentools.de/
## Description: 
##		This Mod adds an extended functionality on the [quote] BBCode Tag.
##		You are able to view the Post from which the User quoted and you have the ability
##		to quote directly from the Topic Review Window.
##		To let this Mod recognise the Post, the Quote Tag has this extended systax (old syntax works):
##			[ quote=p="<post_id>" ][ /quote ]
##			[ quote="<Username>";p="<post_id>" ][ /quote ]
##		After the Message got parsed you will see an additional Link:
##			Quote (View Post):
##			Username wrote (View Post):
##		Within the Topic Review Window a Quote Button is added to each Post.
##		After clicking on this Button the Quote is added to the current Post Area.
##		
##		This Version is Tested with phpBB 2.0.3.
##
## Revision History:
##
##		2002-11-23 - Version 1.0.0
## 
## Installation Level: moderate
## Installation Time: 5-10 Minutes 
## Files To Edit: posting.php, includes/bbcode.php, includes/topic_review.php, language/lang_english/lang_main.php,
##		templates/subSilver/bbcode.tpl, templates/subSilver/posting_topic_review.tpl, templates/subSilver/viewtopic_body.tpl
## Included Files: show_post.php, post_review.tpl
##
############################################################## 
## This MOD is released under the GPL License.
############################################################## 
## Please Check the following Sites for the latest version of this MOD:
##
## http://www.phpbb.com/mods/downloads/
## http://www.opentools.de/board (Download Forum)
## 
## For Security Purposes:
## If you want to add this Mod into ANY Mods Database, please ask me before you do so.
## If anyone ask me if it's safe to use, i will have a list of sites where it's available/downloadable from.
## Downloading this MOD from sites not on my list could cause malicious code to enter into your phpBB Forum.
## As an additional service, i will inform those sites when a new Version comes out.
##
## phpBB will not offer support for MOD's not offered in their MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##
## Please Note that you get FULL support on http://www.opentools.de, http://www.phpbbhacks.com and http://www.phpbb.com from
## me (the Mod Author). 
##
############################################################## 
## Author Notes: 
##
## This Mod does not require Database Changes.
## Many Thanks to dhn for requesting this Mod and for the Discussion on it.
##
################################################################# 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
#################################################################

代碼: 選擇全部

$lang['View_post']                = '原文章'; 
$lang['Post_review']              = '快速瀏覽原文章'; 
$lang['View_next_post']           = '瀏覽下一篇文章'; 
$lang['View_previous_post']       = '瀏覽上一篇文章'; 
$lang['No_newer_posts']           = '目前並沒有任何新的文章發表於本板'; 
$lang['No_older_posts']           = '目前並沒有任何文章發表於本板';
  • 已知 Bug 問題:
    在檢視主題內的文章中 如果有類似以下文章內容 則檢視主題內的引言按鈕將失效

代碼: 選擇全部

"XX功"
  • 例如:
    因為"探路成功"的話 想必代理商會引進更多聲優的音樂

天霜
竹貓忠實會員
竹貓忠實會員
文章: 883
註冊時間: 2003-04-15 19:40
來自: 星之鄉學園
聯繫:

文章 天霜 » 2004-09-09 12:24

  • 檢視主題內的引言按鈕以圖案來顯示:
#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

includes/topic_review.php
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

'PLAIN_MESSAGE' => str_replace(chr(13), '', $plain_message),
#
#-----[ AFTER, ADD 之後, 加上 ]------------------------------------
#

代碼: 選擇全部

				'QUOTE_IMG' => $images['icon_quote'],
				'L_QUOTE' => $lang['Reply_with_quote'],
#
#-----[ OPEN 打開 ]------------------------------------------------
#

代碼: 選擇全部

templates/subSilver/posting_topic_review.tpl
#
#-----[ FIND 尋找 ]------------------------------------------------
#

代碼: 選擇全部

<input type="button" class="button" name="addquote" value="Quote" style="width: 50px" onClick="addquote({postrow.U_POST_ID});" />
#
#-----[ REPLACE WITH 替換 ]----------------------------------------
#

代碼: 選擇全部

<input type="image" src="{postrow.QUOTE_IMG}" alt="{postrow.L_QUOTE}" title="{postrow.L_QUOTE}" border="0" name="addquote" onClick="addquote({postrow.U_POST_ID});" />
#
#-----[ SAVE/CLOSE ALL FILES 儲存/關閉所有檔案 ]-------------------
#
# EoM 外掛修正結束

頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8629
註冊時間: 2004-04-30 01:54
來自: Taiwan

[建議] 升級 phpBB 2.0.19 以上者修改

文章 心靈捕手 » 2007-04-23 08:56

-- 以下原作者 ~倉木麻衣~ --

#
#--------[ OPEN ]----------------
#
includes/bbcode.php

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

代碼: 選擇全部

	// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
	$text = bbencode_first_pass_pda($text, $uid, '[quote]', '[/quote]', '', false, '');
#
#--------[ BEFORE, ADD ]----------------
#

代碼: 選擇全部

	// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff with an pre-defined post entry
	$text = bbencode_first_pass_pda($text, $uid, '/\[quote=p=\\\\"([0-9]+)\\\\"\]/is', '[/quote]', '', false, '', "[quote:$uid=p=\\\"\\1\\\"]");

	$text = bbencode_first_pass_pda($text, $uid, '/\[quote=\\\\"([^"]*?)\\\\";p=\\\\"([0-9]+)\\\\"\]/is', '[/quote]', '', false, '', "[quote:$uid=\\\"\\1\\\";p=\\\"\\2\\\"]");
#
#--------[ FIND, DELETE ]----------------
#

代碼: 選擇全部

	// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff with an pre-defined post entry
//	$text = bbencode_first_pass_pda($text, $uid, '/\[quote=p=(\\\\"[0-9]+\\\\")\]/is', '[/quote]', '', false, '', "[quote:$uid=p=\\1]");

//	$text = bbencode_first_pass_pda($text, $uid, '/\[quote=(\\\\"[^"]*?\\\\");p=(\\\\"[0-9]+\\\\")\]/is', '[/quote]', '', false, '', "[quote:$uid=\\1;p=\\2]");
#
#--------[ OPEN ]----------------
#
includes/topic_review.php

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

代碼: 選擇全部

			$plain_message = str_replace('<', '<', $plain_message);
			$plain_message = str_replace('>', '>', $plain_message);
#
#--------[ REPLACE WITH ]----------------
#

代碼: 選擇全部

			$plain_message = str_replace('<', '<', $plain_message);
			$plain_message = str_replace('>', '>', $plain_message);
			$plain_message = str_replace('"', '"', $plain_message);
#
#--------[ SAVE/CLOSE ALL FILES ]----------------
#
# EoM

--
Source: http://phpbb-tw.net/phpbb/viewtopic.php?p=256641#256641
施比受有福,歡迎來信賜教,謝謝 & 再見!
祝福您 好運 ^_^
歡迎加入★★心靈捕手★★ :: 討論區!!
http://wang5555.hopto.org/phpBB3/
p.s. 奉老婆之命:在晚上十一點前,得關機睡覺!!!

主題已鎖定

回到「非官方認證外掛」