Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Better BB Code
Better BB Code
0
Comments
On this site Better BBCode Extension
Can we get this updated please? Any chance of getting the ReadMe.txt put in the extension directory as well? Shooting myself in the foot here...
Give me permission to and I'll do it! Hehe :P
I've changed some parts of the BBCodeParser.php for our own forum to fix some problems with lists and to be able to parse upper case BBCode. Maybe you want to add some of my changes...
Here is the diff:
231d230 < 248,251c247,250 < $pattern = array( "!".$oe."\*".$ce."(.*)!i", < "!".$oe."list".$ce."(.+)".$oe."/list".$ce."!isU"); < $replace = array( $o."li".$c."\\1".$o."/li".$c, < $o."ulist".$c."\\1".$o."/ulist".$c); --- > $pattern = array( "!".$oe."\*".$ce."([^".$oe."]*)!i" ); > //"!".$oe."list".$ce."(.+)".$oe."/list".$ce."!isU"); > $replace = array( $o."li".$c."\\1".$o."/li".$c); > //$o."ulist".$c."\\1".$o."/ulist".$c); 363c362 < $tag['tag'] = substr($str, 2, strlen($str) - 3); --- > $tag['tag'] = strtolower( substr($str, 2, strlen($str) - 3) ); 384c383 < $tag['tag'] = $tagArray[1]; --- > $tag['tag'] = strtolower( $tagArray[1] ); 393,394c392,393 < if ( (in_array($attribute[1], array_keys($this->_definedTags[$tag['tag']]['attributes'])) == true) ) { < $tag['attributes'][$attribute[1]] = $attribute[2]; --- > if ( (in_array(strtolower($attribute[1]), array_keys($this->_definedTags[$tag['tag']]['attributes'])) == true) ) { > $tag['attributes'][strtolower($attribute[1])] = $attribute[2];