michaelbelgium/flarum-discussion-views

Add views to flarum discussions

Fund package maintenance!
MichaelBelgium

Installs: 14 102

Dependents: 1

Suggesters: 0

Security: 0

Stars: 17

Watchers: 3

Forks: 7

Open Issues: 2

Type:flarum-extension

v4.0.1 2020-07-14 18:24 UTC

This package is auto-updated.

Last update: 2020-09-12 16:24:57 UTC


README

This is an extension for the flarum forum software where you can enable and track how much times a discussion has been viewed.

Installation

Execute this command in your flarum root: composer require michaelbelgium/flarum-discussion-views

Update

Execute these commands to update the extension.

composer update michaelbelgium/flarum-discussion-views
php flarum migrate
php flarum cache:clear

Translations

If you would like to translate this extension to your language, make a PR in the corresponding language pack.

Features

  • Tracks how much a discussion has been viewed and displays it on the discussionlist
  • Extension settings
  • Adds 2 sorting options: popular and unpopular
  • Adds an event which developers can listen for: DiscussionWasViewed
  • Adds new permissions:
    • Reset the viewcount of a discussion (default to admins)
    • View the viewcount of a discussion (default to admins)

Media

Normal:

image

Smaller screens:

Imgur

Reset the view count

Imgur

Extension settings

Imgur

Viewlist

Imgur