Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Nick Wilson on
Hi,
Im aware (i think..) that the bbcode from my 4.5 install (several thousand posts) would not be parsed unless i had the bbcode module in place in 4.6, but it's not available yet for 4.6 and i'd like to upgrade.
Can anyone suggest a workaround? I have all this unparsed bbcode being spit out on the pages and really need to convert it to html i guess...
thanks for any help!
Nick
Comments
Update the module yourself?
The filter system did not change functionally between 4.5 and 4.6. You could try updating the module yourself.
See the module upgrading guide.
--
If you have a problem, please search before posting a question.
I can certainly have a look,
I can certainly have a look, but im surprised that more people aren't in this position...?
BBCode is not very popular in Drupal
BBCode is not a popular format in Drupal... it is mostly used by those who come from existing BBcode-using systems.
In Drupal, we prefer to use HTML: the syntax is not significantly more complicated than BBcode, and it is a standard which more people are familiar with. Those who wish to save their users the trouble of tags, can use WYSIWYG editors or bars which insert tags for you. Or they can use a simpler markup format like Markdown.
--
If you have a problem, please search before posting a question.
Converting
Right. Any ideas on how i might convert the existing entries to html?
That way i could just ditch the bbcode module, maybe a little more work but much better for the future im thinking...
The best part of BBCode module
...is that it obscures email addresses in the code. For that feature alone I enabled it in 4.6 installations. I had to juggle its order amongst the filters, but it works at least that much. I've not tried it with actual BB code, though. Yet sometimes modules don't need to change from Drupal version to version.
===
Laura
pingV
_____ ____ ___ __ _ _
Laura Scott :: design » blog » tweet
Yeah, i was just coming to
Yeah, i was just coming to post that Laura! You have to change the filter so that it parses the bbcode first, rather than after the html...
I guess the only good way of doing a fix on all bbcode in the db would be to do a small module (just so it included all the right scripts etc) to go through each entry in the db and use whatever function it is that converts it to html on each bit...
I'll most likely work on that, but not right now :)
Personally I can't get HTML
Personally I can't get HTML and BBCode to function together regardless of how I order them.
I know that the line breaks bit has to come before BBCode but HTML and BBCode don't work.
That said, I am converting straight from 4.4.2 to 4.6.3 and under 4.4.2 I can tell you that HTML never really was happy with BBCode.
I don't agree with the earlier comments about HTML. Most sites use BBCode, particularly the most popular forums. Its parsing of URLs is much nicer and it also discourages people from trying HTML that won't work in any case or accidentally leaving spurious HTML kicking around your pages...