[外掛] Table BBCode 1.2.4 (Update 1.3.1)

Officially Approved MODs
由 phpBB Group 官方發展小組認證的 MOD!

版主: 版主管理群

版面規則
請注意!只有發表在 [2.0.x] MOD Database Releases 的外掛,才算是官方認證的外掛。
主題已鎖定
頭像
johnkk
星球公民
星球公民
文章: 234
註冊時間: 2003-02-21 19:15
來自: 來自蝸牛鎮
聯繫:

[外掛] Table BBCode 1.2.4 (Update 1.3.1)

文章 johnkk »

代碼: 選擇全部

########################################################
## MOD Title:  Table BBCode
## MOD Author:  SlapShot434 < slapshot434@termee.com > (Matt Halpin) http://slapshot.termee.com 
## MOD Description:  This hack enables users to easily create tables in their posts without requiring you to allow the table, tr and td HTML tags. 
## MOD Version: 1.2.4 
## 
## Installation Level:  Intermediate
## Installation Time:   5-10 Minutes
## Files To Edit:	includes/bbcode.php,
## 		  	templates/subSilver/bbcode.tpl
##			templates/subSilver/posting_body.tpl
##			posting.php
##			language/lang_english/lang_main.php
##			language/lang_english/lang_bbcode.php
## Included Files:	root/templates/subSilver/images/icon_tablebbcode.gif
########################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/
############################################################## 
## Author Notes: 
##		This MOD may interfere with your forum if you have already
##		   installed another BBCode MOD.
## 
############################################################## 
## MOD History:
##    11/6/2004 - v. 1.2.4
##		 Updated to work with the newest version (v1.4.0) of the Multi BBCode MOD
##			- No longer includes a link to the BBCode FAQ
##
##    08/21/2004 - v. 1.2.3
##		 Fixed an error with the upgrade files
##
##    08/19/2004 - v. 1.2.2
##		 Fixed a hard-link error
##
##    08/18/2004 - v. 1.2.1
##		 Changed the hotkey to Alt+G (as requested by wgEric)
##		 Replaced tablehelp.html with a bbcode faq entry and link
##
##    08/13/2004 - v. 1.2.0
##		 Added the ability to define backround color for columns
##		 Created a new install file for Multi Quick BBCode Mod users
##
##    07/25/2004 - v. 1.1.0
##		 Added the ability to define backround color for rows
##
##    07/21/2004 - v. 1.0.2
##		 Fixed a few more things to make it EasyMOD compatable.
##
##    07/21/2004 - v. 1.0.1
##		 Fixed a few minor link errors and changes the syntax to better support other BBCode MODs.
##
##    07/18/2004 - v. 1.0.0
##		 This is the original version
##		 
########################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
Download Link: Table BBCode 1.2.4

不知道有沒有有願意翻譯一下英文囉
對Red Hat Linux還是一位新手..
但決不會因為難而放棄的
越是難搞越有興趣~^.^~

歡迎參觀我的網站
http://www.snailtown.idv.tw/
圖檔

●架設主機作業系統:Linux
●網站連結: http://www.snailtown.idv.tw/
●您的上網方式:ADSL
●您安裝的程式:Apache + php + MySql
●您的 phpBB2 版本:2.015
頭像
心靈捕手
默默耕耘的老師
默默耕耘的老師
文章: 8510
註冊時間: 2004-04-30 01:54
來自: Taiwan

[建議] 升級 1.3.1 版

文章 心靈捕手 »

目前 phpbb 官方論壇最新版本為 1.3.1
以下是檔頭說明部分擷取:

代碼: 選擇全部

