Prime Nest BBCodes
Posted: Feb 14, 2008 10:25am
Works on custom BBCodes:
Does not work on default BBCodes:
Red, Blue, and back to Red
Show
First Spoiler
Show
Second Spoiler
Red, Blue, and back to Red
A forum for discussion about topics and information found on Absolute Anime.
http://www.absoluteanime.com/forum/
Code: Select all
if ($bbcode_id > NUM_CORE_BBCODES && $max_depth > 0 && sizeof($preg['search']) && strpos(implode('', $preg['search']), '@') === 0)
{
for ($depth_count = 0, $replace_count = null; $depth_count <= $max_depth && $replace_count !== 0; $depth_count++)
{
$message = preg_replace($preg['search'], $preg['replace'], $message, -1, $replace_count);
}
$preg = array('search' => array(), 'replace' => array());
}Anonymous wrote:Prime Nest BBCodes
Anonymous wrote:Prime Nest BBCodes
it's testAnonymous wrote:[hilight=]sdgsdfg[hilight=]sdfgsdfgsdf[/hilight]sdfgsdfgs[/hilight]
Code: Select all
[code]Nest BBCode testing codewebmaster wrote:That last parameter it is not required. It just makes it a little bit more efficient is all.
tester_tester wrote:cdit's testAnonymous wrote:[hilight=]sdgsdfg[hilight=]sdfgsdfgsdf[/hilight]sdfgsdfgs[/hilight]
technosexy wrote:testing hilight
Just testing the multiquote.dude wrote:test