News:

Wondering if this will always be free?  See why free is better.

Main Menu

Migrate to SMF 2.1.4 from a forum thru flat files

Started by did.com, January 17, 2025, 03:31:33 AM

Previous topic - Next topic

did.com

Hello everyone,
I am an administrator of a French forum of Alfa Montreal at a free forum manager that we decided to leave. We chose the hosting solution at OVH and a forum tool and after some tests we found SMF for best solution. I come to the question that arises: We want to recover the few thousand posts on the old forum to integrate them into the new one and create a board archive. I do not have access to the database of the old forum so no automatic migration is possible. On the other hand, I wrote a webcrawling tool to suck up the data. So I have files that contains the topics and the posts, a file of the post authors. How to integrate all that into SMF. Is there somewhere a data model of the database or some documentation to acheive the task? In summary, how to do it?
Thank you for your help
Didier

Doug Heffernan

Quote from: did.com on January 17, 2025, 03:31:33 AMI do not have access to the database of the old forum so no automatic migration is possible.

If you don't have access to the database then that's not possible I am afraid.

vbgamer45

No built in tool. You would have to write a script. To create topics/posts SMF has a function to do this.
I have an example in this PHP code using tab/csv file
https://www.simplemachines.org/community/index.php?topic=555200.msg3935911#msg3935911
Community Suite for SMF - Grow your forum with SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com - Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Driven2

Quote from: Doug Heffernan on January 17, 2025, 08:08:06 AM
Quote from: did.com on January 17, 2025, 03:31:33 AMI do not have access to the database of the old forum so no automatic migration is possible.

If you don't have access to the database then that's not possible I am afraid.

It's possible. I've written tools over the years which crawl free forums that don't offer a database dump. Proboards is one example. The crawl is used to recreate the forums, threads, posts and attachments.

The user records are created from the publicly displayed information. The user records are incomplete, missing a password and email address, so the passwords are set to random. Old users visiting the new forum would verify their old account information, which the admin would look up at the old forum.

Once they verified that, the admin would update the new user record's email, and the user could then use the password reset function.

did.com

Thank you for the answers  and the valuable informations! I have enough infos now in order to write a Java program to do the task (I'm not aware of php...)
Didier

Advertisement: