Has anyone hacked together an import script from Socialengine to Discourse? I’d hate to reinvent the wheel here.
It doesn’t look like it. Can you get a database dump from them? If so, you can use one of the existing importers as a model. (See discourse/script/import_scripts at main · discourse/discourse · GitHub)
Yea, I didnt find anything either. Should be easy enough to import users and forums. I think forums/topics/posts become categories and their posts, and the users should just come across. I pull nightly backups from my site. I can load it into pgadmin and export out a CSV of the tables.
Most importers pull from an sql database. Most use mysql, but there may be a couple that use postgres. You definitely want to avoid csv.
Riporto in vita questo thread, ma finalmente sono riuscito a farlo funzionare e a importare il mio forum SocialEngine su Discourse.
Ci è voluto un notevole sforzo di hacking e codice brutto, ma ha funzionato. Circa 4800 utenti e circa 390k post. Ho importato i post in blocchi perché il DB di origine andava in timeout dopo un po’. Ci sono state molte elaborazioni post-importazione, ma nel complesso i membri sembrano felici.
Potrei ripulire un po’ il codice e pubblicarlo come punto di partenza “Puoi iniziare qui, quasi garantito che non funzioni perfettamente”.
Come minacciato, ho ripulito il codice (rimosso tutti i miei tag FIXME, HACK, ecc. e l’output di debug pp), ho messo insieme un README veloce e l’ho caricato su Gitlab.
Il codice è brutto, fatto di fretta e ha funzionato per me. Non pretendo che funzioni per nessun altro. Siete stati avvisati.