Setsumi Posted September 26, 2018 Posted September 26, 2018 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).
bfarber Posted September 27, 2018 Posted September 27, 2018 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.
Setsumi Posted September 28, 2018 Author Posted September 28, 2018 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: Note that those posts come from a PhpBB -> IPB 3.4 conversion, as we've used them back then.
bfarber Posted September 28, 2018 Posted September 28, 2018 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.