1 頁 (共 1 頁)

[問題]安裝flashbbcode發生的問題,討論區無法觀看

發表於 : 2004-06-15 14:36
wadakushi
●架設主機作業系統:win2000pro
●快速架站程式:Appserv (版本:1.8.0)
●您的上網方式:Hinet adsl
●您的 phpBB2 版本:phpBB2.0.6
●錯誤代碼:


想裝可以發表影片的code,所以爬文按照指示裝了
Multiple BBCode MOD 1.21a版 +flash_mod_206_qbb
然後,進入討論區就出現下面錯誤訊息\r
我想是紅字的部分出了大問題...因為其他以下的錯誤訊息都是跟他有關聯的..
煩請幫我解答..我實在找不出哪錯? :oops:
這是我的網址
麻煩您了
------------------第二次修改\r
我找出了對應原始碼\r
Parse error: parse error, unexpected T_VARIABLE in c:\appserv\www\phpbb\includes\bbcode.php on line 301
是這行
$text = preg_replace("#\[flash width=([0-6]?[0-9]?[0-9]) height=([0-4]?[0-9]?[0-9])\](([a-z]+?)://([^,

]+))\[\/flash\]#si","[flash width=\\\1 height=\\\2 loop=false:$uid\]\\\3[/flash:$uid]", $text);


Fatal error: Call to undefined function: bbencode_second_pass_code() in c:\appserv\www\phpbb\includes\bbcode.php on line 156
是這行
$text = bbencode_second_pass_code($text, $uid, $bbcode_tpl);
請大家幫忙了,我真的找不出來:((
--------------------------------------------第三次修改----
有勞藍天大幫我看看...感激不盡(我在附上的bbcode.php的原始碼上標綠色)..上下五行

發表於 : 2004-06-15 20:13
.::藍色的天空::.
呃, 貼上上下5行給我看看

發表於 : 2004-06-15 20:16
.::藍色的天空::.
呃, 貼上上下5行給我看看

發表於 : 2004-06-15 20:17
.::藍色的天空::.
呃, 貼上上下5行給我看看

發表於 : 2004-06-15 20:18
.::藍色的天空::.
呃, 貼上上下5行給我看看

發表於 : 2004-06-15 20:19
.::藍色的天空::.
呃, 貼上上下5行給我看看

Re: [問題]安裝flashbbcode發生的問題,討論區無法觀看

發表於 : 2004-06-15 21:30
wadakushi
156行的錯誤 原始碼\r

代碼: 選擇全部

// load templates from file into array.
		$bbcode_tpl = load_bbcode_template();

		// prepare array for use in regexps.
		$bbcode_tpl = prepare_bbcode_template($bbcode_tpl);
	}

	// [code] and 
for posting code (HTML, PHP, C etc etc) in your posts.
$text = bbencode_second_pass_code($text, $uid, $bbcode_tpl);

// [quote] and [/quote] for posting replies with quote, or just for quoting stuff.
$text = str_replace("[quote:$uid]", $bbcode_tpl['quote_open'], $text);
$text = str_replace("[/quote:$uid]", $bbcode_tpl['quote_close'], $text);[/code]

301行的錯誤 原始碼\r

代碼: 選擇全部

// [img]image_url_here[/img] code..
	$text = preg_replace("#\[img\]((ht|f)tp://)
	//Begin Flash Mod for 2.0.6
	//[flash width= heigth= loop=] and[ /flash ]
	$text = preg_replace("#\[flash width=([0-6]?[0-9]?[0-9]) height=([0-4]?[0-9]?[0-9]) loop=(true|false)\](([a-z]+?)://([^, 

]+))\[\/flash\]#si","[flash width=\\\1 height=\\\2 loop=\\\3:$uid\]\\\4[/flash:$uid]", $text); 
$text = preg_replace("#\[flash width=([0-6]?[0-9]?[0-9]) height=([0-4]?[0-9]?[0-9])\](([a-z]+?)://([^, 

]+))\[\/flash\]#si","[flash width=\\\1 height=\\\2 loop=false:$uid\]\\\3[/flash:$uid]", $text); 
$text = preg_replace("#\[flash\](([a-z]+?)://([^, 

]+))\[\/flash\]#si","[flash:$uid\]\\\1[/flash:$uid]", $text); 
	//End Flash Mod for 2.0.6

	([^
\t<\"]*?)\[/img\]#sie", "'[img:$uid]\\\1' . str_replace(' ', '%20', '\\\3') . '[/img:$uid]'", $text);
			
	// Remove our padding from the string..
	return substr($text, 1);;

} // bbencode_first_pass()
有勞藍天大大了..........我修了三個多小時...沒輒

