[問題]iframe的bbcode問題..

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

頭像
Apache
星球公民
星球公民
文章: 149
註冊時間: 2002-09-08 04:18

[問題]iframe的bbcode問題..

文章 Apache »

我參考GeniusKiKi大大的做法...
參考頁...
http://phpbb-tw.net/phpbb/viewtopic.php?t=20839

那還要在修改哪邊..
才能在 "發表主題-->文章內容的上面出現iframe的bbcode按鈕"

原本在"URL的bbcode按鈕下方"有一郭關閉標籤...要修改哪邊..才能跟最後一郭bbcode按鈕對齊?

麻煩各位大大指導一下...3Q... :oops:
●架設主機作業系統:2000 Advance Server
●快速架站程式:Appserv 2.3.0
●phpBB2版本:phpBB 2.0.8a
●風格版本:FIsubice
GeniusKiKi
竹貓忠實會員
竹貓忠實會員
文章: 1086
註冊時間: 2003-10-28 14:50

文章 GeniusKiKi »

等我晚一點回去用自己電腦再告訴你~ XD
或者看有沒有人先告訴你囉

你可以先到我的論壇測試版觀摩看看排按鈕的技巧
再也不當爛好人...
好人是小白轉型成大白的墊腳石...
頭像
Apache
星球公民
星球公民
文章: 149
註冊時間: 2002-09-08 04:18

文章 Apache »

GeniusKiKi 寫:等我晚一點回去用自己電腦再告訴你~ XD
或者看有沒有人先告訴你囉

你可以先到我的論壇測試版觀摩看看排按鈕的技巧
了解...先去看一下...
麻煩你嚕...大大... :oops:
●架設主機作業系統:2000 Advance Server
●快速架站程式:Appserv 2.3.0
●phpBB2版本:phpBB 2.0.8a
●風格版本:FIsubice
竹貓忠實會員
竹貓忠實會員
文章: 1058
註冊時間: 2003-05-15 00:30
來自: Game.Hack-遊戲駭客
聯繫:

文章 »

網址!風格問題我或許幫得上忙
有事問問題,沒事答問題。
廣告不是這樣打滴!遊戲駭客
頭像
Apache
星球公民
星球公民
文章: 149
註冊時間: 2002-09-08 04:18

文章 Apache »

3q...
各位大大真是熱心幫忙呀..cc

我剛試過...下面這一段...

代碼: 選擇全部

#-----[ OPEN ]------------------------------------------ 
# 

templates/YOUR_TEMPLATE_NAME/posting_body.tpl 

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

f_help = "{L_BBCODE_F_HELP}"; 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

n_help = "{L_BBCODE_N_HELP}"; 

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

