{"id":15389098,"url":"https://github.com/splitbrain/unb2flarum","last_synced_at":"2025-10-15T03:27:42.448Z","repository":{"id":136753618,"uuid":"259083559","full_name":"splitbrain/unb2flarum","owner":"splitbrain","description":"Convert a UNB Forum to a Flarum Forum","archived":false,"fork":false,"pushed_at":"2020-04-26T16:50:13.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T20:04:25.306Z","etag":null,"topics":["flarum","unb","unclassified-newsboard"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/splitbrain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-26T16:49:58.000Z","updated_at":"2021-11-26T20:55:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"b5539aa5-9558-4190-b247-5e8d63ae1439","html_url":"https://github.com/splitbrain/unb2flarum","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"6e4eb66f7e9fd5ae0dd3b4b9d9c75060224f041f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitbrain%2Funb2flarum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitbrain%2Funb2flarum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitbrain%2Funb2flarum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splitbrain%2Funb2flarum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splitbrain","download_url":"https://codeload.github.com/splitbrain/unb2flarum/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252914762,"owners_count":21824429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flarum","unb","unclassified-newsboard"],"created_at":"2024-10-01T14:59:27.222Z","updated_at":"2025-10-15T03:27:37.412Z","avatar_url":"https://github.com/splitbrain.png","language":"PHP","readme":"# UNB to Flarum Converter\n\nThis is a script that will import contents of the database of an [Unclasified Newsboard](http://newsboard.unclassified.de/) forum into a [Flarum](https://flarum.org/) database.\n\nThis has been tested with Flarum `0.1.0-beta.12` and UNB `20150713-dev`.\n\n## Features\n\n  * Forums -\u003e Tags\n  * Threads -\u003e Discussions\n  * Posts -\u003e Posts\n  * Users -\u003e Users\n  * Groups -\u003e Groups\n\n## Requirements\n\nYou need to start with a completely empty Flarum database. You should delete the default \"General\" tag before importing.\n\nYour UNB and your Flarum database need to be in the same MySQL/Maria server and you need a database user that can access both databases. This is needed because I run some queries that execute things in both databases at once.\n\nYou need to install and activate the following extensions in Flarum:\n\n  * [Old Passwords](https://discuss.flarum.org/d/8631-old-passwords) to let users login with their old UNB passwords\n  * [User Bio](https://discuss.flarum.org/d/17775-friendsofflarum-user-bio) to let users have a biography field again \n  * [Masquerade](https://discuss.flarum.org/d/5791-masquerade-by-friendsofflarum-the-user-profile-builder) to import additional profile data\n\n## Installation\n\nCheck out this repository, then install the dependencies:\n\n    composer install\n\nCopy the provided `config.php` and edit it for your setup.\n\n    cp config.php myconfig.php\n    vim myconfig.php\n\nThen run the converter\n\n    php unb2flarum.php -c myconfig\n\n## Caveats\n\nThe whole import is executed with a transaction. If something goes wrong, nothing will be committed to your Flarum database. You might want to do a dump of your empty setup beforehand anyway, in case you want to tweak and rerun the import again.\n\nThis currently does not support Polls. There is a poll extension for Flarum, but the feature was so rarely used in my UNB that I simply didn't bother with it.\n\nCategories aka Forums aka Tags can be nested arbitrarily deep in UNB. Flarum treats them more like tags and also allows nesting for two levels only. I assume that you may want to restructure your categorisation for Flarum anyway, so all categories are importet as first level tags. Rearrange them as you see fit.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitbrain%2Funb2flarum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplitbrain%2Funb2flarum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplitbrain%2Funb2flarum/lists"}