MichaelBelgium / mybb_to_flarum

A Flarum extension to convert a mybb forum to a fresh flarum install
MIT License
26 stars 15 forks source link

Migrate attachments #21

Closed Javier-Rotelli closed 2 years ago

Javier-Rotelli commented 3 years ago

pretty much self explanatory. I don't know flarum's structure, but mybb's easy enough. I can work on this. if I can I'll try to make a PR somewhere during this weekend.

MichaelBelgium commented 3 years ago

But Flarum doesn't support attachments out of the box right? This is the same principle like private messages. Gotta chose an extension for it and check if the forum has it installed

Javier-Rotelli commented 3 years ago

well then, that makes it a little harder, but I figure we can create two modules: 1) imports data from mybb and returns it in some standard format 2)takes that data, and inserts it into a specific extension. we can start by adding compatibility to https://extiverse.com/extension/fof/upload since it's the most used. and leave the door open for future integrations.

what do you think?

MichaelBelgium commented 2 years ago

I've taken a look to fof/upload but it seems thats more like a "global upload" system and not per discussion? As mybb does have attachments linked to threads/posts. If i use fof/upload the mybb attachments would randomly be on the file system without any links to it - although it would be linked to the user only, not discussions/threads

EDIT: actually no, seems fof/upload does also have a link to discussions, i'll just try it out and see