PDA

View Full Version : Parsing vbcode


Darren Lewis
05-24-2002, 10:12 AM
What's the difference between using bbcodeparse and bbcodeparse2?

Scott MacVicar
05-24-2002, 10:16 AM
bbcodeparse checks the settings, if images are allowed, html, are smilies being parseda nd is bbcode being allowed.

This is then passed into bbcodeparse2 which does all the replacing based on the information passed in.

Admin
05-24-2002, 10:32 AM
Use bbcodeparse2() if you know exactly what you want to parse and what not.

Darren Lewis
05-24-2002, 12:18 PM
OK, I've seen bbcodeparse2 used like this in some hacks
$string2=bbcodeparse2($string,"1","1","1","1");

I presume that the numbers represent some settings? Are they related to the forum rules?

Forum Rules:
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON

Scott MacVicar
05-24-2002, 02:21 PM
bbcodeparse2($bbcode,$dohtml,$dobbimagecode,$dosmi lies,$dobbcode);