mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-04-30 20:01:00 +08:00
This extends the **MyLittleForum (MLF) importer** with several optional features to make migrations more complete and reliable. ### New Features (optional via environment variables) **Uploads import**: supports attachments and images from the MLF uploads table. - Imported uploads are stored with relative links, ensuring they continue to work even if the forum domain changes. - **Legacy link rewriting**: absolute links (`index.php?id=...`) are converted into working Discourse permalinks. - Rewritten links are also created as relative links, so they remain valid after a domain move. - **Parent category option**: all imported MLF categories can be placed under a chosen existing category. - **Upload repair pass / incremental imports:** already-imported posts can be rescanned to fix broken or newly available upload references, allowing the importer to be run again later with a more up-to-date dataset. - **Relaxed upload constraints**: temporarily increases file size limits and allows all extensions during the import step. ### Other Improvements - Adjusted for MyLittleForum 2.x schema changes (e.g. `user_location` instead of `user_place`). - User import now respects already staged users; avoids errors that would otherwise occur when trying to create them again. - Improved BBCode → Markdown conversion: lists and quotes are converted more reliably. - Especially improves handling of quotes at the beginning of posts and ensures following text is not mistakenly included in the quoted block. - Thread interlinking restored: legacy links between threads are now rewritten to point to the correct Discourse topics. ### Environment Variables - `PARENT_CATEGORY` – import all categories under an existing Discourse category. - `REWRITE_LINKS` – rewrite absolute legacy links. - `UPLOADS_DIR` – path to the MLF uploads directory (flat namespace). - `REPAIR_UPLOAD_LINKS` – repair pass for already-imported posts with links. - `LOOSEN_UPLOAD_CONSTRAINTS` – relax upload size/extension checks during import and increases file size limits and allows all extensions during the import step. |
||
|---|---|---|
| .. | ||
| base | ||
| mbox | ||
| nodebb | ||
| phpbb3 | ||
| quandora | ||
| settings | ||
| socialcast | ||
| support | ||
| answerbase.rb | ||
| answerhub.rb | ||
| askbot.rb | ||
| base.rb | ||
| bbpress.rb | ||
| bespoke_1.rb | ||
| csv_importer.rb | ||
| csv_restore_staged_users.rb | ||
| discuz_x.rb | ||
| disqus.rb | ||
| drupal-6.rb | ||
| drupal.rb | ||
| drupal_json.rb | ||
| drupal_qa.rb | ||
| elgg.rb | ||
| flarum_import.rb | ||
| fluxbb.rb | ||
| friendsmegplus.rb | ||
| fusionforge.rb | ||
| getsatisfaction.rb | ||
| google_groups.rb | ||
| higher_logic.rb | ||
| ipboard.rb | ||
| ipboard3.rb | ||
| jforum.rb | ||
| jive.rb | ||
| jive_api.rb | ||
| json_generic.rb | ||
| kunena.rb | ||
| kunena3.rb | ||
| lithium.rb | ||
| mbox.rb | ||
| modx.rb | ||
| muut.rb | ||
| mybb.rb | ||
| mybbru.rb | ||
| mylittleforum.rb | ||
| nabble.rb | ||
| ning.rb | ||
| phorum.rb | ||
| phpbb3.rb | ||
| punbb.rb | ||
| question2answer.rb | ||
| sfn.rb | ||
| simplepress.rb | ||
| slack.rb | ||
| smf1.rb | ||
| smf2.rb | ||
| sourceforge.rb | ||
| stack_overflow.rb | ||
| telligent.rb | ||
| vanilla.rb | ||
| vanilla_body_parser.rb | ||
| vanilla_mysql.rb | ||
| vbulletin.rb | ||
| vbulletin3.rb | ||
| vbulletin5.rb | ||
| xenforo.rb | ||
| yahoogroup.rb | ||
| yammer.rb | ||
| zendesk.rb | ||
| zendesk_api.rb | ||
| zoho.rb | ||