bbtags = new Array( 

# 
#-----[ IN-LINE FIND ]------------------------------------------ 
# 

[/url] 

# 
#-----[ IN-LINE AFTER, ADD ]------------------------------------------ 
# 

,'[iframe width= heigth=]','[/iframe]' 

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

<td><span class="genmed"> 
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" /> 
</span></td> 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

<td><span class="genmed"> 
<input type="button" class="button" accesskey="n" name="addbbcode22" value="iframe" style="width: 40px" onClick="bbstyle(22)" onMouseOver="helpline('n')" /> 
</span></td> 

# 
#-----[ SAVE ]------------------------------------------ 
# 
# 
# 
#-----[ OPEN ]------------------------------------------ 
# 

posting.php 

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

'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

'L_BBCODE_N_HELP' => $lang['bbcode_n_help'], 

# 
#-----[ SAVE ]------------------------------------------ 
# 
# 
# 
#-----[ OPEN ]------------------------------------------ 
# 

languages/lang_xxx/lang_main.php 

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

$lang['bbcode_f_help'] = "字型大小: [size=x-small]small text[/size]"; 

# 
#-----[ AFTER, ADD ]------------------------------------------ 
# 

$lang['bbcode_n_help'] = "插入框架: [iframe width= heigth=]http://URL[/iframe] (alt+n)";  

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM
改完後 iframe 的bbcode鈕有出現...
可是按下去後..
出現 undefined(沒有定義) 的字樣...
那是哪裡還沒改到...
請各位大大幫忙...3q
●架設主機作業系統:2000 Advance Server
●快速架站程式:Appserv 2.3.0
●phpBB2版本:phpBB 2.0.8a
●風格版本:FIsubice
messagebox
竹貓忠實會員
竹貓忠實會員
文章: 981
註冊時間: 2003-02-24 23:34

文章 messagebox »

#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#

,'[iframe width= heigth=]','[/iframe]'

要注意這個~
他是寫陣列的第22個資料~
請確定'[iframe width= heigth=]'是在bbtags = new Array這個陣列的第22個~
從0開始數~''(第0個),''(第1個)
因為這個~onClick="bbstyle(22)"
如果不是在第22個~~請把onclick改成"bbstyle(正確的)"
頭像
Apache
星球公民
星球公民
文章: 149
註冊時間: 2002-09-08 04:18

文章 Apache »

messagebox 寫:#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#

,'[iframe width= heigth=]','[/iframe]'

要注意這個~
他是寫陣列的第22個資料~
請確定'[iframe width= heigth=]'是在bbtags = new Array這個陣列的第22個~
從0開始數~''(第0個),''(第1個)
因為這個~onClick="bbstyle(22)"
如果不是在第22個~~請把onclick改成"bbstyle(正確的)"
YA..大大..3q呀...我弄好了..就是這郭位置不對...

在問一下...
原本bbcode鈕的下方有一行關閉標籤...
那現在要怎麼跟最後一郭的bbcode鈕切齊?
還有發言的框框也要切齊..
●架設主機作業系統:2000 Advance Server
●快速架站程式:Appserv 2.3.0
●phpBB2版本:phpBB 2.0.8a
●風格版本:FIsubice
messagebox
竹貓忠實會員
竹貓忠實會員
文章: 981
註冊時間: 2003-02-24 23:34

文章 messagebox »

上下的儲存格合併表格要各加1~
你看可不可以把你的連結張貼出來~
比較好解釋~
頭像
Apache
星球公民
星球公民
文章: 149
註冊時間: 2002-09-08 04:18

文章 Apache »

代碼: 選擇全部

<td class="row2" valign="top"><span class="gen"> <span class="genmed"> </span> 
		<table width="450" border="0" cellspacing="0" cellpadding="2">
		  <tr align="center" valign="middle"> 
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px" onClick="bbstyle(0)" onMouseOver="helpline('b')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px" onClick="bbstyle(2)" onMouseOver="helpline('i')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px" onClick="bbstyle(4)" onMouseOver="helpline('u')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onClick="bbstyle(6)" onMouseOver="helpline('q')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onClick="bbstyle(8)" onMouseOver="helpline('c')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onClick="bbstyle(10)" onMouseOver="helpline('l')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onClick="bbstyle(12)" onMouseOver="helpline('o')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="p" name="addbbcode14" value="Img" style="width: 40px"  onClick="bbstyle(14)" onMouseOver="helpline('p')" />
			  </span></td>
			<td><span class="genmed"> 
			  <input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
			  </span></td>
                                                <td><span class="genmed"> 
                                                  <input type="button" class="button" accesskey="n" name="addbbcode22" value="iframe" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('n')" /> 
                                                  </span></td>
		  </tr>
		  <tr> 
			<td colspan="9"> 
			  <table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr> 
				  <td><span class="genmed">  {L_FONT_COLOR}: 
					<select name="addbbcode18" onChange="bbfontstyle('[color=' + this.form.addbbcode18.options[this.form.addbbcode18.selectedIndex].value + ']', '[/color]');this.selectedIndex=0;" onMouseOver="helpline('s')">
					  <option style="color:black; background-color: {T_TD_COLOR1}" value="{T_FONTCOLOR1}" class="genmed">{L_COLOR_DEFAULT}</option>
					  <option style="color:darkred; background-color: {T_TD_COLOR1}" value="darkred" class="genmed">{L_COLOR_DARK_RED}</option>
					  <option style="color:red; background-color: {T_TD_COLOR1}" value="red" class="genmed">{L_COLOR_RED}</option>
					  <option style="color:orange; background-color: {T_TD_COLOR1}" value="orange" class="genmed">{L_COLOR_ORANGE}</option>
					  <option style="color:brown; background-color: {T_TD_COLOR1}" value="brown" class="genmed">{L_COLOR_BROWN}</option>
					  <option style="color:yellow; background-color: {T_TD_COLOR1}" value="yellow" class="genmed">{L_COLOR_YELLOW}</option>
					  <option style="color:green; background-color: {T_TD_COLOR1}" value="green" class="genmed">{L_COLOR_GREEN}</option>
					  <option style="color:olive; background-color: {T_TD_COLOR1}" value="olive" class="genmed">{L_COLOR_OLIVE}</option>
					  <option style="color:cyan; background-color: {T_TD_COLOR1}" value="cyan" class="genmed">{L_COLOR_CYAN}</option>
					  <option style="color:blue; background-color: {T_TD_COLOR1}" value="blue" class="genmed">{L_COLOR_BLUE}</option>
					  <option style="color:darkblue; background-color: {T_TD_COLOR1}" value="darkblue" class="genmed">{L_COLOR_DARK_BLUE}</option>
					  <option style="color:indigo; background-color: {T_TD_COLOR1}" value="indigo" class="genmed">{L_COLOR_INDIGO}</option>
					  <option style="color:violet; background-color: {T_TD_COLOR1}" value="violet" class="genmed">{L_COLOR_VIOLET}</option>
					  <option style="color:white; background-color: {T_TD_COLOR1}" value="white" class="genmed">{L_COLOR_WHITE}</option>
					  <option style="color:black; background-color: {T_TD_COLOR1}" value="black" class="genmed">{L_COLOR_BLACK}</option>
					</select>  {L_FONT_SIZE}:<select name="addbbcode20" onChange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]')" onMouseOver="helpline('f')">
					  <option value="7" class="genmed">{L_FONT_TINY}</option>
					  <option value="9" class="genmed">{L_FONT_SMALL}</option>
					  <option value="12" selected class="genmed">{L_FONT_NORMAL}</option>
					  <option value="18" class="genmed">{L_FONT_LARGE}</option>
					  <option  value="24" class="genmed">{L_FONT_HUGE}</option>
					</select>
					</span></td>
				  <td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td>
				</tr>
			  </table>
			</td>
		  </tr>
		  <tr> 
			<td colspan="9"> <span class="gensmall"> 
			  <input type="text" name="helpbox" size="45" maxlength="100" style="width:450px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" />
			  </span></td>
		  </tr>
		  <tr> 
			<td colspan="9"><span class="gen"> 
			  <textarea name="message" rows="15" cols="35" wrap="virtual" style="width:450px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea>
			  </span></td>
		  </tr>
		</table>
		</span></td>
	</tr>
	<tr> 
	  <td class="row1" valign="top"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
	  <td class="row2"><span class="gen"> </span> 
		<table cellspacing="0" cellpadding="1" border="0">
		  <!-- BEGIN switch_html_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
			</td>
			<td><span class="gen">{L_DISABLE_HTML}</span></td>
		  </tr>
		  <!-- END switch_html_checkbox -->
		  <!-- BEGIN switch_bbcode_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="disable_bbcode" {S_BBCODE_CHECKED} />
			</td>
			<td><span class="gen">{L_DISABLE_BBCODE}</span></td>
		  </tr>
		  <!-- END switch_bbcode_checkbox -->
		  <!-- BEGIN switch_smilies_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} />
			</td>
			<td><span class="gen">{L_DISABLE_SMILIES}</span></td>
		  </tr>
		  <!-- END switch_smilies_checkbox -->
		  <!-- BEGIN switch_signature_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} />
			</td>
			<td><span class="gen">{L_ATTACH_SIGNATURE}</span></td>
		  </tr>
		  <!-- END switch_signature_checkbox -->
		  <!-- BEGIN switch_notify_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="notify" {S_NOTIFY_CHECKED} />
			</td>
			<td><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
		  </tr>
		  <!-- END switch_notify_checkbox -->
		  <!-- BEGIN switch_delete_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="delete" />
			</td>
			<td><span class="gen">{L_DELETE_POST}</span></td>
		  </tr>
		  <!-- END switch_delete_checkbox -->
		  <!-- BEGIN switch_type_toggle -->
		  <tr> 
			<td></td>
			<td><span class="gen">{S_TYPE_TOGGLE}</span></td>
		  </tr>
		  <!-- END switch_type_toggle -->
		</table>
	  </td>
	</tr>
	{POLLBOX} 
	<tr> 
	  <td class="catBottom" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" /></td>
	</tr>
  </table>

  <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
	<tr> 
	  <td align="right" valign="top"><span class="gensmall">{S_TIMEZONE}</span></td>
	</tr>
  </table>