發表於 : 2004-06-15 21:43
.::藍色的天空::.

代碼: 選擇全部

// [img]image_url_here[/img] code.. 
$text = preg_replace("#\[img\]((ht|f)tp://) 
//Begin Flash Mod for 2.0.6 
//[flash width= heigth= loop=] and[ /flash ] 
$text = preg_replace("#\[flash width=([0-6]?[0-9]?[0-9]) height=([0-4]?[0-9]?[0-9]) loop=(true|false)\](([a-z]+?)://([^, 

]+))\[\/flash\]#si","[flash width=\\\1 height=\\\\2 loop=\\\3:$uid\]\\\4[/flash:$uid]", $text); 
$text = preg_replace("#\[flash width=([0-6]?[0-9]?[0-9]) height=([0-4]?[0-9]?[0-9])\](([a-z]+?)://([^, 

]+))\[\/flash\]#si","[flash width=\\\1 height=\\\2 loop=false:$uid\]\\\3[/flash:$uid]", $text); 
$text = preg_replace("#\[flash\](([a-z]+?)://([^, 

]+))\[\/flash\]#si","[flash:$uid\]\\\1[/flash:$uid]", $text); 
//End Flash Mod for 2.0.6 

([^
\t<\"]*?)\[/img\]#sie", "'[img:$uid]\\\1' . str_replace(' ', '%20', '\\\3') . '[/img:$uid]'", $text); 
明顯改錯了~

代碼: 選擇全部

// [img]image_url_here[/img] code..
$text = preg_replace("#\[img\]((ht|f)tp://)([^ \?&=\"

\t<]*?(\.(jpg|jpeg|gif|png)))\[/img\]#sie", "'[img:$uid]\\\1' . str_replace(' ', '%20', '\\\3') . '[/img:$uid]'", $text);

//Begin Flash Mod for 2.0.6 
//[flash width= heigth= loop=] and[ /flash ] 
$text = preg_replace("#\[flash width=([0-6]?[0-9]?[0-9]) height=([0-4]?[0-9]?[0-9]) loop=(true|false)\](([a-z]+?)://([^, 

]+))\[\/flash\]#si","[flash width=\\\1 height=\\\2 loop=\\\3:$uid\]\\\4[/flash:$uid]", $text); 
$text = preg_replace("#\[flash width=([0-6]?[0-9]?[0-9]) height=([0-4]?[0-9]?[0-9])\](([a-z]+?)://([^, 

]+))\[\/flash\]#si","[flash width=\\\1 height=\\\2 loop=false:$uid\]\\\3[/flash:$uid]", $text); 
$text = preg_replace("#\[flash\](([a-z]+?)://([^, 

]+))\[\/flash\]#si","[flash:$uid\]\\\1[/flash:$uid]", $text); 
//End Flash Mod for 2.0.6 
應該是這樣。

Re: [問題]安裝flashbbcode發生的問題,討論區無法觀看

發表於 : 2004-06-15 21:44
wadakushi

發表於 : 2004-06-15 21:59
wadakushi
感謝藍天大..........好..好..好..好..了(發出虛弱顫抖的喜悅聲)..

真的十分感激!! :cry: