SMF Support > SMF 2.0.x Support
How to migrate posts from a custom forum to SMF2?
(1/1)
jlressia:
Hi everybody!
At this moment I'm migrating a custom forum (MySQL based) to SMF2.
I'm using SMF2 API for migrate and integrate SMF with a website.
http://www.simplemachines.org/community/index.php?topic=453008.0
The API works great and at this moment I have my SMF forum online and all users was migrated ok to the new forum.
And now, I need migrate the old posts...
I saw the API's function createPost ( http://support.simplemachines.org/function_db/index.php?action=view_function;id=323 )
And I want to use it for migrate the posts from the old forum.
But, I can't find a function to migrate the Replies... (will be great a function like createReply :))
Somebody knows wich is the best way to migrate posts and replies from my old forum?
Regards!
jlressia:
Somebody has any idea about it :( ?
青山 素子:
Replies are still posts, so you'd use createPost, but supply the topic ID so they are associated.
If you want something handy, look at the SMF converters. You'll need to rewrite the mappings, but the converter script itself does all the hard work. You'd just need to write the "mapping file" that directs what database fields in your solution go to the SMF equivalent.
jlressia:
Hi Motoko!
Thanks for put a light in my way!
Converter was the key word. i will take some converter and will try to modify it to get the exportation.
Regards
Navigation
[0] Message Index
Go to full version