michaelbelgium / flarum-discussion-views
Add views to flarum discussions
Fund package maintenance!
MichaelBelgium
Installs: 37 503
Dependents: 4
Suggesters: 1
Security: 0
Stars: 26
Watchers: 4
Forks: 15
Open Issues: 1
Type:flarum-extension
Requires
- flarum/core: ^1.0
- jaybizzle/crawler-detect: ^1.2
Requires (Dev)
- fof/merge-discussions: ^1.0
Suggests
- flarum-lang/dutch: Includes Dutch translation for this extension
- flarum-lang/french: Includes French translation for this extension
- flarum-lang/polish: Includes Polish translation for this extension
Conflicts
This package is auto-updated.
Last update: 2024-12-19 13:21:55 UTC
README
This is an extension for the flarum forum software where you can 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 a discussion page
- Plenty of 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:
Reset the view count
Extension settings
Viewlist
Footer viewlist