</form>

<table width="100%" cellspacing="2" border="0" align="center">
\n  <tr> 
	<td valign="top" align="right">{JUMPBOX}</td>
  </tr>
</table>

{TOPIC_REVIEW_BOX}
●架設主機作業系統:2000 Advance Server
●快速架站程式:Appserv 2.3.0
●phpBB2版本:phpBB 2.0.8a
●風格版本:FIsubice
messagebox
竹貓忠實會員
竹貓忠實會員
文章: 981
註冊時間: 2003-02-24 23:34

文章 messagebox »

你的表格有點亂~~
給你一個建議~
將那一段字拉到網頁編輯軟體上看~~
你就可以知道了~

邊改邊測試~~比較準~~

基本上是<td colspan="9">的要改成<td colspan="10">
但我發現你整個格式都亂掉了~
所以你最好是先備份~
自己邊改~(去網頁編輯軟體改)~
表格太花了~~看的有點花~
頭像
Apache
星球公民
星球公民
文章: 149
註冊時間: 2002-09-08 04:18

文章 Apache »

messagebox 寫:你的表格有點亂~~
給你一個建議~
將那一段字拉到網頁編輯軟體上看~~
你就可以知道了~

邊改邊測試~~比較準~~

基本上是<td colspan="9">的要改成<td colspan="10">
但我發現你整個格式都亂掉了~
所以你最好是先備份~
自己邊改~(去網頁編輯軟體改)~
表格太花了~~看的有點花~
了解...我先試試...
●架設主機作業系統:2000 Advance Server
●快速架站程式:Appserv 2.3.0
●phpBB2版本:phpBB 2.0.8a
●風格版本:FIsubice
NOFX
星球公民
星球公民
文章: 61
註冊時間: 2003-07-18 12:53
來自: MARS

