Flarumite Simple Discussion Views

Add views to flarum discussions

Compatible with Flarum 0.1.0-beta.13

285 downloads

released on May 28, 2020

0
0

MIT license Latest Stable Version Total Downloads Donate

Flarumite Simple Discussion Views

This is a maintained fork of michaelbelgium/flarum-discussion-views, largely based on the now removed v0.1.0-beta.8.3 tagged release.

Why?

One of the Flarum forums I manage, needed a lightweight discussion view tracker, with minimal settings and options. Turn it on and forget about it, so to speak.

Features

  • Tracks how many times a discussion has been viewed and displays it per discussion on the discussionlist. Note: does not track unique views, rather every view, both as guest and registered member
  • Adds 2 sorting options: popular and unpopular
  • Adds 1 event which developers can listen for: DiscussionWasViewed
  • Adds 1 new permission where people can (re)set the viewcount of a discussion (default to admins)
  • Uses view_count column created on the discussions table, so should not impact load performance

To-do

  • Identify known crawlers, don't increase the view count for these visits
  • Notify discussion author if their discussion is viewed more than {configurable} times

Installation

Use Bazaar or install manually with composer:

composer require flarumite/simple-discussion-views

Links

© 2020 Hyn by DaniĆ«l "Luceos" Klabbers. All rights reserved. · Extensions and extension information is provided by the respective (copyright holding) authors. · Images on Extiverse pages are from Unsplash.