Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Active Threads
The Active Threads plugin provides a listing of active[1] threads during a specified interval defaulting to the most recent week. In that listing are shown each thread's subject, author, and start date, along with the number of posts to it during the specified interval, and the dates and authors of the earliest and latest posts made to it during the interval. Optionally, user avatars can be displayed in the listing, for the thread starter, and for each member who posted earliest and latest during the interval.

[1] An "active" thread is simply a thread which has had at least one post made to it during the interval in question.

The listing can be sorted by any field in either descending or ascending order. It is paginated at 20 threads per page.

The interval can be specified to a fidelity of minutes up to any given date-time.

Along with the active threads listing page, this plugin adds the following interface features to MyBB:
  1. A "View Active Threads" link in the forum's header for both anonymous viewers and logged in members to access the listing page.
  2. The same "View Today's Posts" link for anonymous viewers that logged in members see by default in the forum's header.

Via the Admin Control Panel (ACP), it is possible to set:
  • The maximum allowable interval in minutes, either globally or on a per-usergroup basis. This is because longer intervals can be resource-intensive on the database, and expose your forum to DoS attacks. By default, the maximum interval is set to one week for each usergroup.
  • The default interval duration and sort parameters.
  • Whether or not to display each avatar type in the listing.

The plugin's output is based on a set of templates which can be customised.

What is this plugin useful for?

Two use cases are most likely:

Firstly, to see which threads have been most active in terms of number of posts over a given period, typically the most recent N days, where N defaults to 7.

Secondly, to view, in order from most recent to earliest, the latest post to all threads which have been posted to over a certain (configurable) period, defaulting to the most recent 7 days. This can be achieved by sorting in descending order by the final column (date of most recent post to the thread).
looks like a nice work Smile
Thank you for yor contribution.
Glad to be able to reciprocate.

I love the sound of this plugin, however when I activated it, and went to the 'active threads' link on the default layout, i received this error:

[Image: f28de91b673c5f64fe2bad01fea480e3.png]

Its a clean install, with 1 thread, 2 posts and the following Plugins:
Active Threads (1.2.6)
Amnesia (1.0)
Thread Description (1.2)
PluginLibrary (13)
Plugin Uploader (1.2.2)

I used the Uploader originally, then drop-dragged via the FTP after. The error persists.
[Image: Zcz1gZM.png]
Well, lokks like you don't use mybb_ as table prefixes, and it's hardcoded in activethreads.php.
Find mybb_ (case sensitive, only the minus ones) and replace with ".TABLE_PREFIX." in the file.

PR sent in github Smile
[MyBB 1.8 mods] - Offer me a coffee
Do not ask me help through PM
Thanks for the PR! Now merged. Will release a new version soon.

Released version 1.2.10, with the following updates:
  • Fixes some wording and links (minor).
  • Adds additional templates (especially for links) for easier customisation.
  • Adds settings to stipulate that usernames be styled per their usergroup style. 
  • Adds a link for each avatar (if enabled) to its user profile.
  • Adds a setting to stipulate the maximum display characters for thread subjects.
  • Fixes the table prefix in the main DB queries - was originally hardcoded to 'mybb_'.
  • Improves upgrade functionality:   
    • Adds template versioning so that modified templates only show up in Find Updated Templates after plugin auto-upgrade if they were modified by the plugin since the user last modified them.
    • Adds a confirmation success message for when the plugin is auto-upgraded.

Forum Jump:

Users browsing this thread: 1 Guest(s)