問題外掛:Youtube Video BBCode
主機系統:智邦付費空間
參考連結:http://www.zhucc.url.tw/phpBB2/
使用版本:phpBB 2.0.21
網站位置:http://www.zhucc.url.tw/phpBB2/
狀況描述:
我依照http://phpbb-tw.net/phpbb/viewtopic.php ... ht=youtube這篇所說的將youtube的功能加入
在發表文章的上面會有
[Quote] 等可以讓人直接點選
我也很正常的將[YouTube]加到裡面
而且目前正常運作中
但是現在的問題是,由於個人架設的論壇是WOW公會版,我也將WOW的物品連結功能也加進去,也就是有使用到[item]這個標籤
http://statue.sayya.org/wowdb/faq.php
在發表文章上面就變成
[YouTube][Item][Find Item]
但是現在不管點[You ... '[url]','
','[item]','[/item]','[youtube]','[/youtube]');[/code]
那個在前面,點框框就會出現那個的標籤
ex
'[item]','[/item]','[youtube]','[/youtube]'
點選[YouTube][Item]都是[Item]的標籤
'[youtube]','[/youtube]','[item]','[/item]'
點選[YouTube][Item]都是[YouTube]的標籤
因為小弟是論壇新手,都是照著文件在改的
不知道能否幫忙看一下是那邊出了問題
另外還有需要PO原始碼的地方我會馬上貼上來,感謝
[問題]關於發表文章上標籤錯亂的問題
版主: 版主管理群
[問題]關於發表文章上標籤錯亂的問題
最後由 zhucc 於 2007-01-19 05:20 編輯,總共編輯了 1 次。
心靈捕手 寫:建議您:
1. 補充說明, 此兩種 BBCode 的安裝先後.
2. 檢視底下檔案的修改; 或者, 將其壓縮後, 貼出下載連結.
includes/bbcode.php
templates/YOUR_THEME/posting_body.tpl
感謝^^
1.我是先安裝wow物品連結的BBCode
然後用EasyMOD安裝Multiple BBCode MOD和YouTube Video BBCode
2.檔案連結http://www.zhucc.url.tw/TEMP/php.rar
再次麻煩了
由於我本身沒有安裝過 [item] 這個 BBCodezhucc 寫:心靈捕手 寫:建議您:
1. 補充說明, 此兩種 BBCode 的安裝先後.
2. 檢視底下檔案的修改; 或者, 將其壓縮後, 貼出下載連結.
includes/bbcode.php
templates/YOUR_THEME/posting_body.tpl
感謝^^
1.我是先安裝wow物品連結的BBCode
然後用EasyMOD安裝Multiple BBCode MOD和YouTube Video BBCode
2.檔案連結http://www.zhucc.url.tw/TEMP/php.rar
再次麻煩了
所以不一定能有效幫您解答.
建議您:
補充說明, 此外掛的參考連結.
以下的修改, 提供您參考:
#
#-----[ OPEN ]-----
#
templates/YOUR_THEME/posting_body.tpl
#
#-----[ 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>
<!-- 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 -->
<td><span class="genmed">
<input type="button" class="button" accesskey="t" name="addbbcode22" value="Item" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('t')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="n" name="addbbcode24" value="Find Item" style="width: 80px" onclick="window.open('./itemstats/search.php', '_itemstats', 'HEIGHT=320,resizable=yes,scrollbars=yes,WIDTH=280');" />
</span></td>
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
<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="t" name="addbbcode18" value="Item" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('t')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="n" name="addbbcode20" value="Find Item" style="width: 80px" onclick="window.open('./itemstats/search.php', '_itemstats', 'HEIGHT=320,resizable=yes,scrollbars=yes,WIDTH=280');" />
</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 -->
#-----[ SAVE & CLOSE ]-----
#
代碼: 選擇全部
<td><span class="genmed">
<input type="button" class="button" accesskey="n" name="addbbcode24" value="Find Item" style="width: 80px" onclick="window.open('./itemstats/search.php', '_itemstats', 'HEIGHT=320,resizable=yes,scrollbars=yes,WIDTH=280');" />
</span></td>建議你,這個button拿掉,這功能一次搜尋14000筆資料對伺服器也造成滿大負擔,這功能用處並不大..
<input type="button" class="button" accesskey="t" name="addbbcode22" value="Item" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('t')" />
紅色部分因該為相同數字才對
我依照兩位的說法修改過後還是沒有解決問題
點選[YouTube]這個標籤時還是出現[Item]的標籤
另外[Item]這標籤資訊如下','
#
#-----[ IN-LINE FIND ]---------------------------------
#
'',''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'[item]','[/item]'
#
#-----[ 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 ]------------------------------------------
#
#Be sure to increase the "addbbcode" numbers by 2 if neccessary..if you already have name="addbbcode18"
#Increase it to name="addbbcode20"
#
<td><span class="genmed">
<input type="button" class="button" accesskey="t" name="addbbcode18" value="Item" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('t')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="n" name="addbbcode20" value="Find Item" style="width: 80px" onclick="window.open('./itemstats/search.php', '_itemstats', 'HEIGHT=320,resizable=yes,scrollbars=yes,WIDTH=280');" />
</span></td>
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
# NOTE: the full line to look for is:
'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_BBCODE_T_HELP' => $lang['bbcode_t_help'],
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
#
$lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['bbcode_t_help'] = '*****SPAM***** item link: [item]item name[/item] (alt+t)';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM[/code]
下面是我修改過的檔案
http://www.zhucc.url.tw/TEMP/php.rar
再麻煩各位了,感謝
點選[YouTube]這個標籤時還是出現[Item]的標籤
另外[Item]這標籤資訊如下
代碼: 選擇全部
##############################################################
## MOD Title: BBcode for Itemstats
## MOD Author: Multiple
## MOD Description: Adds a BBcode button to the posting page for [item][/item]; This is to beinstalled after Itemstats is working.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 1 Minute
## Files To Edit: posting_body.tpl; posting.php; lang_main.php
##
## Included Files: n/a
##############################################################
## 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: Can be installed with Easymod.
##
##
##############################################################
## MOD History:
##
## 2006-08-02 - Initial version - 1.0.0
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
f_help = "{L_BBCODE_F_HELP}";
#
#-----[ AFTER, ADD ]------------------------------------------
#
t_help = "{L_BBCODE_T_HELP}";
#
#-----[ FIND ]---------------------------------
#
#
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','- ',
'
- ','
#
#-----[ IN-LINE FIND ]---------------------------------
#
'',''
#
#-----[ IN-LINE AFTER, ADD ]---------------------------------
#
,'[item]','[/item]'
#
#-----[ 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 ]------------------------------------------
#
#Be sure to increase the "addbbcode" numbers by 2 if neccessary..if you already have name="addbbcode18"
#Increase it to name="addbbcode20"
#
<td><span class="genmed">
<input type="button" class="button" accesskey="t" name="addbbcode18" value="Item" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('t')" />
</span></td>
<td><span class="genmed">
<input type="button" class="button" accesskey="n" name="addbbcode20" value="Find Item" style="width: 80px" onclick="window.open('./itemstats/search.php', '_itemstats', 'HEIGHT=320,resizable=yes,scrollbars=yes,WIDTH=280');" />
</span></td>
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
# NOTE: the full line to look for is:
'L_BBCODE_F_HELP' => $lang['bbcode_f_help'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_BBCODE_T_HELP' => $lang['bbcode_t_help'],
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
#
$lang['bbcode_f_help'] = 'Font size: [size=x-small]small text[/size]';
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['bbcode_t_help'] = '*****SPAM***** item link: [item]item name[/item] (alt+t)';
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM[/code]
下面是我修改過的檔案
http://www.zhucc.url.tw/TEMP/php.rar
再麻煩各位了,感謝
你試者做以下修正因該沒問題
因為你有裝Multiple BBCode MOD
YouTube Video BBCode是支援Multiple BBCode MOD
會取代18的位置
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
','
#
#-----[ REPLACE WITH ]---------------------------------
#
','
#
#-----[ FIND ]------------------------------------------
#
#
#-----[ REPLACE WITH ]---------------------------------
#
因為你有裝Multiple BBCode MOD
YouTube Video BBCode是支援Multiple BBCode MOD
會取代18的位置
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
代碼: 選擇全部
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','- ','
- ','
#
#-----[ REPLACE WITH ]---------------------------------
#
代碼: 選擇全部
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','- ','
- ','
#
#-----[ FIND ]------------------------------------------
#
代碼: 選擇全部
<td><span class="genmed">
<input type="button" class="button" accesskey="t" name="addbbcode18" value="Item" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('t')" />
</span></td>#
#-----[ REPLACE WITH ]---------------------------------
#
代碼: 選擇全部
<td><span class="genmed">
<input type="button" class="button" accesskey="t" name="addbbcode20" value="Item" style="width: 40px" onClick="bbstyle(20)" onMouseOver="helpline('t')" />
</span></td>
最後由 NOFX 於 2007-01-19 17:35 編輯,總共編輯了 1 次。
可以了,感謝NOFX 寫:你試者做以下修正因該沒問題
因為你有裝Multiple BBCode MOD
YouTube Video BBCode是支援Multiple BBCode MOD
會取代18的位置
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/bbcode.tpl
不過你好像打錯檔案了,應該是改posting_body.tpl吧
另外請教的是Multiple BBCode MOD他會從18開始算
那就是爾後我又新增bbcode又支援Multiple BBCode MOD的話
代碼: 選擇全部
name="addbbcode20" value="Item" style="width: 40px" onClick="bbstyle(20)" 代碼: 選擇全部
name="addbbcode22" value="Item" style="width: 40px" onClick="bbstyle(22)"是這樣嗎?
理論上是沒錯!
或許, 您可以再試裝 Flash Mod
參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?p=206739#206739
--
不過, 由於Multiple BBCode MOD, 容易將版面的按鈕拉長,
所以您得自行調整發文介面;
或者, 自行變通新增 BBCode 按鈕.
參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?p=163389#163389
http://phpbb-tw.net/phpbb/viewtopic.php?p=226437#226437



