BB Code Handling?

mpaler - November 21, 2008 - 04:50
Project:vBulletin to Drupal
Version:5.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi Liam,

Well, I've managed to get my vbulletin forum to import successfully! Yehaw!!

I notice alot of bb code in the posts. eg "this sentence has [b]some bold text in it[/b]."

I would like to convert all that bb code into html.

Can you (or anyone) recommend the best method to do this?

Thanks,
Michael

#1

Liam McDermott - November 21, 2008 - 15:30
Status:active» fixed

Are you wanting to permanently convert the BBCode to HTML, then allow users to enter HTML into their posts; or do you want to keep using BBCode?

We did a permanent conversion to HTML on Webmaster Forums recently, it was a lot easier than I expected (as long as you know some PHP).

You'll need the BBCode module whichever you choose to do. To permanently convert all posts, write a PHP script that goes through each post, runs it through _bbcode_filter_process() and saves the result. That's all I can remember.

#2

System Message - December 5, 2008 - 15:32
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.