奇怪! 您新增的 'Flash' 按鈕, 它( Multiple BBCode MOD) 怎麼會排 '18' 呢?
您可以試試將 'Flash' 排在 '影片' 之前,
也就是說, '影片' 調為 '20' ,而 'RealPlayer' 調為 '22'.
或者, 乾脆不要讓它幫您新增 'Flash' 按鈕, 直接自己加入;
雖然比較麻煩一點, 但是容易掌控版面的編排.
以下的修改, 提供您參考:
#
#-----[ OPEN ]-----
#
includes/bbcode.php
#
#-----[ FIND ]-----
#
代碼: 選擇全部
$EMBB_widths = array('','50') ;
$EMBB_values = array('','Flash') ;
#
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
$EMBB_widths = array('') ;
$EMBB_values = array('') ;
#
#-----[ FIND ]-----
#
代碼: 選擇全部
//[ real ]and[ /real ]for real player.
$patterns[6] = "#\[real:$uid\](.*?)\[/real:$uid\]#si";
$replacements[6] = $bbcode_tpl['real'];
//[ stream ]and[ /stream ]for streaming audio.
$patterns[6] = "#\[stream:$uid\](.*?)\[/stream:$uid\]#si";
$replacements[6] = $bbcode_tpl['stream'];
#
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
//[ real ]and[ /real ]for real player.
$patterns[] = "#\[real:$uid\](.*?)\[/real:$uid\]#si";
$replacements[] = $bbcode_tpl['real'];
//[ stream ]and[ /stream ]for streaming audio.
$patterns[] = "#\[stream:$uid\](.*?)\[/stream:$uid\]#si";
$replacements[] = $bbcode_tpl['stream'];
#
#-----[ OPEN ]-----
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]-----
#
代碼: 選擇全部
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ AFTER, ADD ]-----
#
代碼: 選擇全部
m_help = "{L_BBCODE_M_HELP}";
#
#-----[ FIND ]-----
#
代碼: 選擇全部
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
','
','[img]','[/img]','
','','[stream]','[/stream]','[real]','[/real]','[flash]','[/flash]');
[/code]
#
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','
','
','
','[img]','[/img]','
','','[stream]','[/stream]','[real]','[/real]','[flash width=400 height=300]','[/flash]');
[/code]
#
#-----[ FIND ]-----
#
代碼: 選擇全部
<td><span class="genmed">
<input type="button" class="button" accesskey="n" name="addbbcode18" value="影片" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('n')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="rm" name="addbbcode20" value="RealPlayer" style="width: 80px" onClick="bbstyle(20)" onMouseOver="helpline('rm')" />
</span></td>
<!-- BEGIN MultiBB -->
<td><span class="genmed">
<input type="button" class="button" accesskey="{MultiBB.KEY}" name="{MultiBB.NAME}" value="{MultiBB.VALUE}" style="width: {MultiBB.WIDTH}px" onClick="{MultiBB.STYLE}" onMouseOver="helpline('{MultiBB.VALUE}')" />
</span></td>
<!-- END MultiBB -->
</tr>
#
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
<!-- BEGIN MultiBB -->
<td><span class="genmed">
<input type="button" class="button" accesskey="{MultiBB.KEY}" name="{MultiBB.NAME}" value="{MultiBB.VALUE}" style="width: {MultiBB.WIDTH}px" onClick="{MultiBB.STYLE}" onMouseOver="helpline('{MultiBB.VALUE}')" />
</span></td>
<!-- END MultiBB -->
</tr>
<tr>
<td align="center" colspan="9" width="450">
<table width="450" border="0" cellspacing="0" cellpadding="2">
<tr align="center" valign="middle">
<td><span class="genmed">
<input type="button" class="button" accesskey="n" name="addbbcode18" value="影片" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('n')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="rm" name="addbbcode20" value="RealPlayer" style="width: 80px" onClick="bbstyle(20)" onMouseOver="helpline('rm')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="m" name="addbbcode22" value="Flash" style="width: 50px" onClick="bbstyle(22)" onMouseOver="helpline('m')" />
</span></td>
</tr>
</table>
</td>
</tr>
#
#-----[ OPEN ]-----
#
posting.php
#
#-----[ FIND ]-----
#
代碼: 選擇全部
'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#
#-----[ AFTER, ADD ]-----
#
代碼: 選擇全部
'L_BBCODE_M_HELP' => $lang['bbcode_m_help'],
#
#-----[ OPEN ]-----
#
language/lang_chinese_traditional_taiwan/lang_main.php
#
#-----[ FIND ]-----
# ps. 後面代碼省略\r
代碼: 選擇全部
$lang['bbcode_f_help']
#
#-----[ AFTER, ADD ]-----
#
代碼: 選擇全部
$lang['bbcode_m_help'] = '插入動畫: [flash width=寬度 height=高度]動畫的路徑[/flash]';
#
#-----[ SAVE & CLOSE ]-----
#
#EoM