PDA

View Full Version : Replace code for vB code


Pulsorock
12-07-2001, 02:15 PM
Hello,
I'm developing an external php script for admin purposes. It will display the contents of the calendar_events table. And I'm looking for the replace strings used for the vB code. Because if the event description has vB code, I want it to display the replaced code and not the vB code.

Thanks

Admin
12-07-2001, 02:22 PM
Use the bbcodeparse() or bbcodeparse2() functions from vBulletin.

Pulsorock
12-07-2001, 02:46 PM
How can I use them if I'm coding an external script?

Admin
12-07-2001, 02:53 PM
Copy them from vBulletin's functions.php...?

It's ok as long as you don't distribute it.

Pulsorock
12-07-2001, 03:21 PM
What lines exactly do I need to copy to use that funtions?

Admin
12-07-2001, 04:40 PM
Copy both bbcodeparse() and bbcodeparse2() functions from functions.php.
I don't have the exact lines as my file is very hacked. Sorry.