[AP] Daily Goals

XF2 Addons [AP] Daily Goals 2.4.3
This addon adds a "Daily Goals" widget which counts posts, threads, and user registrations.

  • Fix goals not respecting minimum goal value
  • Fix disabled goals disappearing from the GUI
  • Fix issue where history deletion job could not actually be disabled
  • Various other cleanups
  • Don't show goals on the streak graph if a user lacks the relevant permission
  • Create style properties
    • Smooth graph lines
    • Show graph line area gradient
    • Show graph line points
    • Streak graph article / AMS color
    • UBS / blog line color
    • Showcase item line color
    • Resource line color
    • CAS / Classifieds ads line color
    • RMS / Review line color
    • IMS / Item line color
    • LD / Link line color
  • Create option callback to disable relevant counting cron job entirely when a goal has been disabled
  • Stop using whereSql() in counting functions
  • Use phrases provided by AMS instead of creating our own duplicates
  • Create missing "Longest article streak" widget
  • Add support for LD / Link Directory by Bob
  • Add support for IMS / Item Management System by Bob
  • Add support for XFRM / Xenforo Resource Manager
  • Add support for CAS / Classifieds Ads System by Bob
  • Add support for RMS / Review Management System by Bob
  • Add support for UBS / User Blog System by Bob
  • Add support Showcase Items by Bob
  • Migrate all original goals (Post, Thread, Member, AMS / Articles) over to using the AbstractGoal method
  • Create AbstractGoal class to ease supporting of 3rd party addons
  • Don't fetch goal types which have been disabled
  • Use XF datalist tags instead of hardcoding them
  • Improve PHP8 compatibility
  • Fix "Longest X goal streak" widget headers still show if the goal was disabled
  • Fix "invalid argument supplied for foreach()"
  • Fix non-post goal counters having hard coded colors / not respecting style properties
  • Create "article" goal type for AMS
  • Display "No previous goals counted" message in the Streak history table if addon has just been installed
  • Run counting jobs post-install

This update fixes a potential security vulnerability - all users of this addon are advised to upgrade​

  • Various function & template cleanups
  • "Streak" icon in widget header doesnt align to the right on certain themes
  • Fix potential SQL vulnerability involving the "Streak graph range" option (versions affected: v1.6.5 - v2.1.1)
  • Add "noindex" to streaks page
  • Fix Undefined variable: $longestMemberStreak [f5bda51b2d]
  • Simplify Streaks page template HTML [ab38a7863c]
  • Simplify goal widget template HTML [ab38a7863c]
  • Various other cleanups (simpler condition checking, strict comparisons, (return) type declarations)
  • Create style property for graph background [ab38a7863c]
  • Stop hardcoding $streakType phrases [b438eab42b]
Top Bottom