Vanilla port from phpBB 3.2.3 to Vanilla 2.6.1 - broken bbcode
Hello Vanilla community!
I am making this post, because I have ported my community forums from phpBB 3.2.3 into current Vanilla 2.6.1 forums, however upon the transfer all of the bbcode, and even the things that weren't bbcode have been torn out of every post. I will attach an image of how it looks like, because it even contains html tags like <t>
or <br>
which naturally weren't appearing in the original posts.
I've seen an old post about this at https://open.vanillaforums.com/discussion/20956/solved-how-to-fix-broken-urls-broken-bbcode-etc-after-conversion , however the solution was an older custom version of the Vanilla porter, which would most likely not work nowadays.
I would like to get the tags properly converted, or at least the bbcode/html tags completely removed which would leave the posts unformatted and easy to reapply the formatting after. Thank you in advance!
Comments
I have the same issue. Looks like phpbb3 is using this https://s9etextformatter.readthedocs.io/ to format the posts (as per this topic https://www.phpbb.com/community/viewtopic.php?f=556&t=2471276_ . If you look at the database, that's what is in there. I think that porter does not know how to parse that and it would need to be updated to work with the last version of phpbb3.
Here I am crossing fingers that someone will fix this in porter so I can migrate.
I've also posted this as an issue in the Github of the Vanilla porter. As of now this pretty much makes a forum with a bigger number of posts impossible to migrate (as with a smaller amount of posts the bad formatting could probably have been just edited out).
Reference: https://github.com/vanilla/porter/issues/178
@D3w0u I have kinda fixed this by opening the export into notepad++ and using the following regular expression "<.?>|</.?>"
This will find all content between tags and then I deleted those.
I see, it's always some kind of makeshift solution, however this solution completely erases the whole formatting and links contained in an
[url=link]
format. It works, though an approach where the html/bbcode is properly handled and/or converted would be much preferred.Another concern of mine here is if this particular regular expression wouldn't touch more than just the formatting leftovers, because directly editing the exported file might not be optimal.
It would be awesome if there would be some official support regarding this particular porting (from phpBB 3.2.3).
Could you provide an example which has bbcode and html? If you could post what is in the column "Body" and "Format" of the GDN_Comment/GDN_Discussion and maybe the original Body.
Please enclose what you post in 3 "~" signs so that it is shown as code
~~~
[bold]Blah[/bold]
Blubb.
~~~
Oh, and you can test if this plugin solves your problem: https://open.vanillaforums.com/addon/htmlbbcodecompatibility-plugin
Body:
Format:
BBCode
About the addon:
It formats most of the text, however the
<s>
and</s>
become a crossline over the text, meanwhile the original post does not contain it.Also when editing these posts, the whole post is a mess, still containing many of the html tags in, which would be rather complex for a regular user of the forum to see, and more so to edit and operate with.