hona / flarum-discussion-views
Add views to flarum discussions
Package info
github.com/Hona/flarum-discussion-views
Type:flarum-extension
pkg:composer/hona/flarum-discussion-views
Fund package maintenance!
v5.0.1
2021-02-23 11:41 UTC
Requires
- flarum/core: ^0.1.0-beta.14
Requires (Dev)
None
Suggests
- dynastyking/flarum-lang-ptbr: Includes Brazilian Portuguese translation for this extension
- michaelbelgium/flarum-dutch: Includes Dutch translation for this extension
- rob006/flarum-lang-polish: Includes Polish translation for this extension
- rooaaar/lang-french-extended: Includes French translation for this extension
Provides
None
Conflicts
None
Replaces
None
README
This is an extension for the flarum forum software where you can enable and track how many 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:
Smaller screens: