sycho/flarum-move-posts
Composer 安装命令:
composer require sycho/flarum-move-posts
包简介
Move posts from one discussion to another
关键字:
README 文档
README
A Flarum extension. Move posts from one discussion to another.
WARNING: This extension can in certain scenarios result in breaking old URLs to posts of the discussion you're moving posts to.
Usage
Simple Move VS Complex Move
The extension allows you to select multiple posts to move from one discussion to another. Certain scenarios are not allowed, while others are allowed but yield to different results.
Moving posts can either be a simple process of pushing the posts at the end of the target discussion, or it can be a complicated process of pushing the posts in between the target discussion's posts, thus breaking the target discussion posts's old URLs (meaning old URLs will no longer point to the correct posts, because we update their number field to allow squeezing in the moved posts). Which method will be chosen depends on the creation date of the posts being moved, and the creation date of the target discussion's last post.
The extension makes knowing which method will be used easily, by providing a Check Operation Type button in the relevant modal, so that you know what you're dealing with before proceeding.
The following diagram summarizes the couple scenarios:

Moving The First Post
When moving the first post of a discussion:
- If the discussion only has that one post, that post will be replace by a normal post with the content
The discussion has been moved to Target Discussion(the content is customizable through the admin panel). - If the discussion has multiple posts, the first post will be replaced by an event posts (as per usual) and the second post will be set as first.
Event Posts
Moved posts are replaced by event posts.
Installation
Install with composer:
composer require sycho/flarum-move-posts:"*"
Updating
composer update sycho/flarum-move-posts:"*" --with-dependencies
php flarum migrate
php flarum cache:clear
Support
This extension is under minimal maintenance.
It was developed for a client and released as open-source for the benefit of the community. I might publish simple bugfixes or compatibility updates for free.
Links
sycho/flarum-move-posts 适用场景与选型建议
sycho/flarum-move-posts 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 17.82k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2021 年 08 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「flarum」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 sycho/flarum-move-posts 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sycho/flarum-move-posts 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 sycho/flarum-move-posts 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Adds more BBCode
Output of discussions lists in form of cards
Allow users to log in with QQ
A headless CLI performance benchmarking tool for Flarum
The admin panel of afrux/asirem
Enhanced typography for french writings, mainly around punctuation.
统计信息
- 总下载量: 17.82k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 24
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-19
