Prime Nest BBCodes

Sibilance...check check..sibilance...sibilance
User avatar
webmaster
Site Admin
Site Admin
Posts: 1065
Joined: Jul 24, 2004 10:25pm
Gender: Male
Location: Redding, CA
Contact:

Prime Nest BBCodes

Post by webmaster »

Works on custom BBCodes:
Show
First Spoiler
Show
Second Spoiler
Does not work on default BBCodes:
Red, Blue, and back to Red
Kaoru Hanabishi
Full Metal Otaku
Posts: 313
Joined: Dec 01, 2007 8:46pm
Gender: Male

Re: Prime Nest BBCodes

Post 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
(*Bleach 101 Army*) - Recruit
tartimiel
Visitor

Re: Prime Nest BBCodes

Post 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?
User avatar
webmaster
Site Admin
Site Admin
Posts: 1065
Joined: Jul 24, 2004 10:25pm
Gender: Male
Location: Redding, CA
Contact:

Re: Prime Nest BBCodes

Post by webmaster »

That last parameter it is not required. It just makes it a little bit more efficient is all.
jiu
Visitor

Re: Prime Nest BBCodes

Post by jiu »

strh
Guest
Visitor

Re: Prime Nest BBCodes

Post by Guest »

Prime Nest BBCodes
Anon
Visitor

Re: Prime Nest BBCodes

Post by Anon »

Anonymous wrote:Prime Nest BBCodes
Anonymous wrote:Prime Nest BBCodes
:!: :!: :!: :!: :!: :!: :!: :!: :!: :!:

Test \:D/
marchy
Visitor

Re: Prime Nest BBCodes

Post by marchy »

[hilight=]sdgsdfg[hilight=]sdfgsdfgsdf[/hilight]sdfgsdfgs[/hilight]
tester_tester
Visitor

Re: Prime Nest BBCodes

Post by tester_tester »

cd
Anonymous wrote:[hilight=]sdgsdfg[hilight=]sdfgsdfgsdf[/hilight]sdfgsdfgs[/hilight]
it's test
technosexy
Baka Otaku
Posts: 1
Joined: Dec 25, 2008 6:35am
Gender: Female
Contact:

Re: Prime Nest BBCodes

Post by technosexy »

testing hilight
Guest
Visitor

Re: Prime Nest BBCodes

Post by Guest »

rfff
eededdede
Visitor

Re: Prime Nest BBCodes

Post by eededdede »

Spoiler
Show
sdfdsf
Spoiler
Show
dfsfd
sdfs
test
Visitor

Re: Prime Nest BBCodes

Post by test »

Code: Select all

[code]Nest BBCode testing code
[/code]
dude
Visitor

Re: Prime Nest BBCodes

Post by dude »

test
wydrah
Baka Otaku
Posts: 1
Joined: Mar 26, 2009 1:19pm
Gender: Male

Re: Prime Nest BBCodes

Post 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.
Guest
Visitor

Re: Prime Nest BBCodes

Post by Guest »

Spoiler
Show
algo
Spoiler
Show
fhgfdj
Post Reply