文章 NOFX »

hi!!!!....... :-D Apache:

代碼: 選擇全部

open templates/your template/posting_body.tpl --------------------

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

// Define the bbCode tags
bbcode = new Array();
bbtags = new Array('.........[color=#ff004c]'[img]','[/img]','[url]','[/url]'); [/color]
imageTag = false;

# 
#-----[RPLACE WITH]------------------------------------------ 
#


 [color=#ff004c]'[img]','[/img]','[url]','[/url]','[iframe]','[/iframe]');[/color]


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

<td><span class="genmed"> 
<input type="button" class="button" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" onmouseover="helpline('w')" />
</span></td>


# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

<td><span class="genmed"> 
<input type="button" class="button" accesskey="n" name="addbbcode18" value="iframe" style="text-decoration: underline; width: 40px" onclick="bbstyle(18)" onmouseover="helpline('n')" />
</span></td>


# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM  
Testing!!!!.................................... ;-)
GeniusKiKi
竹貓忠實會員
竹貓忠實會員
文章: 1086
註冊時間: 2003-10-28 14:50

文章 GeniusKiKi »

我的方法是\r
那邊不要割成十格\r
直接合併成一格顯示\r
然後按鈕跟按鈕之間的距離\r
再用空白字元來區隔
這樣以後要再新增按鈕也比較簡單
再也不當爛好人...
好人是小白轉型成大白的墊腳石...
GeniusKiKi
竹貓忠實會員
竹貓忠實會員
文章: 1086
註冊時間: 2003-10-28 14:50

文章 GeniusKiKi »

以下語法僅供參考
另外有些部分語法太長\r
我把他給刪除了
請只參考表格畫法
不要直接取代\r

代碼: 選擇全部

		<table width="525" border="0" cellspacing="0" cellpadding="2">
		  <tr valign="middle"> 
			<td colSpan=2 nowrap="nowarp"><span class="genmed"> 
			  <input type="button" class="button" accesskey="q" name="addbbcode6" value="引言" style="width: 42px" onClick="bbstyle(6)" onMouseOver="helpline('q')" />
			  <input type="button" class="button" accesskey="c" name="addbbcode8" value="代碼" style="width: 42px" onClick="bbstyle(8)" onMouseOver="helpline('c')" />
			  <input type="button" class="button" accesskey="l" name="addbbcode10" value="列表" style="width: 42px" onClick="bbstyle(10)" onMouseOver="helpline('l')" />
			  <input type="button" class="button" accesskey="o" name="addbbcode12" value="排序" style="width: 42px" onClick="bbstyle(12)" onMouseOver="helpline('o')" />
			  <input type="button" class="button" accesskey="p" name="addbbcode14" value="圖片" style="width: 42px"  onClick="bbstyle(14)" onMouseOver="helpline('p')" />
			  <input type="button" class="button" accesskey="w" name="addbbcode16" value="連結" style="text-decoration: underline; width: 42px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
			  <input type="button" class="button" accesskey="d" name="addbbcode18" value="Ed2k" style="text-decoration: underline; width: 42px" onClick="bbstyle(18)" onMouseOver="helpline('d')" />
			  <input type="button" class="button" accesskey="n" name="addbbcode20" value="框架" style="width: 42px" onClick="bbstyle(20)" onMouseOver="helpline('n')" /> 
			  <input type="button" class="button" accesskey="m" name="addbbcode22" value="WMP" style="width: 42px" onClick="bbstyle(22)" onMouseOver="helpline('m')" /> 
			  <input type="button" class="button" accesskey="rm" name="addbbcode24" value="RMP" style="width: 42px" onClick="bbstyle(24)" onMouseOver="helpline('rm')" /> 
			  <input type="button" class="button" accesskey="h" name="addbbcode26" value="Flash" style="width: 42px" onClick="bbstyle(26)" onMouseOver="helpline('h')" />			</span></td>
		  </tr>
		  <tr valign="middle"> 
			<td colSpan=2 nowrap="nowarp"><span class="genmed"> 
			  <input type="button" class="button" accesskey="b" name="addbbcode0" value="粗體" style="font-weight:bold; width: 42px" onClick="bbstyle(0)" onMouseOver="helpline('b')" />
			  <input type="button" class="button" accesskey="i" name="addbbcode2" value="斜體" style="font-style:italic; width: 42px" onClick="bbstyle(2)" onMouseOver="helpline('i')" />
			  <input type="button" class="button" accesskey="u" name="addbbcode4" value="底線" style="text-decoration: underline; width: 42px" onClick="bbstyle(4)" onMouseOver="helpline('u')" />
			  <input type="button" class="button" accesskey="k2" name="addbbcode36" value="刪除" style="width: 42px" onClick="bbstyle(36)" onMouseOver="helpline('k2')" /> 
			  <input type="button" class="button" accesskey="r" name="addbbcode28" value="模糊" style="width: 42px" onClick="bbstyle(28)" onMouseOver="helpline('r')" />
			  <input type="button" class="button" accesskey="e" name="addbbcode30" value="漸層" style="width: 42px" onClick="bbstyle(30)" onMouseOver="helpline('e')" />
			  <input type="button" class="button" accesskey="j" name="addbbcode32" value="顛倒" style="width: 42px" onClick="bbstyle(32)" onMouseOver="helpline('j')" />
			  <input type="button" class="button" accesskey="v" name="addbbcode34" value="翻轉" style="width: 42px" onClick="bbstyle(34)" onMouseOver="helpline('v')" />
			  <input type="button" class="button" accesskey="s3" name="addbbcode38" value="波浪" style="width: 42px" onClick="bbstyle(38)" onMouseOver="helpline('s3')" />
			  <input type="button" class="button" accesskey="k" name="addbbcode40" value="捲動" style="width: 42px" onClick="bbstyle(40)" onMouseOver="helpline('k')" />
			  <input type="button" class="button" accesskey="y" name="addbbcode42" value="置中" style="width: 42px" onClick="bbstyle(42)" onMouseOver="helpline('y')" />
			</span></td>
		  </tr>
		  <tr> 
			<td colSpan=2> 

			</td>
		  </tr>
		  <tr> 
			<td> <span class="gensmall"> 
			  <input type="text" name="helpbox" size="45" maxlength="100" style="width:455px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" />
			  </span></td>
			<td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td>
		  </tr>
		  <tr> 
			<td colSpan=2><span class="gen"> 
			  <textarea name="message" rows="15" cols="35" wrap="virtual" style="width:515px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea>
			  </span><br><INPUT TYPE="button" VALUE="{L_CHAR_BUTTOM}" onClick="countit(this)">
			  <script language="JavaScript" type="text/javascript"> 
			  <!-- 
			  if ((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)) { 
			  document.write('<INPUT type="button" class="button" value="複製文章內容到剪貼簿" onClick="copymetasearch();">'); 
			  } else { 
			  document.write('<INPUT type="button" class="button" value="HIGHLIGHT TEXT" onClick="highlightmetasearch();">'); 
			  } 
			  // --> 
			  </script>
			</td>
		  </tr>
		</table>
		</span></td>
	</tr>
	<tr> 
	  <td class="row1" valign="top"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
	  <td class="row2"><span class="gen"> </span> 
		<table cellspacing="0" cellpadding="1" border="0">
		  <!-- BEGIN switch_html_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
			</td>
			<td><span class="gen">{L_DISABLE_HTML}</span></td>
		  </tr>
		  <!-- END switch_html_checkbox -->
		  <!-- BEGIN switch_bbcode_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="disable_bbcode" {S_BBCODE_CHECKED} />
			</td>
			<td><span class="gen">{L_DISABLE_BBCODE}</span></td>
		  </tr>
		  <!-- END switch_bbcode_checkbox -->
		  <!-- BEGIN switch_smilies_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} />
			</td>
			<td><span class="gen">{L_DISABLE_SMILIES}</span></td>
		  </tr>
		  <!-- END switch_smilies_checkbox -->
		  <!-- BEGIN switch_signature_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} />
			</td>
			<td><span class="gen">{L_ATTACH_SIGNATURE}</span></td>
		  </tr>
		  <!-- END switch_signature_checkbox -->
		  <!-- BEGIN switch_notify_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="notify" {S_NOTIFY_CHECKED} />
			</td>
			<td><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
		  </tr>
		  <!-- END switch_notify_checkbox -->
		  <!-- BEGIN switch_delete_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="delete" />
			</td>
			<td><span class="gen">{L_DELETE_POST}</span></td>
		  </tr>
		  <!-- END switch_delete_checkbox -->
		  <!-- BEGIN switch_type_toggle -->
		  <tr> 
			<td></td>
			<td><span class="gen">{S_TYPE_TOGGLE}</span></td>
		  </tr>
		  <!-- END switch_type_toggle -->
		</table>
	  </td>
	</tr>
	{ATTACHBOX}
	{POLLBOX} 
	<tr> 
	  <td class="catBottom" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" /></td>
	</tr>
  </table>
