[AP] Daily Goals

[AP] Daily Goals 2.6.1

No permission to download
Did you enable the permissions and set up goals in Admin Panel -> Content -> Manage goals?
I've started working on an update in XF2.3 and haven't had any issues with it. The update is just new options for each of the goals

No, I had only configured the permissions, I didn't know about that administration panel.
Thank you so much!!
 
@apathy The widget displays the message goals and chat messages, but no registered users, why could that be?
Do the members you expect to be counted have a "valid" user state? (Checkable in Admin Panel -> Users -> USERNAME)
Otherwise the only thing I think it could be is that you have the permission set for the other goals, but not the member registration goal (each goal has their own permission, on top of the "widget" permission, and the "streaks page" permission)
 
So either these are not counting correctly or what but when i look the pages these are wrong. i only noticed because the goal went down and im like i been reaching the goalts so here screen shots of the pages. Can we fix this ?
 

Attachments

  • 1.webp
    1.webp
    31.2 KB · Views: 10
  • 2.webp
    2.webp
    32 KB · Views: 6
  • 3.webp
    3.webp
    32.1 KB · Views: 6
  • Screenshot 2025-01-09 161504.webp
    Screenshot 2025-01-09 161504.webp
    31.2 KB · Views: 6
  • Screenshot 2025-01-09 161537.webp
    Screenshot 2025-01-09 161537.webp
    32 KB · Views: 4
  • Screenshot 2025-01-09 161601.webp
    Screenshot 2025-01-09 161601.webp
    32.1 KB · Views: 10
So either these are not counting correctly or what but when i look the pages these are wrong. i only noticed because the goal went down and im like i been reaching the goalts so here screen shots of the pages. Can we fix this ?
Not sure whats going on here but I agree it looks odd, it says you had 7 days in a row with the post goal met when it looks like it was actually 3, and I also believe there should be a bigger gap in the graph between your active days... unless I'm completely misreading, but let me know if this is in line with your own observations.

I'll be able to have a look at it over the next few days nonetheless.
 
Not sure whats going on here but I agree it looks odd, it says you had 7 days in a row with the post goal met when it looks like it was actually 3, and I also believe there should be a bigger gap in the graph between your active days... unless I'm completely misreading, but let me know if this is in line with your own observations.

I'll be able to have a look at it over the next few days nonetheless.
Yes i can give u access so u can enter my ACP if need be. i have discord if this is an easier communication for you. whatever i can do to make it easy on u because i like it lol but yes this aligns with my own observations. it may not be counting correctly and such
 
Yes i can give u access so u can enter my ACP if need be. i have discord if this is an easier communication for you. whatever i can do to make it easy on u because i like it lol but yes this aligns with my own observations. it may not be counting correctly and such
I have discord, I wont be able to work on it today but I'm free for the weekend so feel free to send me a message. My discord name is apathyff
 
apathy updated [AP] Daily Goals with a new update entry:

2.6.0

An FYI, the next major version (2.7.0) will be XF2.3/PHP8+ only! 2.6.0 is the final branch for XF2.2
  • Siropu\Chat: Add option to exclude specified rooms from counting towards the goal
  • UserUpgrade: Add option to limit to specific type of upgrade
  • Thread: Add option to only count threads which have been replied to
  • Poll: Add option to exclude specified nodes from counting towards the goal
  • Create "Daily/Weekly" ("Periodicity") toggle in addons...

Read the rest of this update entry...
 
I just realized there's a server error after upgrading......I don't know if it's gonna cause issues going forward:
server_error_dailygoals.webp
 
I just realized there's a server error after upgrading......I don't know if it's gonna cause issues going forward:
Not run into this myself but I'll take a look later on this evening, I should have a bugfix update out sometime over the weekend

That error would suggest the new Periodicity option didnt install correctly though, is it present in the addons options?
 
it shows up as an option........
I've only gotten to take a proper look now, but I think that error you got is harmless and can be ignored if the periodicity option is correctly showing up

Essentially what happened is during the upgrade process we renamed a lot of the goal's "excluded nodes" option to "node_id" internally, and when we committed the changed to the database the new Periodicity option was called but it didnt actually exist at that point of the upgrade process.

Looking at the code the only side effect from this should have been that your goal counter didn't refresh post-upgrade, but it would have done so 5 minutes after the fact. I dont believe this will cause you any problems down the line.

Either way, I've modified the offending function to fallback to "daily" periodicity if it can't find the option for one reason or another.
 
Back
Top Bottom