Download the PHP package sycho/flarum-move-posts without Composer
On this page you can find all versions of the php package sycho/flarum-move-posts. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sycho/flarum-move-posts
More information about sycho/flarum-move-posts
Files in sycho/flarum-move-posts
Package flarum-move-posts
Short Description Move posts from one discussion to another
License MIT
Homepage https://sycho9.github.io
Informations about the package flarum-move-posts
Move Posts
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:
Updating
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.