Greetings folks,
I'm trying to make some sense out of the bbimport_phpbb2.php importer that I downloaded tonight from the vbulletin download.net.
After translating my database from YaBB to phpBB2, I ran the importer and wound up with a bunch of wacko italic, bold & image tags. They had all been adulterated from
[img ]whatever[ /img] and [ b]whatever[/ b]
^sorry I had to add the spaces to get it to display
to fun stuff like this
[img

BCB1231233]whatever[/img

BCB1231233]
and interestingly, there was a section of code commented out of of the convertor in the function bbcode($text, $uid=0)
just, following the comment "BB CODE IS TOUGH":
Quote:
/*$text = eregi_replace("[/b:[a-zA-Z0-9]]", "[/b]", $text);
$text = eregi_replace("[i:[a-zA-Z0-9]]", "[/i]", $text);
$text = eregi_replace("[/i:[a-zA-Z0-9]]", "[/i]", $text);
$text = eregi_replace("[u:[a-zA-Z0-9]]", "", $text);
$text = eregi_replace("[/u:[a-zA-Z0-9]]", "", $text);
*/
|
Which would, apparently to my novice PHP eyes, possibly have fixed that wacko bit.
Two questions, please
1) Does anyone know where that stuff is coming from, because it doesn't show in the phpBB code. It looks clean in phpBB and displays properly.
2) Does anyone know why that section of the code (that apparently would clean it up) has been commented OUT?
Regards,
Matt