![]() |
|
Counter for Daily Tasks - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: General (https://sinister.li/Forum-General) +--- Forum: Announcements (https://sinister.li/Forum-Announcements) +---- Forum: Suggestions (https://sinister.li/Forum-Suggestions) +----- Forum: Old Suggestions (https://sinister.li/Forum-Old-Suggestions) +----- Thread: Counter for Daily Tasks (/Thread-Counter-for-Daily-Tasks) |
Counter for Daily Tasks - Sikom - 02-13-2018 We have this Daily Forum Goals, but it is a little bit unclear how much time we got left. So my suggestion would be some kind of a timer for the goals so we know when to reach them by. RE: Counter for Daily Tasks - Synthx - 02-14-2018 I really like this idea! I always wonder when we are supposed to meet the goal. We typically always meet the goal, but I'd love to know how long is left. RE: Counter for Daily Tasks - mothered - 02-14-2018 I actually like the Idea. Having a status bar of some sort, will serve as an Incentive to members In achieving the board's daily goals. RE: Counter for Daily Tasks - Oni - 02-15-2018 There isn't really a "countdown", because that's not how it works. It persistently counts how many posts are made in the past 24 hours. Meaning, if it's 6:00 AM now, then it counts all of the posts until 6:00 AM yesterday. Say an hour passes and it's 7:00 AM, then it counts the posts until 7:00 AM yesterday. Let me know if I haven't explained well enough. RE: Counter for Daily Tasks - Oni - 02-15-2018 Oh, if anyone wanted the stats for the past 19-20 days : ![]() Average is roughly 150. RE: Counter for Daily Tasks - Sikom - 02-15-2018 (02-15-2018, 11:13 AM)Oni Wrote: There isn't really a "countdown", because that's not how it works. It persistently counts how many posts are made in the past 24 hours. Meaning, if it's 6:00 AM now, then it counts all of the posts until 6:00 AM yesterday. Say an hour passes and it's 7:00 AM, then it counts the posts until 7:00 AM yesterday. Let me know if I haven't explained well enough. (02-15-2018, 11:16 AM)Oni Wrote: Oh, if anyone wanted the stats for the past 19-20 days : It seems like you record the average at a specific time? RE: Counter for Daily Tasks - mothered - 02-16-2018 (02-15-2018, 11:13 AM)Oni Wrote: There isn't really a "countdown", because that's not how it works. It persistently counts how many posts are made in the past 24 hours. Meaning, if it's 6:00 AM now, then it counts all of the posts until 6:00 AM yesterday. Say an hour passes and it's 7:00 AM, then it counts the posts until 7:00 AM yesterday. Let me know if I haven't explained well enough. Simply put, It works on a 24 hour window from one point to another and keeps doing so within a 24 hour time-frame. RE: Counter for Daily Tasks - Oni - 02-16-2018 (02-15-2018, 04:45 PM)Sikom Wrote:(02-15-2018, 11:13 AM)Oni Wrote: There isn't really a "countdown", because that's not how it works. It persistently counts how many posts are made in the past 24 hours. Meaning, if it's 6:00 AM now, then it counts all of the posts until 6:00 AM yesterday. Say an hour passes and it's 7:00 AM, then it counts the posts until 7:00 AM yesterday. Let me know if I haven't explained well enough. To dispel any misconceptions, here's a snippet of the current source: Code: $plain_date = TIME_NOW;
$time_span = $mybb->settings['forum_goals_time_span'];
if($time_span == 1) {
$start = TIME_NOW - 86400;
$end = strtotime("tomorrow", $start) - 1;
$time_span = $lang->daily;A couple years ago you'd be right, as this used to be the source: Code: $plain_date = TIME_NOW;
$time_span = $mybb->settings['forum_goals_time_span'];
if($time_span == 1) {
$start = strtotime("midnight", $plain_date);
$end = strtotime("tomorrow", $start) - 1;
$time_span = $lang->daily;This is intentional, as "midnight" is determined by the server's time (which I'd prefer to avoid using). |