clarkwinkelmann/flarum-ext-see-past-first-post

Permission to let users see past the first post of discussions

Installs: 1 171

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 1

Open Issues: 2

Language:TypeScript

Type:flarum-extension

1.3.1 2022-11-29 01:08 UTC

README

MIT license Latest Stable Version Total Downloads Donate

Adds a new permission to Flarum to let users see past the first post of discussions.

Set the permission to "Members" to hide the content from guests but show them to logged in users. A message will invite the user to log in when they view the discussion.

If you set the permission to something else than member, a different message is shown saying the user is not allowed to see the discussion content. You can customize the messages with the Linguist extension.

The permission can be applied to individual top-level tags. Due to limitations in the Flarum tag system, if the discussion possesses any tag that isn't explicitly restricted, the user will be able to see the posts.

Two additional settings allow customizing the restrictions even further:

  • Hide comment count on discussion list: this will hide the total post and recipient count from the API and the homepage.
  • Hide last post user and date on discussion list: this will hide the lastUser, lastPost relationships, last post date and number as well as the user last read date and number from the API and homepage. It will also hide the tag lastPostedDiscussion relationship and last posted date from the API and tag list.
  • Hide first post as well: this will hide the firstPost relationship from the API and homepage, and also hide post with number 1 when browsing a discussion, effectively hiding the discussion content in full.

Installation

composer require clarkwinkelmann/flarum-ext-see-past-first-post

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.

Sponsors: HereWeLink, FlarumTR

Links