mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
More fixes, bbcode size, html script issue
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3145 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -165,7 +165,7 @@ function bbencode_second_pass($text, $uid)
|
||||
$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 = preg_replace("/\[size=([1-2]?[0-9]):$uid\]/si", $bbcode_tpl['size_open'], $text);
|
||||
$text = str_replace("[/size:$uid]", $bbcode_tpl['size_close'], $text);
|
||||
|
||||
// [QUOTE] and [/QUOTE] for posting replies with quote, or just for quoting stuff.
|
||||
@@ -270,7 +270,7 @@ function bbencode_first_pass($text, $uid)
|
||||
$text = preg_replace("#\[color=(\#[0-9A-F]{6}|[a-z\-]+)\](.*?)\[/color\]#si", "[color=\\1:$uid]\\2[/color:$uid]", $text);
|
||||
|
||||
// [size] and [/size] for setting text size
|
||||
$text = preg_replace("#\[size=([\-\+]?[1-2]?[0-9])\](.*?)\[/size\]#si", "[size=\\1:$uid]\\2[/size:$uid]", $text);
|
||||
$text = preg_replace("#\[size=([1-2]?[0-9])\](.*?)\[/size\]#si", "[size=\\1:$uid]\\2[/size:$uid]", $text);
|
||||
|
||||
// [b] and [/b] for bolding text.
|
||||
$text = preg_replace("#\[b\](.*?)\[/b\]#si", "[b:$uid]\\1[/b:$uid]", $text);
|
||||
|
Reference in New Issue
Block a user