Added [quote=Name] bbcode support.
This commit is contained in:
parent
3a07973ffa
commit
10e66d293d
1 changed files with 7 additions and 1 deletions
|
@ -198,6 +198,12 @@ upper-alpha;">$2</ul>' ,$Text);
|
||||||
// Check for [quote] text
|
// Check for [quote] text
|
||||||
$Text = preg_replace("/\[quote\](.*?)\[\/quote\]/ism","$QuoteLayout", $Text);
|
$Text = preg_replace("/\[quote\](.*?)\[\/quote\]/ism","$QuoteLayout", $Text);
|
||||||
|
|
||||||
|
// Check for [quote=Author] text
|
||||||
|
$t_wrote = t("wrote");
|
||||||
|
$Text = preg_replace("/\[quote=[\"\']*(.*?)[\"\']*\](.*?)\[\/quote\]/ism",
|
||||||
|
"<blockquote><strong>$1 wrote:</strong> $2</blockquote>",
|
||||||
|
$Text);
|
||||||
|
|
||||||
// [img=widthxheight]image source[/img]
|
// [img=widthxheight]image source[/img]
|
||||||
$Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '<img src="$3" style="height: $2px; width: $1px;" >', $Text);
|
$Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/ism", '<img src="$3" style="height: $2px; width: $1px;" >', $Text);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue