Jump to content

BBCode


Setsumi

Recommended Posts

Posted

Is there any way to convert older BBCode (like [/img]) to HTML such as <img class='ipsImage' src='x'>?

I know this might've been asked million of times, but still... I would rather search for a better answer than modifying the DB itself (my first approach).

Posted

When you post, supported bbcode will be automatically converted. If you post an tag it will be turned into an <img> tag automatically.

If you edit a post that has bbcode, the same happens upon submitting the edits.

Upon upgrading to 4.x from 3.x, bbcodes are automatically converted by background tasks (you can check the progress of those tasks in the AdminCP), so if you just upgraded, you may need to wait a bit for all bbcodes to get updated.

Otherwise - what is your need for this? BBcode should largely be handled transparently and automatically.

Posted
11 hours ago, bfarber said:

Upon upgrading to 4.x from 3.x, bbcodes are automatically converted by background tasks (you can check the progress of those tasks in the AdminCP), so if you just upgraded, you may need to wait a bit for all bbcodes to get updated.

Some posts weren't converted when we upgraded to 4.0 a year ago. For example:image.thumb.png.cb52a1937c380e9d62c3e7bdc07a3866.png

image.thumb.png.fa141bb08782350c026afd43de4aa0f3.png

image.thumb.png.73b5773bd71db41849676e678311d11c.png

Note that those posts come from a PhpBB -> IPB 3.4 conversion, as we've used them back then.

Posted

Hm, if you ran into problems over a year ago, that's going to be challenging to resolve now.

There's no built in way to automatically convert all outstanding bbcode. If you are capable with PHP you could write a script or background task to do this (we have tasks that convert bbcode but you do not want to run these against your entire database or it could cause problems with content that was updated properly). Alternatively, you can edit and resave content that wasn't updated.

In the future I would encourage you to submit a ticket right away if you run into such a problem, as we could have helped had you done so right when the problem emerged. It's a bit more difficult now, since you said you upgraded so long ago.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...