[外掛] 文字對齊 Align BBCode MOD 1.0.5

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

版主: 版主管理群

版面規則
請注意!只有發表在 [2.0.x] MOD Database Releases 的外掛,才算是官方認證的外掛。
主題已鎖定
taicomjp
星球公民
星球公民
文章: 32
註冊時間: 2004-08-19 00:00

[外掛] 文字對齊 Align BBCode MOD 1.0.5

文章 taicomjp »

[2.0.19] Align BBCode MOD

代碼: 選擇全部

##############################################################
## 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_main.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'] = '靠右對齊';
lang_bbcode.php
$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>");
放置於$faq[] = array("如何修改文字的顏色以及大小?" ..................
的下一行比較適合
常用的BBcode
文字對齊BBcode使用方法
  • 置中對齊

    代碼: 選擇全部

    [align=center]Centered Text[/align]
  • 靠左對齊

    代碼: 選擇全部

    [align=left]Centered Text[/align]
  • 靠右對齊

    代碼: 選擇全部

    [align=right]Centered Text[/align]
圖片對齊可參考Left and Right IMG tags(需先安裝Multi Quick BBCode MOD)BBCode 插入圖片對齊
方法皆是

代碼: 選擇全部

[img=left]url of image[/img]
[img=right]url of image[/img]
bbcode字型選擇可參考Font Face BBCode
方法

代碼: 選擇全部

[font=標楷體]text[/font]
版本: 1.0.5 (更新 03/27/06)
時間: ~ 5 分鐘
下載: align_bbcode_1.0.5a.zip
大小: 13412 Bytes
主題已鎖定

回到「官方認證外掛」