Red, Blue, and back to Red
Prime Nest BBCodes
Prime Nest BBCodes
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
-
- Full Metal Otaku
- Posts: 313
- Joined: Dec 01, 2007 8:46pm
- Gender: Male
Re: Prime Nest BBCodes
nesting code is so useful hehe though I hate it when things get too lengthy :/
kool stuff ken, keep up the good XD
kool stuff ken, keep up the good XD
(*Bleach 101 Army*) - Recruit
-
- Visitor
Re: Prime Nest BBCodes
I have a problem with this:
PHP notices me about a wrong parameter count for function preg_replace. Apparently, it is because the fifth parameter can only be used starting with PHP 5.1.0, and on my hosting server, there is only PHP 4.8.0. So, is this parameter completely useful, or is it possible to make the mod working without it?
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());
}
Re: Prime Nest BBCodes
That last parameter it is not required. It just makes it a little bit more efficient is all.
-
- Visitor
Re: Prime Nest BBCodes
Anonymous wrote:Prime Nest BBCodes
Anonymous wrote:Prime Nest BBCodes
Test
-
- Visitor
Re: Prime Nest BBCodes
[hilight=]sdgsdfg[hilight=]sdfgsdfgsdf[/hilight]sdfgsdfgs[/hilight]
-
- Visitor
Re: Prime Nest BBCodes
cd
it's testAnonymous wrote:[hilight=]sdgsdfg[hilight=]sdfgsdfgsdf[/hilight]sdfgsdfgs[/hilight]
-
- Baka Otaku
- Posts: 1
- Joined: Dec 25, 2008 6:35am
- Gender: Female
Re: Prime Nest BBCodes
testing hilight
Re: Prime Nest BBCodes
webmaster 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