########################################################
## MOD Title:  Table BBCode
## MOD Author:  SlapShot434 < slapshot434@gmail.com > (Matt Halpin) http://slapshot.termee.com 
## MOD Description:  This hack enables users to easily create tables in their posts without requiring you to allow the table, tr and td HTML tags. 
## MOD Version: 1.3.1 
## 
## Installation Level:  Intermediate
## Installation Time:   10-15 Minutes
## Files To Edit:	includes/bbcode.php,
## 		  	templates/subSilver/bbcode.tpl
##			templates/subSilver/posting_body.tpl
##			posting.php
##			language/lang_english/lang_main.php
##			language/lang_english/lang_bbcode.php
## Included Files:	templates/subSilver/images/icon_tablebbcode.gif
########################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the 
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code 
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered 
## in our MOD-Database, located at: http://www.phpbb.com/mods/
############################################################## 
## Author Notes: 
##
##	Works with phpBB 2.0.6 thru 2.0.16
##
##	Only use this install file if you do NOT have the Multi BBCode MOD Version 1.4.x installed on your forum.
##
##	This MOD may interfere with your forum if you have already
##		installed another BBCode MOD.
##	Be sure to change the numbers of the "addbbcode" numbers if neccessary
## 
############################################################## 
## MOD History:
##    07/15/2005 - v. 1.3.1  (Special thanks to seleleth for providing fixes to certain problems)
##		 Changed the [mrow] tag greatly
##			- Now sets up a row for the new [mcol] tag
##			- Supports fontsize and color attributes
##		 Created a new tag - [mcol] (Please read the updated BBCode FAQ for changes)
##			- Automatically centers and bolds text for new headers
##			- Supports fontsize and color attributes
##		 Created a new attribute - fontsize (Please read the updated BBCode FAQ for changes)
##			- Sets font text size to user-selected px size
##			- Can be used with any tag
##			- Can be used in conjunction with other attributes
##			- Set default table font size to the FONTSIZE3 setting in the current template
##		 Converted "color=" to an attribute used with any tag
##		 Changed cellspacing to 0 (from 2) so table borders aren't so huge
##		 Updated BBCode FAQ to show new features
##
##    11/6/2004 - v. 1.2.4
##		 Updated to work with the newest version (v1.4.0) of the Multi BBCode MOD
##			- No longer includes a link to the BBCode FAQ
正體中文化參考:
#
#-----[ OPEN ]-----
#
language/lang_chinese_traditional_taiwan/lang_main.php

#
#-----[ FIND ]-----
# ps. 後面代碼省略\r

代碼: 選擇全部

$lang['bbcode_f_help'] =
#
#-----[ AFTER, ADD ]-----
#

代碼: 選擇全部

$lang['bbcode_t_help'] = '建立表格: 點選[BBCode 代碼], 獲取更多訊息...(alt+t)';
#
#-----[ OPEN ]-----
#
language/lang_chinese_traditional_taiwan/lang_bbcode.php

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

代碼: 選擇全部

