1 頁 (共 1 頁)

[外掛]bbcode問題

發表於 : 2004-01-27 18:49
hk1989
http://aaa991166.no-ip.com/phpBB/viewtopic.php?t=2
phpbb2.0.6
為何看不了回覆的文章,還有error:
Parse error: parse error, unexpected '<' in D:\web\Apache2\htdocs\phpBB\includes\bbcode.php(61) : eval()'d code on line 270


請問用其他FI的風格跟subsilver安外掛有什麼不同的地方?

Re: [外掛]bbcode問題

發表於 : 2004-01-27 19:22
吉川拓也
hk1989 寫:http://aaa991166.no-ip.com/phpBB/viewtopic.php?t=2
phpbb2.0.6
為何看不了回覆的文章,還有error:
Parse error: parse error, unexpected '<' in D:\web\Apache2\htdocs\phpBB\includes\bbcode.php(61) : eval()'d code on line 270


請問用其他FI的風格跟subsilver安外掛有什麼不同的地方?
你應該是改錯了 .. 多了 ' 或是少了 ,
把上下10行貼上來看看 ..

發表於 : 2004-01-27 19:33
hk1989
// colours
$text = preg_replace("/\[color=(\#[0-9A-F]{6}|[a-z]+):$uid\]/si", $bbcode_tpl['color_open'], $text);
$text = str_replace("[/color:$uid]", $bbcode_tpl['color_close'], $text);

// size
$text = preg_replace("/\[size=([1-2]?[0-9]):$uid\]/si", $bbcode_tpl['size_open'], $text);
$text = str_replace("[/size:$uid]", $bbcode_tpl['size_close'], $text);

// and for bolding text.
$text = str_replace("[b:$uid]", $bbcode_tpl['b_open'], $text);
$text = str_replace("[/b:$uid]", $bbcode_tpl['b_close'], $text);

// and for underlining text.
$text = str_replace("[u:$uid]", $bbcode_tpl['u_open'], $text);
$text = str_replace("[/u:$uid]", $bbcode_tpl['u_close'], $text);

// and for italicizing text.
$text = str_replace("[i:$uid]", $bbcode_tpl['i_open'], $text);
$text = str_replace("[/i:$uid]", $bbcode_tpl['i_close'], $text);

// Patterns and replacements for URL and email tags..
$patterns = array();
$replacements = array();

// [img]image_url_here[/img] code..
// This one gets first-passed..
$patterns[] = "#\[img:$uid\](.*?)\[/img:$uid\]#si";
$replacements[] = $bbcode_tpl['img'];

// matches a [url]xxxx://www.phpbb.com[/url] code..
$patterns[] = "#\[url\\]([\w]+?://[^ \"

\t<]*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url1'];
270> // http://www.phpbb.com code.. (no xxxx:// prefix).
$patterns[] = "#\[url\]((www|ftp)\.[^ \"

\t<]*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url2'];

// [url=xxxx://www.phpbb.com]phpBB[/url] code..
$patterns[] = "#\+?://[^ \"

\t<]*?)\](.*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url3'];

// [url=http://www.phpbb.com]phpBB
code.. (no xxxx:// prefix).
$patterns[] = "#\[url=((www|ftp)\.[^ \"

\t<]*?)\](.*?)\[/url\]#is";
$replacements[] = $bbcode_tpl['url4'];

// user@domain.tld code..
$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@

發表於 : 2004-01-27 19:37
吉川拓也
你是剛安裝完成都沒做任何外掛修改嘛 ?
因為PO文正常 ! 沒有錯誤呢 ~

發表於 : 2004-01-27 19:40
hk1989
吉川拓也 寫:你是剛安裝完成都沒做任何外掛修改嘛 ?
因為PO文正常 ! 沒有錯誤呢 ~
yes,但我不能看回覆了的文章,help me ,plx.....

發表於 : 2004-01-27 20:41
吉川拓也
hk1989 寫:
吉川拓也 寫:你是剛安裝完成都沒做任何外掛修改嘛 ?
因為PO文正常 ! 沒有錯誤呢 ~
yes,但我不能看回覆了的文章,help me ,plx.....
不能看 ??
可是我瀏覽都很正常呢 ..
除了你 TEST 那篇 ..