Page 1 of 2

Prime Nest BBCodes

Posted: Feb 14, 2008 10:25am
by webmaster
Works on custom BBCodes:
Show
First Spoiler
Show
Second Spoiler
Does not work on default BBCodes:
Red, Blue, and back to Red

Re: Prime Nest BBCodes

Posted: Feb 23, 2008 4:23am
by Kaoru Hanabishi
nesting code is so useful hehe though I hate it when things get too lengthy :/

kool stuff ken, keep up the good XD

Re: Prime Nest BBCodes

Posted: Jun 26, 2008 3:56pm
by tartimiel
I have a problem with this:

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());
					}
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?

Re: Prime Nest BBCodes

Posted: Jun 26, 2008 5:08pm
by webmaster
That last parameter it is not required. It just makes it a little bit more efficient is all.

Re: Prime Nest BBCodes

Posted: Jul 26, 2008 6:38am
by jiu
strh

Re: Prime Nest BBCodes

Posted: Nov 04, 2008 6:47am
by Guest
Prime Nest BBCodes

Re: Prime Nest BBCodes

Posted: Nov 21, 2008 9:25pm
by Anon
Anonymous wrote:Prime Nest BBCodes
Anonymous wrote:Prime Nest BBCodes
:!: :!: :!: :!: :!: :!: :!: :!: :!: :!:

Test \:D/

Re: Prime Nest BBCodes

Posted: Dec 09, 2008 11:55pm
by marchy
[hilight=]sdgsdfg[hilight=]sdfgsdfgsdf[/hilight]sdfgsdfgs[/hilight]

Re: Prime Nest BBCodes

Posted: Dec 17, 2008 12:13am
by tester_tester
cd
Anonymous wrote:[hilight=]sdgsdfg[hilight=]sdfgsdfgsdf[/hilight]sdfgsdfgs[/hilight]
it's test

Re: Prime Nest BBCodes

Posted: Dec 25, 2008 6:46am
by technosexy
testing hilight

Re: Prime Nest BBCodes

Posted: Jan 09, 2009 11:17am
by Guest
rfff

Re: Prime Nest BBCodes

Posted: Jan 09, 2009 11:18am
by eededdede
Spoiler
Show
sdfdsf
Spoiler
Show
dfsfd
sdfs

Re: Prime Nest BBCodes

Posted: Jan 23, 2009 4:31pm
by test

Code: Select all

[code]Nest BBCode testing code
[/code]

Re: Prime Nest BBCodes

Posted: Jan 26, 2009 7:01am
by dude
test

Re: Prime Nest BBCodes

Posted: Mar 26, 2009 1:24pm
by wydrah
webmaster wrote:That last parameter it is not required. It just makes it a little bit more efficient is all.
tester_tester wrote:cd
Anonymous wrote:[hilight=]sdgsdfg[hilight=]sdfgsdfgsdf[/hilight]sdfgsdfgs[/hilight]
it's test
technosexy wrote:testing hilight
dude wrote:test
Just testing the multiquote.

Re: Prime Nest BBCodes

Posted: Sep 04, 2009 9:56pm
by Guest
Spoiler
Show
algo
Spoiler
Show
fhgfdj