https://github.com/MichaelBelgium/flarum-discussion-views
An extension for the Flarum forum software which tracks and displays discussion views.
https://github.com/MichaelBelgium/flarum-discussion-views
flarum flarum-extension
Last synced: about 2 months ago
JSON representation
An extension for the Flarum forum software which tracks and displays discussion views.
- Host: GitHub
- URL: https://github.com/MichaelBelgium/flarum-discussion-views
- Owner: MichaelBelgium
- License: mit
- Created: 2017-11-07T22:54:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-19T12:30:03.000Z (10 months ago)
- Last Synced: 2025-03-25T09:49:14.019Z (2 months ago)
- Topics: flarum, flarum-extension
- Language: PHP
- Homepage: http://flarum.org
- Size: 264 KB
- Stars: 27
- Watchers: 3
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-flarum - Discussion views - Track how much times a discussion has been viewed. (Extensions / Discussion ([:top:](#table-of-contents)))
README
# Flarum discussion views
This is an extension for the [flarum forum software](http://flarum.org) 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