?>
#
#-----[ BEFORE, ADD ]-----
#
// + Table BBCode 1.3.1
$faq[] = array("--", "<a name=\"tables\"></a>建立表格");
$faq[] = array("[table]及[/table]標籤功能為何?", "你需要<b>[table]</b>及<b>[/table]</b>來定義表格的開始及結束,<br />使用 <b>[table]</b> 在表格的開頭, <br />和使用 <b>[/table]</b> 在表格的結尾.");
$faq[] = array("[mrow]標籤功能為何?", "使用<b>[mrow]</b> 來製作起始列 (置中, 粗體字).<br />附註: [/mrow] 是不需要輸入的<br /><br /><b><u>例如:</u></b><br /><br />[table]<b>[mrow]</b>主要的列[/table]<br /><br />如下所示...<br /><br /><table align=\"top\" cellpadding=\"2\" cellspacing=\"0\" style=\"font-size: 12px\" border=\"1\" bgcolor=\"#FFFFFF\"><tr><td style=\"font-weight: bold; text-align: center;\">主要的列</td></tr></table>");
$faq[] = array("[mcol]標籤功能為何?", "使用<b>[mcol]</b> 來製作起始列的欄 (置中, 粗體字).<br />附註: [/mcol] 是不需要輸入的<br /><br /><b><u>例如:</u></b><br /><br />[table][mrow]主要的列, 第一欄<b>[mcol]</b>主要的列, 第二欄[col]主要的列, 有規律的欄[/table]<br /><br />如下所示...<br /><br /><table align=\"top\" cellpadding=\"2\" cellspacing=\"0\" style=\"font-size: 12px\" border=\"1\" bgcolor=\"#FFFFFF\"><tr><td style=\"font-weight: bold; text-align: center;\">主要的列, 第一欄</td><td style=\"font-weight: bold; text-align: center;\">主要的列, 第二欄</td><td>主要的列, 有規律的欄</td></tr></table>");
$faq[] = array("[row]標籤功能為何?", "使用<b>[row]</b> 來製作新增列 (不置中, 一般字)<br />附註: [/row] 是不需要輸入的<br /><br /><b><u>例如:</u></b><br /><br />[table][mrow]主要的列<b>[row]</b>有規律的列[/table]<br /><br />如下所示...<br /><br /><table align=\"top\" cellpadding=\"2\" cellspacing=\"0\" style=\"font-size: 12px\" border=\"1\" bgcolor=\"#FFFFFF\"><tr><td style=\"font-weight: bold; text-align: center;\">主要的列</td></tr><tr><td>有規律的列</td></tr></table>");
$faq[] = array("[col]標籤功能為何?", "使用<b>[col]</b> 來製作新增欄 (不置中, 一般字)<br />附註: [/col] 是不需要輸入的<br /><br /><b><u>例如:</u></b><br /><br />[table][mrow]主要的列, 第一欄[mcol]主要的列, 第二欄[row]有規律的列, 第一欄<b>[col]</b>有規律的列, 第二欄[/table]<br /><br />如下所示...<br /><br /><table align=\"top\" cellpadding=\"2\" cellspacing=\"0\" style=\"font-size: 12px\" border=\"1\" bgcolor=\"#FFFFFF\"><tr><td style=\"font-weight: bold; text-align: center;\">主要的列, 第一欄</td><td style=\"font-weight: bold; text-align: center;\">主要的列, 第二欄</td></tr><tr><td>有規律的列, 第一欄</td><td>有規律的列, 第二欄</td></tr></table>");
$faq[] = array("是否需要增加 [mrow], [mcol], [row], 或 [col] 的關閉標籤呢?", "不, 除了 [/table] 標籤之外, 其餘的都不需要.");
$faq[] = array("什麼是不同的屬性?", "您可以使用 <a href=\"#color\">\"color=\"</a> 和 <a href=\"#fontsize\">\"fontsize=\"</a> 相容於其他的標籤. 您可以像一般 HTML 語法一樣, 用<b>空格</b>將它們分隔開, 不必在乎排列的順序.<br /><br /><a name=\"color\"><br /></a><span style=\"font-size: 16px\"><b><u>顏色</u></b></span><br /><br />這 \"color=\" 屬性允許您改變背景顏色.<br />您可以輸入特定的顏色名稱 (如: red, blue, yellow, ...等) 或者使用 RGB 值 (如: #FFFFFF, #000000, ...等).<br /><br /><b><u>例如:</u></b><br />[table color=blue][mrow color=green]主要的列, 第一欄[mcol color=red]主要的列, 第二欄[row color=#FF0000]有規律的第一列, 第一欄[col color=#00FF00]有規律的第一列, 第二欄[row]有規律的第二列, 第一欄[col]有規律的第二列, 第二欄[/table]<br />&nbsp;&nbsp;&nbsp;展示如下...<br /><table align=\"top\" cellpadding=\"2\" cellspacing=\"0\" style=\"font-size: 12px\" border=\"1\" bgcolor=\"#0000FF\"><tr bgcolor=\"#00FF00\"><td style=\"font-weight: bold; text-align: center;\">主要的列, 第一欄</td><td bgcolor=\"#FF0000\" style=\"font-weight: bold; text-align: center;\">主要的列, 第二欄</td></tr><tr bgcolor=\"#FF0000\"><td>有規律的第一列, 第一欄</td><td bgcolor=\"#00FF00\">有規律的第一列, 第二欄</td></tr><tr><td>有規律的第二列, 第一欄</td><td>有規律的第二列, 第二欄</table><br /><hr><br /><a name=\"fontsize\"></a><br /><span style=\"font-size: 16px\"><b><u>字型大小</u></b></span><br /><br />這 \"fontsize=\" 屬性允許您改變字型大小.<br />預設的字型大小是 FONTSIZE3, 無論如何, 您都可以在 [table] 標籤中改變它.<br /><br /><b><u>例如:</u></b><br />[table fontsize=18][mrow fontsize=10]主要的列, 第一欄[mcol fontsize=14]主要的列, 第二欄[row fontsize=5]有規律的第一列, 第一欄[col fontsize=28]有規律的第一列, 第二欄[row]有規律的第二列, 第一欄[col]Regular Row 2 Column 2[/table]<br />&nbsp;&nbsp;&nbsp;Will show up as<br /><table align=\"top\" cellpadding=\"2\" cellspacing=\"0\" style=\"font-size: 18px\" border=\"1\" bgcolor=\"#FFFFFF\"><tr style=\"font-size: 10px\"><td style=\"font-weight: bold; text-align: center;\">主要的列, 第一欄</td><td style=\"font-weight: bold; text-align: center; font-size: 14px\">主要的列, 第二欄</td></tr><tr style=\"font-size: 5px\"><td>有規律的第一列, 第一欄</td><td style=\"font-size: 28px\">有規律的第一列, 第二欄</td></tr><tr><td>有規律的第二列, 第一欄</td><td>有規律的第二列, 第二欄</table>");
// - Table BBCode 1.3.1
ps.
目前最新版本是 1.3.1
裡頭有兩個安裝說明檔:
Install_table_bbcode.mod
Install_table_bbcode_with_multi_bbcode_mod140.mod

這部份 (lang_main.php) 是針對前者.

關於後者的正體中文化, 請參考這裡:
http://phpbb-tw.net/phpbb/viewtopic.php?p=226311#226311
施比受有福,祝福您好運! ^_^
歡迎光臨★★心靈捕手★★ :: 討論區
https://wang5555.dnsfor.me/phpBB3/
主題已鎖定

回到「官方認證外掛」