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

Permission to let users see past the first post of discussions

Installs: 264

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 3

Language:JavaScript

Type:flarum-extension

1.0.3 2020-04-02 17:46 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, last post date and number as well as the user last read date and number from the API and homepage.

Installation

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

Links

The initial version of this extension has been sponsored by HereWeLink