העבר הודעות פרטיות מ-vBulletin5 ל-Discourse

סיכום מבוסס בינה מלאכותית

The discussion revolves around migrating private messages from vBulletin5 to Discourse. Crius seeks guidance on implementing private message import, referencing an incomplete solution from Canapin, who shares a modified script focusing on the import_pm method. Canapin notes that the logic for identifying private topics may need adjustment, particularly the use of parentid = starter, and advises comparing changes with the official importer. Crius appreciates the help and plans to develop a more generic solution, promising to share it on GitHub after mid-December Crius.

Hi there,

I’ve only found this other thread on the topic: vBulletin 5 import : how to import private messages?

Which, in classic internet fashion, mention a solution but doesn’t really share :smiley:

Is there anyone that can offer some more precise pointers or a stub script? I’m not a ruby developer but have plenty of experience as software engineer. Just need some help to start :slight_smile:

This is the default import script: discourse/script/import_scripts/vbulletin5.rb at main · discourse/discourse · GitHub

Here’s the script modification I made at the time. It’s a mess though, my database was like the creature of Frankenstein, and many lines are commented out from testing stuff, it’s not meant to be used as it is:

Look at def import_pm for the part that interest you.

And don’t forget:

Good luck ! :wink:

Also I strongly suggest you that you compare the content with the official importer so you can see exactly what changed.

Thank you so much @Canapin, much appreciated

I’ve already a couple modification that I’ll have to do on the official import script. I’ll use yours just a guidance on how to add also the pvt messages import :slight_smile:

Glad to help! Could you share your own import private message method when it’s done? I’d be curious to have a look at it, and it could be merged into the official script.

I’ll start working on it from mid-december. When I’m done I’ll publish it on a git if I can keep it “generic” enough :slight_smile: