Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Changing all BBcode into HTML before migration from phpBB
candyman
✭✭
As you know :P I'm trying to migrate from phpBB to Vanilla2 from months...
Unfortunately, as I need a clean migration without any tricks, routes and so on, I've found some problems quite difficult to solve.
The first is about the translations of internal URLs: but it's another story.
The second is about the possibility to add a rule to the vanilla2exporter to translate al previous posts contents from BBcode (native phpBB markup language) to HTML (native Vanilla2) in order to have the same markup language for all the posts and not a AV (ante Vanilla) era and a PV one...
Someone have managed to to this?
For example I have to change
into
and
and so on...
Are there any companies out there which can do the job for me?
Thanks in advance.
Unfortunately, as I need a clean migration without any tricks, routes and so on, I've found some problems quite difficult to solve.
The first is about the translations of internal URLs: but it's another story.
The second is about the possibility to add a rule to the vanilla2exporter to translate al previous posts contents from BBcode (native phpBB markup language) to HTML (native Vanilla2) in order to have the same markup language for all the posts and not a AV (ante Vanilla) era and a PV one...
Someone have managed to to this?
For example I have to change
[b]text[/b]
into
<b>text</b>
and
[url]address[/url]
<a href="http://www.mysite.it">address</a>
and so on...
Are there any companies out there which can do the job for me?
Thanks in advance.
Tagged:
0
Best Answer
-
Todd Vanilla StaffYour forum will format all new posts according to the following configuration setting:
$Configuration['Garden']['InputFormatter'] = 'BBCode'; // Use Html, BBCode, Markdown, etc.
0
Answers
grep is your friend.
I'm just asking if someone has solved this in the past.
It would be a nice plus for the Porter too.
I don't like to have half forum posts formatted with BBcode and half with HTML.
Try to think to another migration in the future: issues will be for sure.
This is possible, but porters are supposed to port. Parsing is a different matter. It carries an overhead. I mean if you have load of record it is a waste of time.
Sure it is possible. Is it worth it?
Candy conversion always has some pitfalls, precisely becuase forum software is not the same. If it was the same there would be no reason to switch. These are a lot of old threads. New content will dominate.
if your users love bbcode, then perhaps you should stick with bbcode. Otherwise they won't miss it.
If you really want to try and convert I could maybe help you out for money, obviously I would need the file, but I will respect privacy of your users.
grep is your friend.
Unfortunately I need this.
I've found the parser: I didn't know about it.
This, added to the Porter, should work according to you? I though about HTML 'cause it seems to be the standard for the ultimate generation forums software but even BBcode should be OK. But can I force Vanilla and the Button Bar plugin to markup with BBcode? The goal is simple: the same standard of text formatting for all the posts (pre and post migration). I keep this in mind.
to be honest I only need some test data, I could probably rustle some up. It is a question of if you want to execute the conversion yourself.
grep is your friend.
Maybe it's better to have a look at the bbcode used in the posts.
I remember somethink like this...
[b][i][size=24]Ciao![/size][/i][/b]
and that...
[quote="candyman, in [url=http://mysite.it/forum/post]another thread[/url]"quoted post[/quote]
Anyway the 80% are bold and italic issues, very simple, the rest are URLs.
You sponsor me the code will be released open source.
grep is your friend.
Anyway I prefer ask my community about to migrate from BBcode to HTML.
I noticed that Spoilers Plugin uses a style like bbcode
is it possible to force Vanilla to use BBcode? I think that the Button Bar could be converted too, couldn't it?
Anyway the URLs conversion is needed.
I'l try by myself after upgrading to PHP5 and then I'll contact you.
Thanks in advance.
grep is your friend.
The imported post formatted with BBcode are correctly displayed.
The brand new post written with BBcode are not correctly displayed (they need HTML).
I can't explain this to me.
They should not work too before I change the configuration that you provide me...
grep is your friend.
I try to explain better.
I've installed Vanilla2 without changin' anything: so the InputFormatter is the default HTML.
Despite this, the imported posts from an old phpBB2 forum (with default BBcode format) are displayed correctly.
If I post new post using BBcode, these are not correctly displayed.
I expect this but I don't understand why the imported ones (in BBcode format too) are correctly displayed?!?
Maybe every post "reminds" is original markup language and Vanilla2 understand this?
So, and we return to the title how his thread, waht happens if I change all the post from BBcode to HTML (with a parser) befeore importing them in Vanilla2?
Will them correctly displayed despite them were originally formatted with BBcode?
Thanks in advance.
it is not really hard to detect bbcode anyway.
grep is your friend.
grep is your friend.