第 1 頁 (共 2 頁)
[問題]那個Stream BBcode適合
發表於 : 2006-12-21 19:10
由 Paul Li
我已安裝了Multi BBcode 1-4-0c 和 YouTube BBcode 1.0.1
現在我想再裝 Stream BBcode 從而播放影片。
請問那個MOD適用於我..
phpBB版本:2.0.17
Thx in advance
發表於 : 2006-12-21 19:40
由 kkt
裝 bbcode box 一勞永逸, 支援了大部份媒體
bbcode box
http://www.phpbbhacks.com/download/1059
ps. 提示你在未裝有太多外掛前快升級 phpbb 2.021 版本, 不然外掛多了升級很麻煩.
發表於 : 2006-12-21 20:07
由 Paul Li
多謝KKt指敖在下,,,但我覺得這box太肥了..可否只用於streaming video的stream BBcode呢?
thanks
Merry Christmas
發表於 : 2006-12-21 20:47
由 心靈捕手
Paul Li 寫:多謝KKt指敖在下,,,但我覺得這box太肥了..可否只用於streaming video的stream BBcode呢?
thanks
Merry Christmas
建議您:
試裝 Streaming audio BBcode Mod
參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?t=37046
http://www.phpbb.com/phpBB/viewtopic.php?t=34683
發表於 : 2006-12-24 12:26
由 Paul Li
捕手大哥,
多謝你的賜教,,但一開始便觸礁了..發現所指示的與我的檔案資料有異..第一段如下
#-----[ OPEN File includes/bbcode.php]------
#
閣下建議-----[ FIND ]-----
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((ht|f)tp://)([^
\t<\"]*?)\[/img\]#sie", "'[img:$uid]\\\1' . str_replace(' ', '%20', '\\\3') . '[/img:$uid]'", $text);
#----[ AFTER, ADD ]-----------------------------------------
代碼:
// [stream]stream_url_here[/stream] code..
$text = preg_replace("#\[stream\]((ht|f)tp://)([^
\t<\"]*?)\[/stream\]#sie", "'[stream:$uid]\\\1' . str_replace(' ', '%20', '\\\3') . '[/stream:$uid]'", $text);
而我的檔案則顯示..如下
// [img]image_url_here[/img] code..
// This one gets first-passed..
$patterns[] = "#\[img:$uid\]([^?].*?)\[/img:$uid\]#i";
$replacements[] = $bbcode_tpl['img'];
// matches a [url]xxxx://
www.phpbb.com[/url] code..
$patterns[] = "#\[url\]([\w]+?://[\w\#$%&~/.\-;:=,?@\[\]+]*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url1'];
//
http://www.phpbb.com code.. (no xxxx:// prefix).
$patterns[] = "#\[url\]((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url2'];
// [url=xxxx://
www.phpbb.com]phpBB[/url] code..
$patterns[] = "#\
+?://[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url3'];
// [url=http://www.phpbb.com]phpBB code.. (no xxxx:// prefix).
$patterns[] = "#\[url=((www|ftp)\.[\w\#$%&~/.\-;:=,?@\[\]+]*?)\]([^?\n\r\t].*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url4'];
//
user@domain.tld code..
$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
$replacements[] = $bbcode_tpl['email'];
$text = preg_replace($patterns, $replacements, $text);
發表於 : 2006-12-24 12:58
由 心靈捕手
Paul Li 寫:捕手大哥,
多謝你的賜教,,但一開始便觸礁了..發現所指示的與我的檔案資料有異..第一段如下
#-----[ OPEN File includes/bbcode.php]------
#
閣下建議-----[ FIND ]-----
// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((ht|f)tp://)([^
\t<"]*?)\[/img\]#sie", "'[img:$uid]\\\1' . str_replace(' ', '%20', '\\\3') . '[/img:$uid]'", $text);
#----[ AFTER, ADD ]-----------------------------------------
代碼:
// [stream]stream_url_here[/stream] code..
$text = preg_replace("#\[stream\]((ht|f)tp://)([^
\t<"]*?)\[/stream\]#sie", "'[stream:$uid]\\\1' . str_replace(' ', '%20', '\\\3') . '[/stream:$uid]'", $text);
看來您沒有看完整篇討論串?
http://phpbb-tw.net/phpbb/viewtopic.php?p=240764#240764
建議您:
由於 phpBB 版本有異, 您只要尋找底下關鍵字即可.
ps. 出現兩次, 而以第二次位置為準.
代碼: 選擇全部
// [img]image_url_here[/img] code..
發表於 : 2006-12-24 17:58
由 Paul Li
多謝大哥耐心賜教,,
但在下依照原本版本安裝後只顯示到Media的按鈕和收聽到影片的聲音,並無方格顥示畫面..
相信還久某部份未設訂..display box.
發表於 : 2006-12-24 18:48
由 心靈捕手
Paul Li 寫:多謝大哥耐心賜教,,
但在下依照原本版本安裝後只顯示到Media的按鈕和收聽到影片的聲音,並無方格顥示畫面..
相信還久某部份未設訂..display box.
建議您:
可以適當調整寬度 (width) 和高度 (height).
參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?p=249961#249961
發表於 : 2006-12-24 19:51
由 Paul Li
成功了,,,,萬分感謝!
Much appreciation for your kind help & wish you a Merry Christmas.
God bless you.
發表於 : 2006-12-26 12:03
由 Paul Li
捕手大哥,
還有一個小問題尚待解決。安裝了stream audio BBcode後,,發文區的"YouTube"按鈕卻失效了.....
當按下按鈕後,,發文格內會顥示[stream]...Not [youtube]
發表於 : 2006-12-26 12:12
由 ~倉木麻衣~
Paul Li 寫:安裝了stream audio BBcode後,,發文區的"YouTube"按鈕卻失效了.....
當按下按鈕後,,發文格內會顥示[stream]...Not [youtube]
你的問題跟
這篇一樣, 檢查一下你bbcode的編號是不是重複到了
發表於 : 2006-12-26 13:51
由 Paul Li
多謝麻衣的解答...但我的情況是安裝了Youtube 和 Multi_BBcode,18 此數字並無從疊。
請閱我的 posting_body.tpl 內的代碼...
<input type="button" class="button" accesskey="n" name="addbbcode18" value="stream" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('n')" />
</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 -->
發表於 : 2006-12-26 14:43
由 心靈捕手
Paul Li 寫:多謝麻衣的解答...但我的情況是安裝了Youtube 和 Multi_BBcode,18 此數字並無從疊。
請閱我的 posting_body.tpl 內的代碼...
<input type="button" class="button" accesskey="n" name="addbbcode18" value="stream" style="width: 40px" onClick="bbstyle(18)" onMouseOver="helpline('n')" />
</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 -->
造成錯誤的原因是一樣的, 只是解決的方法可能有異.
因為您的 [youtube] 是由 Multi_BBcode 排定
所以您可以試試將 [stream] 調整為 addbbcode
20
代碼: 選擇全部
<input type="button" class="button" accesskey="n" name="addbbcode20" value="stream" style="width: 40px" onClick="bbstyle(20)" onMouseOver="helpline('n')" />
或者, 您必須自行改寫一些程式碼, 來新增 [youtube] BBCode.
參考連結:
http://phpbb-tw.net/phpbb/viewtopic.php?p=226437#226437
發表於 : 2006-12-26 17:39
由 Paul Li
捕手大哥,,
很有趣地當我改了 [stream] 調整為 addbbcode20後.
當按[stream]键時,,文貼Box 就出現 [youtube]
按 [youtube] 者,則出現 [stream]
發表於 : 2006-12-26 18:02
由 心靈捕手
Paul Li 寫:捕手大哥,,
很有趣地當我改了 [stream] 調整為 addbbcode20後.
當按[stream]键時,,文貼Box 就出現 [youtube]
按 [youtube] 者,則出現 [stream]
建議您:
將下列檔案壓縮後, 貼出下載連結.
includes/bbcode.php
templates/subSilver/posting_body.tpl