View attachment 2865
This addon adds a "Daily Goal" for posts to the Forum Statistics widget. You can specify the desired goal in the admin panel.
The counter is reset via a cron entry every day at 00:00.
View attachment 2866View attachment 2867
- Allow admins to choose which nodes will count towards the post & thread goals (suggested by @Ozzy47)
- Allow admins to choose the color of the progress bars
- Allow admins to disable post, thread, or member registration goals
- Add widget and progress bars for the goals (suggested by @Andro)
- Add daily thread & member registration goals (suggested by @Andro)
Thanks to @Andro for helping test.
- Rename addon "[AP] Daily Goal" -> "[AP] Daily Goals"
- Fix missing widget definition description phrase
- Change widget title "Daily Goal" -> "Daily goals"
- Add branding
- Add Progress Bar BG style property
- Replace Progress Bar color option with style property for theme-specific colors
- Optimize Thread counting query
- Fix Red/green counter color comparing against Post goals for Threads & Member Registrations
- Fix Thread cron script...
This addon adds a "Daily Goals" widget which counts posts, threads, and user registrations. You can specify the desired goal counts in the admin panel.
The counters are reset via a cron entry every day at 00:00.
- Officially support Xenforo 2.1
- Remove decimal places in percentages
- If cron jobs haven't been run (e.g. fresh install of addon) then print 0/25 instead of /25
- Add text shadow to percentages
View attachment 6218
This addon adds a "Daily Goal" for posts to the Forum Statistics widget. You can specify the desired goal in the admin panel.
The counter is reset via a cron entry every day at 00:00.
- Create widget "Total streaks"- Create widget "Longest member registration streak"
- Create widget "Longest thread streak"
- Create widget "Longest post streak"
- Create widget position "Daily goal streaks: Sidebar"
- Create permission group "[AP] Daily Goals" and move all permissions there
- Create permission "View streaks"
- Add "View streaks" link to widget foote
- Midnight reset job has been extended to increase/decrease each goal by X weight if goal streaks are...
- Change "Jan 1 1970" default date to something else
- "Total streaks" count should respect Timeframe settings [e7b9a0d]
- Longest streak widgets still showing wrong dates [88f78fb]
- Fix widget CSS only applying if the widgets are set to appear on the Streaks history page
- Stop declaring \XF::app() twice in countPostsFromToday() [83e69ea]
- Rewrite comment counter to use Finder instead of the DB adapter [69185a5]
- Rewrite countPostsFromToday() to use the Finder instead of...
- Limit finder results by timeframe values [8b4d5a247d]
- Fix auto-adjustment not respecting timeframe settings when reducing the goals [31f859930e]
- Remove useless $repo declaration...
- Automatically enable widgets during setup [e6d3fc3c17]
- Percentage values >= 1000 break the bar background (thanks @Oblivion Knight!) [23fb1cd85f]
- Implement "Minimum goal count" admin options - if auto-adjustment is enabled, your goals will not drop below this amount...
- Remove some redundant style property explanations
- Create "Progress percent color" style property
- Create unique class names in ap_dg_progress_bars.less - this should fix style properties appearing different for guests & logged in users.
- Slight cleanups [6bbd432c9d, e1d6cddb96]
- Fix inaccurate info if longest streak has been matched [571c33fd4e]
- Allow admins to choose how many weeks are...
- Create isDelayed() to help account for if the job was triggered past midnight (goal should no longer submit as 0 when posts were made)
- Add "nofollow" attribute to "View streaks" link
- Use entity manager to insert to history entity
- Only count registrations that activated their account
- Unset simpleCache values when uninstalling
- Fix Graph range limiting the results outputted in the table (it should only affect the graph)
- Replace <i> tags on Streaks page with <xf:fa />...
- 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...
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 "invalid argument supplied for foreach()"
- 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
- 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...
- Create cron job & respective admin option for deleting History items older than the specified amount
- Add warning to "reset streak" button confirmation
- Fix display_totals() in admin goal editor template
- Reduce query count in admin panel goal editor
- Use a left join on the Goal entity when fetching the goals history
- Use phrase groups for "longest $contentType streak" phrases
- Fix padding of pagenav in admin goal editor
- Type hinting error on PHP 7.4...
- 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