Log in

View Full Version : Externel BBCode Parsing


Tms
02-20-2005, 08:28 PM
Hello,
I was not sure where to ask about this, so I thought this was the best place.

At the moment, A friend and I are developing a "portal"-type system, that displays the 5 most recent posts from the vBulletin, and the 5 most recent announcements. We're retrieving the information directly from the database, and you can see the WIP @ http://www.hostmatrix.org/index3.php.

Anyway, we got the past 5 posts done great, and the announcements came along fine. The only problem is: The announcements aren't BBCode Parsed. I tried numerous attempts with preg_replace, and I looked into the vBulletin sources to try to find how BBCode was parsed, but I had no luck.

So, my question is, How do I parse BBCode from outside vBulletin?

Thanks a bunch,
Tim

Akex
02-20-2005, 08:33 PM
Look at parse_bbcode2 function in functions_bbcodeparse.php :)

Tms
02-20-2005, 09:10 PM
Thanks a bunch, We really appreciate it :D

Works like a charm.

Tim