代碼: 選擇全部
##############################################################
## MOD Title: Left/Center/Right Align BBCode [align][/align]
## MOD Author: NBishop <nbishop@csmn-ctd.net> (Nate) http://dev.script-sys.net/
## MOD Description: Provides dropdown selection of Text Alignment (Left, Center or Right)
## MOD Version: 1.0.5
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: (7 Files)
## posting.php,
## privmsg.php,
## includes/bbcode.php,
## language/lang_english/lang_main.php,
## language/lang_english/lang_bbcode.php,
## templates/subSilver/bbcode.tpl,
## templates/subSilver/posting_body.tpl
##
## Included Files: N/A
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## - This will implement a dropdown selection allowing people to Left/Center/Right Align text.
## - Sorta nicely sums up Right, Left and Center BBCode MODs all into one.
## - MOD Should work fine with a Vanilla install of phpBB (Tested on 2.0.19)
## - May be conflicts with EasyMOD when Multi-BBCode is installed (Not confirmed yet)
## - - If so above, just do a manual install/modification of this MOD by hand if possible.
##
## - See CH-2.1.4/install.txt for instructions to install into Categories Hierarchy 2.1.4
##
##############################################################
## MOD History:
##
## 2006-01-05 - Version 1.0.0
## - Initial Release
##
## 2006-01-06 - Version 1.0.1
## - Updated as to requests of the MOD Validation reply o.o;
##
## 2006-01-16 - Version 1.0.2
## - Updated to more requested MOD Validation standards >.<;
##
## 2006-02-09 - Version 1.0.3
## - Mis positioned instructions un-ordered, fixed.
##
## 2006-03-06 - Version 1.0.4
## - Modified some misc comments and such around the MOD template here.
## - Corrected a few mis-typed comments (Mixed up comments between two of my MODs).
## - Inserted missing 'lang_bbcode.php' instructions into the install guide.
## - Inserted missing 'Files to be edited' names in that section
##
## 2006-03-25 - Version 1.0.5
## - Added a selectedIndex reset to the dropdown box (minor patch/addon)
## - Changed $lang['Font_align'] from Font align to Align
## - Added install instructions for Categories Hierarchy 2.1.4
##
##############################################################
lang_bbcode.php$lang['bbcode_x_help'] = '文字對齊: [align=center]Centered Text[/align]';
// Align BBCode MOD
$lang['Font_align'] = '文字對齊';
$lang['align_left'] = '靠左對齊';
$lang['align_center'] = '置中對齊';
$lang['align_right'] = '靠右對齊';
常用的BBcode放置於$faq[] = array("如何修改文字的顏色以及大小?" ..................$faq[] = array("如何使用對齊文字?", "對齊方式有三種, 靠左對齊、靠右對齊和置中對齊. 這些可以分述如下: <ul><li>要文字靠左對齊可使用 <b>[align=left][/align]</b>, 例如: <br /><br /><b>[align=left]</b>靠左<b>[/align]</b><br /><br />會變成<div align=\"left\">靠左</div><br /><br /></li><li>要文字靠右對齊可使用 <b>[align=right][/align]</b>, 例如: <br /><br /><b>[align=right]</b>靠右<b>[/align]</b><br /><br />會變成<div align=\"right\">靠右</div><br /><br /></li><li>要文字置中對齊可使用 <b>[align=center][/align]</b>, 例如: <br /><br /><b>[align=center]</b>置中<b>[/align]</b><br /><br />會變成<div align=\"center\">置中</div><br /><br /></li></ul>");
的下一行比較適合
文字對齊BBcode使用方法
圖片對齊可參考Left and Right IMG tags(需先安裝Multi Quick BBCode MOD)或 BBCode 插入圖片對齊
方法皆是
代碼: 選擇全部
[img=left]url of image[/img]
[img=right]url of image[/img]
方法
代碼: 選擇全部
[font=標楷體]text[/font]
時間: ~ 5 分鐘
下載: align_bbcode_1.0.5a.zip
大小: 13412 Bytes