Collapsible Posts

Collapse unimportant posts

Compatible with Flarum v1.8.5

Latest release 1.0.1

274 downloads

released on Nov 17, 2021

Tags

Collapsible Posts

MIT license Latest Stable Version Total Downloads Donate

This extension allows collapsing some posts, so they don't clutter the discussion, while still keeping them accessible.

Multiple collapse reasons can be created in the admin page. By default an "off-topic" reason message is offered.

When multiple posts that follow each other are collapsed for the same reason, a collapse series is created. A series can be expanded back by group of 20 posts.

The collapse state is purely visual and doesn't prevent the user from editing or deleting their post for example.

The extension uses a solution that's a bit hacky, so there might be incompatibilities with other extensions and it might break during minor Flarum updates.

Known/expected issues:

  • You cannot permalink collapsed posts.
  • Search engines probably won't be able to index collapsed posts.
  • Users of the REST API and noscript pages will only see the first post of a collapsed series.
  • If some posts in a discussion aren't visible to everyone (deleted, under approval, shadow hidden, etc.) a collapse series might be broken in 2 for reasons the visitor cannot see. This shouldn't break the navigation but not all combinations have been tested.
  • Using database table prefixes might break the extension.

Installation

composer require clarkwinkelmann/flarum-ext-collapsible-posts

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.

You can contact me to sponsor additional features or updates.

Support is offered on a "best effort" basis through the Flarum community thread.

Links

© 2024 Hyn by DaniĆ«l "Luceos" Klabbers. All rights reserved. · Extensions and extension information is provided by the respective (copyright holding) authors. · Extiverse is not affiliated to the Flarum project or Flarum foundation. · Images on Extiverse pages are from Unsplash.