[AP] Daily Goals

[AP] Daily Goals 2.6.1

No permission to download
@apathy is it possible for this add-on to show user specific statistics? I would like to set a limit of 20 messages per day for each user and display it that way. Is there an add-on that does this?
 
@apathy is it possible for this add-on to show user specific statistics? I would like to set a limit of 20 messages per day for each user and display it that way. Is there an add-on that does this?
Daily goals doesnt do this and i'm unaware of any other addon that does, i think the others' mostly just add new stats to your forum stats widget.

I do like the idea though, so as long as it doesnt prove to deviate too much from the original logic of Daily Goals i'd be happy to give it a go when I have time.
Just no promises because I wouldn't want two-addons-in-one, however I don't forsee it requiring a big rework either.
 
Daily goals doesnt do this and i'm unaware of any other addon that does, i think the others' mostly just add new stats to your forum stats widget.

I do like the idea though, so as long as it doesnt prove to deviate too much from the original logic of Daily Goals i'd be happy to give it a go when I have time.
Just no promises because I wouldn't want two-addons-in-one, however I don't forsee it requiring a big rework either.

If you make the relevant development, the following elements can be counted as goals:

  • Solution
  • Created thread (The post type should be selectable)
  • Reaction
If you consider making this development, I'd be happy to help @apathy.
 
Okay. I didn't realize these two colors were specific to the diagonal shading. I thought the line color was the Red background, because I had initially set line color to red.

Edit:
I was thinking this morning in the shower, as one does, about some ways that could make this mod even better, more useful. Daily goals are great, but for some of the goals, it doesn't make much sense. For example Members (meaning members registered), I think that would be better on a weekly or monthly scale.

  • I think having a customizable time scale would be an excellent feature. It doesn't have to be something open ended either, a drop down (Daily, Weekly, Monthly, etc).
  • Also, having the ability to change the wording of the titles would nice. This is probably done through Phrases? I'm not sure, (I only started using XenForo two days ago). For example, instead of Members, I'd say Registrations or to even fit my forum's theme, I'd use the term Recruitments.
  • Being able to change the background color of the bar would be great. This is probably based on the Color Palette? Again, I'm not sure yet.
  • Something off in la-la land would be a simple text blurb motivating about the goal. "If we register 100 members this {month}, then a special discount of 15% will be offered on everything!", for example. This of course assumes other extensions are installed to provide said compensation, but the point is having a motivation right there in your face is pretty compelling to go for it.
  • Have an option to calculate based on Scheduled Job (Cron) or Instant Calculation. Simply setting this option to a more instant gratification would really help smaller, newer, forums increase participation.
I will say that this add-on is very motivating as it is. I saw this on another XenForo forum I frequent and it does tend to motivate me to get that bar to 100%. Anyway, thank you for creating this add-on!
 
Last edited:
Is there some place I can set the exact time I want this Widget to reset for the day? Like I would prefer if it would reset at midnight (EDT), instead of at 20:44.
 
I think having a customizable time scale would be an excellent feature. It doesn't have to be something open ended either, a drop down (Daily, Weekly, Monthly, etc).
This is already doable, XF Options -> Daily goals -> "Periodicity"

Also, having the ability to change the wording of the titles would nice. This is probably done through Phrases? I'm not sure, (I only started using XenForo two days ago). For example, instead of Members, I'd say Registrations or to even fit my forum's theme, I'd use the term Recruitments.
Yes, the titles are hardcoded to the respective content types phrase. So to change the title of the Poll goal, you would have to change the value of the poll phrase which would of course affect other usages of the phrase outside the addon.
I'll add the ability to input your own titles to the todo list

Being able to change the background color of the bar would be great. This is probably based on the Color Palette? Again, I'm not sure yet.
Style properties -> Daily goals -> Progress bar background

Something off in la-la land would be a simple text blurb motivating about the goal. "If we register 100 members this {month}, then a special discount of 15% will be offered on everything!", for example. This of course assumes other extensions are installed to provide said compensation, but the point is having a motivation right there in your face is pretty compelling to go for it.
I'm not sure how well this would fit inside the small widget box, assuming its placed in the sidebar (which is usually where admins put it)
It could be in a tooltip when hovering over each goal (assuming they had separate incentives), but it wouldnt be "in your face" then and in fact could be easily missed.
Try out the notice system in XF itself (Communication -> Notices), this might be what you're looking for already.

Have an option to calculate based on Scheduled Job (Cron) or Instant Calculation. Simply setting this option to a more instant gratification would really help smaller, newer, forums increase participation.
If it's a togglable option then maybe, I don't think it would scale well depending on the size of the forum and how many of the supported addons they have installed because each action would require 1-2 new queries (making a post, thread, new user etc).
But I know you're suggesting it as an option, so I wont rule it out entirely since it'd be up to the admin which way they want it to work.

Is there some place I can set the exact time I want this Widget to reset for the day? Like I would prefer if it would reset at midnight (EDT), instead of at 20:44.
Tools -> Cron entries -> [AP] Daily Goals: Reset counters at midnight
Though it should be running at 00:30 the following day, so today (the 4th) would actually get calculated at 00:30 on the 5th. Unless I'm mistaken this is how XF calculates its own daily statistics.
 
I noticed that yesterday after I posted this, however, this option only affects the entire widget. I'm t thinking of a unit by unit based option. Having daily posting goals while having a weekly registration goal.

Edit: Looking at the Cron Jobs, the timer actually does run at 00:30, but that's UTC. So if I want this run at midnight-thirty Eastern time, I'd have to set the time at 04:30. But, I'm unable to make this edit.

Thank you for taking the time to analyze each point. <3
 
Last edited:
I noticed that yesterday after I posted this, however, this option only affects the entire widget. I'm t thinking of a unit by unit based option. Having daily posting goals while having a weekly registration goal.
This might come in the future but no promises, not out of the question though since some of the necessary logic is already there with the periodicity setting. I think each periodicity would need their own widget (it would be odd if 1 widget had goals resetting daily and others weekly or monthly) and afaik the streak graph page would need to be modified to display all goals and not just those based off the current specified periodicity

Edit: Looking at the Cron Jobs, the timer actually does run at 00:30, but that's UTC. So if I want this run at midnight-thirty Eastern time, I'd have to set the time at 04:30. But, I'm unable to make this edit.
AFAIK thats just how XF cron jobs work, they always go off UTC. You can change UTC trigger time by enabling "Development mode"
 
Back
Top Bottom