vanilla数据库转换为flarum的工具

该工具来自于Github,尚未测试,能用上的自行测试,下面直接搬运原版内容,无任何修改:

工具地址:https://github.com/sdebacker/vanilla_to_flarum

Vanilla to Flarum database converter

 

Convert the database of Vanilla Forum to Flarum.

Currently you can import users, groups, discussions, posts and tags.

There are some more work to be done :

  • When importing the groups, we loose the possibility to manage the forum settings
  • After inserting posts, the columns last_post_id and participant_count should be updated.
  • The misc.php importer is not working yet, it should be adapted to Vanilla forums.
  • The format (HTML, BB, Markdown) of the messages have to be correctly converted.
  • The internal links in the posts have to be converted.
  • The Following discussions could be transfered.
  • Keep the mark as read status

This script is an adaptation of some parts of https://github.com/mondediefr/fluxbb_to_flarum.

Usage

 

  • Download this repository to a folder accessible by a navigator.
  • Enter this repository and run the command composer install.
  • Duplicate and rename .env.example to .env and fill it.
  • Open your browser and navigate to this importer.

下面是chatgpt的中文翻译:

Vanilla → Flarum 数据库转换器

Vanilla Forum 的数据库转换并导入到 Flarum

目前可以导入以下内容:

  • 用户(users)

  • 用户组(groups)

  • 讨论(discussions)

  • 帖子(posts)

  • 标签(tags)


仍需完成的工作:

  • 在导入用户组时,会丢失对论坛设置的管理能力

  • 插入帖子后,需要更新数据库字段:

    • last_post_id

    • participant_count

  • misc.php 导入器目前尚未正常工作,需要针对 Vanilla 论坛进行适配

  • 帖子内容的格式(HTML / BBCode / Markdown)需要正确转换

  • 帖子中的内部链接需要转换

  • 关注的讨论(Following discussions) 应能够被迁移

  • 已读标记状态(mark as read) 需要保留


说明

该脚本改编自以下项目的部分代码:
https://github.com/mondediefr/fluxbb_to_flarum


使用方法(Usage)

  1. 将此仓库下载到一个可通过浏览器访问的目录

  2. 进入该仓库目录,运行命令:

    composer install
  3. 复制并重命名 .env.example.env,并填写相应配置

  4. 打开浏览器,访问该导入器页面即可使用


下面是vanilla官方发布的迁移教程,其实就是用到了上面的工具:

[Tutorial] Migrating Vanilla 2023 to Flarum

Hello,

Seeing as it is impossible for me to build or get an updated version of vanilla built, following @Linc ‘s advice I am migrating my site even though I love Vanilla.

I wish I didn’t have to do it.

I leave you a small guide of what I did for anyone in my situation.

Migrating DB

I try 2 tools. With this I get convert the vanilla’s data base to flarum. The conversion was poor.

You can export reactions manualy like likes or with the plugin reactions. If you need help to import likes, write me and I help you.

I think this is better tool, but I don’t get it works: https://github.com/linc/nitro-porter

About flarum

It has an active community, plugins updated and a builded and updated release.

Its easy to install, only upload files and install.

https://docs.flarum.org/install/

If you use Rich2 on Vanilla

I prefere Rich2 text editor of vanilla, but you can use wysing with flarum.

With the tool I used, you can’t convert posts.

You have to convert from json to html on vanillas database and then export.

I have wrote a script to do it. If you need it, I can share you It. Only write me.

A shame we have to leave Vanilla. I may be stupid, but I am not able to compile it.

下载权限
查看
  • 免费下载
    评论并刷新后下载
    登录后下载
  • {{attr.name}}:
您当前的等级为
登录后免费下载登录 小黑屋反思中,不准下载! 评论后刷新页面下载评论 支付以后下载 请先登录 您今天的下载次数(次)用完了,请明天再来 支付积分以后下载立即支付 支付以后下载立即支付 您当前的用户组不允许下载升级会员
您已获得下载权限 您可以每天下载资源次,今日剩余
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

给TA打赏
共{{data.count}}人
人已打赏
RackNerd Leaderboard Banner
0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索