fof/discussion-views

Add view counts to discussions

Fund package maintenance!
Open Collective

Installs: 56

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Type:flarum-extension

1.0.0 2025-03-28 13:45 UTC

This package is auto-updated.

Last update: 2025-03-28 13:59:17 UTC


README

MIT license Latest Stable Version Total Downloads

A lightweight discussion view tracker, with minimal settings and options.

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 - includes accessor IP and UserAgent strings
  • 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
  • Identify known crawlers with an option to not increase the view count for their visit. Uses jaybizzle/crawler-detect for identification

Installation

composer require fof/discussion-views:"*"

Links