再也不當爛好人...
好人是小白轉型成大白的墊腳石...
頭像
Apache
星球公民
星球公民
文章: 149
註冊時間: 2002-09-08 04:18

文章 Apache »

GeniusKiKi 寫:以下語法僅供參考
另外有些部分語法太長\r
我把他給刪除了
請只參考表格畫法
不要直接取代\r

代碼: 選擇全部

		<table width="525" border="0" cellspacing="0" cellpadding="2">
		  <tr valign="middle"> 
			<td colSpan=2 nowrap="nowarp"><span class="genmed"> 
			  <input type="button" class="button" accesskey="q" name="addbbcode6" value="引言" style="width: 42px" onClick="bbstyle(6)" onMouseOver="helpline('q')" />
			  <input type="button" class="button" accesskey="c" name="addbbcode8" value="代碼" style="width: 42px" onClick="bbstyle(8)" onMouseOver="helpline('c')" />
			  <input type="button" class="button" accesskey="l" name="addbbcode10" value="列表" style="width: 42px" onClick="bbstyle(10)" onMouseOver="helpline('l')" />
			  <input type="button" class="button" accesskey="o" name="addbbcode12" value="排序" style="width: 42px" onClick="bbstyle(12)" onMouseOver="helpline('o')" />
			  <input type="button" class="button" accesskey="p" name="addbbcode14" value="圖片" style="width: 42px"  onClick="bbstyle(14)" onMouseOver="helpline('p')" />
			  <input type="button" class="button" accesskey="w" name="addbbcode16" value="連結" style="text-decoration: underline; width: 42px" onClick="bbstyle(16)" onMouseOver="helpline('w')" />
			  <input type="button" class="button" accesskey="d" name="addbbcode18" value="Ed2k" style="text-decoration: underline; width: 42px" onClick="bbstyle(18)" onMouseOver="helpline('d')" />
			  <input type="button" class="button" accesskey="n" name="addbbcode20" value="框架" style="width: 42px" onClick="bbstyle(20)" onMouseOver="helpline('n')" /> 
			  <input type="button" class="button" accesskey="m" name="addbbcode22" value="WMP" style="width: 42px" onClick="bbstyle(22)" onMouseOver="helpline('m')" /> 
			  <input type="button" class="button" accesskey="rm" name="addbbcode24" value="RMP" style="width: 42px" onClick="bbstyle(24)" onMouseOver="helpline('rm')" /> 
			  <input type="button" class="button" accesskey="h" name="addbbcode26" value="Flash" style="width: 42px" onClick="bbstyle(26)" onMouseOver="helpline('h')" />			</span></td>
		  </tr>
		  <tr valign="middle"> 
			<td colSpan=2 nowrap="nowarp"><span class="genmed"> 
			  <input type="button" class="button" accesskey="b" name="addbbcode0" value="粗體" style="font-weight:bold; width: 42px" onClick="bbstyle(0)" onMouseOver="helpline('b')" />
			  <input type="button" class="button" accesskey="i" name="addbbcode2" value="斜體" style="font-style:italic; width: 42px" onClick="bbstyle(2)" onMouseOver="helpline('i')" />
			  <input type="button" class="button" accesskey="u" name="addbbcode4" value="底線" style="text-decoration: underline; width: 42px" onClick="bbstyle(4)" onMouseOver="helpline('u')" />
			  <input type="button" class="button" accesskey="k2" name="addbbcode36" value="刪除" style="width: 42px" onClick="bbstyle(36)" onMouseOver="helpline('k2')" /> 
			  <input type="button" class="button" accesskey="r" name="addbbcode28" value="模糊" style="width: 42px" onClick="bbstyle(28)" onMouseOver="helpline('r')" />
			  <input type="button" class="button" accesskey="e" name="addbbcode30" value="漸層" style="width: 42px" onClick="bbstyle(30)" onMouseOver="helpline('e')" />
			  <input type="button" class="button" accesskey="j" name="addbbcode32" value="顛倒" style="width: 42px" onClick="bbstyle(32)" onMouseOver="helpline('j')" />
			  <input type="button" class="button" accesskey="v" name="addbbcode34" value="翻轉" style="width: 42px" onClick="bbstyle(34)" onMouseOver="helpline('v')" />
			  <input type="button" class="button" accesskey="s3" name="addbbcode38" value="波浪" style="width: 42px" onClick="bbstyle(38)" onMouseOver="helpline('s3')" />
			  <input type="button" class="button" accesskey="k" name="addbbcode40" value="捲動" style="width: 42px" onClick="bbstyle(40)" onMouseOver="helpline('k')" />
			  <input type="button" class="button" accesskey="y" name="addbbcode42" value="置中" style="width: 42px" onClick="bbstyle(42)" onMouseOver="helpline('y')" />
			</span></td>
		  </tr>
		  <tr> 
			<td colSpan=2> 

			</td>
		  </tr>
		  <tr> 
			<td> <span class="gensmall"> 
			  <input type="text" name="helpbox" size="45" maxlength="100" style="width:455px; font-size:10px" class="helpline" value="{L_STYLES_TIP}" />
			  </span></td>
			<td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td>
		  </tr>
		  <tr> 
			<td colSpan=2><span class="gen"> 
			  <textarea name="message" rows="15" cols="35" wrap="virtual" style="width:515px" tabindex="3" class="post" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);">{MESSAGE}</textarea>
			  </span><br><INPUT TYPE="button" VALUE="{L_CHAR_BUTTOM}" onClick="countit(this)">
			  <script language="JavaScript" type="text/javascript"> 
			  <!-- 
			  if ((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)) { 
			  document.write('<INPUT type="button" class="button" value="複製文章內容到剪貼簿" onClick="copymetasearch();">'); 
			  } else { 
			  document.write('<INPUT type="button" class="button" value="HIGHLIGHT TEXT" onClick="highlightmetasearch();">'); 
			  } 
			  // --> 
			  </script>
			</td>
		  </tr>
		</table>
		</span></td>
	</tr>
	<tr> 
	  <td class="row1" valign="top"><span class="gen"><b>{L_OPTIONS}</b></span><br /><span class="gensmall">{HTML_STATUS}<br />{BBCODE_STATUS}<br />{SMILIES_STATUS}</span></td>
	  <td class="row2"><span class="gen"> </span> 
		<table cellspacing="0" cellpadding="1" border="0">
		  <!-- BEGIN switch_html_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="disable_html" {S_HTML_CHECKED} />
			</td>
			<td><span class="gen">{L_DISABLE_HTML}</span></td>
		  </tr>
		  <!-- END switch_html_checkbox -->
		  <!-- BEGIN switch_bbcode_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="disable_bbcode" {S_BBCODE_CHECKED} />
			</td>
			<td><span class="gen">{L_DISABLE_BBCODE}</span></td>
		  </tr>
		  <!-- END switch_bbcode_checkbox -->
		  <!-- BEGIN switch_smilies_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="disable_smilies" {S_SMILIES_CHECKED} />
			</td>
			<td><span class="gen">{L_DISABLE_SMILIES}</span></td>
		  </tr>
		  <!-- END switch_smilies_checkbox -->
		  <!-- BEGIN switch_signature_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="attach_sig" {S_SIGNATURE_CHECKED} />
			</td>
			<td><span class="gen">{L_ATTACH_SIGNATURE}</span></td>
		  </tr>
		  <!-- END switch_signature_checkbox -->
		  <!-- BEGIN switch_notify_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="notify" {S_NOTIFY_CHECKED} />
			</td>
			<td><span class="gen">{L_NOTIFY_ON_REPLY}</span></td>
		  </tr>
		  <!-- END switch_notify_checkbox -->
		  <!-- BEGIN switch_delete_checkbox -->
		  <tr> 
			<td> 
			  <input type="checkbox" name="delete" />
			</td>
			<td><span class="gen">{L_DELETE_POST}</span></td>
		  </tr>
		  <!-- END switch_delete_checkbox -->
		  <!-- BEGIN switch_type_toggle -->
		  <tr> 
			<td></td>
			<td><span class="gen">{S_TYPE_TOGGLE}</span></td>
		  </tr>
		  <!-- END switch_type_toggle -->
		</table>
	  </td>
	</tr>
	{ATTACHBOX}
	{POLLBOX} 
	<tr> 
	  <td class="catBottom" colspan="2" align="center" height="28"> {S_HIDDEN_FORM_FIELDS}<input type="submit" tabindex="5" name="preview" class="mainoption" value="{L_PREVIEW}" /> <input type="submit" accesskey="s" tabindex="6" name="post" class="mainoption" value="{L_SUBMIT}" /></td>
	</tr>
  </table>

了解...等我回到家在來試..
3q各位大大... ;-)
●架設主機作業系統:2000 Advance Server
●快速架站程式:Appserv 2.3.0
●phpBB2版本:phpBB 2.0.8a
●風格版本:FIsubice
主題已鎖定

回到「外掛問題討論」