From 0130052b2cfde6ca888506807c1b5e7e61209151 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 3 Nov 2011 21:30:01 -0700 Subject: [PATCH] bbcode lists --- include/bbcode.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/bbcode.php b/include/bbcode.php index 4d6eafafa5..8c565add6c 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -95,6 +95,10 @@ function bbcode($Text,$preserve_nl = false) { $Text = preg_replace("(\[size=(.*?)\](.*?)\[\/size\])ism","$2",$Text); // Check for list text + + if(stristr($Text,'[/list]')) + $Text = str_replace("[*]", "
  • ", $Text); + $Text = preg_replace("/\[list\](.*?)\[\/list\]/ism", '' ,$Text); $Text = preg_replace("/\[list=1\](.*?)\[\/list\]/ism", '' ,$Text); $Text = preg_replace("/\[list=i\](.*?)\[\/list\]/sm",'' ,$Text); @@ -111,7 +115,6 @@ function bbcode($Text,$preserve_nl = false) { $Text = preg_replace("/\[table border=0\](.*?)\[\/table\]/sm", '$1
    ' ,$Text); -// $Text = str_replace("[*]", "
  • ", $Text); // Check for font change text $Text = preg_replace("/\[font=(.*?)\](.*?)\[\/font\]/sm","$2",$Text);