Download the PHP package clarkwinkelmann/flarum-ext-popular-discussion-badge without Composer
On this page you can find all versions of the php package clarkwinkelmann/flarum-ext-popular-discussion-badge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download clarkwinkelmann/flarum-ext-popular-discussion-badge
More information about clarkwinkelmann/flarum-ext-popular-discussion-badge
Files in clarkwinkelmann/flarum-ext-popular-discussion-badge
Package flarum-ext-popular-discussion-badge
Short Description Adds a popular badge to discussion based on replies or number of views
License MIT
Informations about the package flarum-ext-popular-discussion-badge
Popular Discussion Badge
Adds a "popular" badge to discussions based on custom criteria.
The extension can be used in two main "modes":
Frontend mode
This mode verifies the badge conditions client-side against the information the current user can see. The database column is not used at all.
In Frontend mode, the following criteria are available:
- Number of comments
- Number of views
The number of views is not computed by this extension.
It requires either michaelbelgium/flarum-discussion-views
or flarumite/simple-discussion-views
.
Scheduler mode
This mode makes use of a CRON job to update the discussion status. See this thread on how to configure the Flarum scheduler in your crontab
You can configure the frequency of the update through the extension settings.
In Scheduler mode, the following criteria are available:
- Number of comments
- Timeframe for the number of comments (in n last hours, leave empty for the total)
- Number of views
- Timeframe for the number of views (in n last hours, leave empty for the total)
The number of views is not computed by this extension.
It requires either michaelbelgium/flarum-discussion-views
or flarumite/simple-discussion-views
.
It's only possible to time-constraint the views of michaelbelgium/flarum-discussion-views
.
Setting a views timeframe while using the Flarumite views extensions will result in an error.
Installation
composer require clarkwinkelmann/flarum-ext-popular-discussion-badge
Support
This extension is under minimal maintenance.
It was developed for a client and released as open-source for the benefit of the community. I might publish simple bugfixes or compatibility updates for free.
You can contact me to sponsor additional features or updates.
Support is offered on a "best effort" basis through the Flarum community thread.
Sponsors: Daniel Alter, Phenomlab, ctml, GreXXL