WPIntell

Source evidence

Change output?

Milestone · support · 2012-12-12T23:12:00+00:00

complaintsentiment
mediumseverity
0.86relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 34 rows with source links

17.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
ember7 unresolved
I have installed and configured, and the date of my event is showing correctly. However, below that it reads “1 month to go”. That is incorrect, as my event is actually more than 2 months away. I would also prefer more detail, such as “8 weeks, 4 days…” (etc.) I cannot find any documentation on how to make these changes. Can you help? http://wordpress.org/extend/plugins/milestone/ Ditto for me. I have a site http://n100.ca/ with a deadline coming three months from today but the plugin says 2 months. I would also like it to read in days instead of months if possible. Here is what I did. Edit the plugin file ‘fergcorp_milestone.php asnd change lines 158-184 to public function calculate_units($eventDiff, $eventDate){ // if($eventDiff >= 31536000+date("L", $eventDate)*86400){ // $value = floor($eventDiff/(31536000+date("L", $eventDate)*86400)); // $unit = _n("year", "years", $value, "fergcorp_milestone"); // } // elseif($eventDiff >= 86400*date("t", $eventDate) ){ // $value = floor($eventDiff / ( 86400 * 30 ) ); // $unit = _n("month", "months", $value, "fergcorp_milestone"); // } // else if($eventDiff >= 86400){ $value = floor($eventDiff/86400); $unit = _n("day", "days", $value, "fergcorp_milestone"); } // elseif($eventDiff >= 3600){ // $value = floor($eventDiff/3600); // $unit = _n("hour", "hours", $value, "fergcorp_milestone");; // } // elseif($eventDiff >= 60){ // $value = floor($eventDiff/60); // $unit = _n("minute", "minutes", $value, "fergcorp_milestone");; // } // else{ // $value = $eventDiff; // $unit = _n("second", "seconds", $value, "fergcorp_milestone"); // } that will cause it to just show in days

Comments

2 shown
John 2012-12-31T17:06:00+00:00

Ditto for me. I have a site http://n100.ca/ with a deadline coming three months from today but the plugin says 2 months. I would also like it to read in days instead of months if possible.

juggledad 2013-11-21T12:45:00+00:00

Here is what I did. Edit the plugin file ‘fergcorp_milestone.php asnd change lines 158-184 to public function calculate_units($eventDiff, $eventDate){ // if($eventDiff >= 31536000+date("L", $eventDate)*86400){ // $value = floor($eventDiff/(31536000+date("L", $eventDate)*86400)); // $unit = _n("year", "years", $value, "fergcorp_milestone"); // } // elseif($eventDiff >= 86400*date("t", $eventDate) ){ // $value = floor($eventDiff / ( 86400 * 30 ) ); // $unit = _n("month", "months", $value, "fergcorp_milestone"); // } // else if($eventDiff >= 86400){ $value = floor($eventDiff/86400); $unit = _n("day", "days", $value, "fergcorp_milestone"); } // elseif($eventDiff >= 3600){ // $value = floor($eventDiff/3600); // $unit = _n("hour", "hours", $value, "fergcorp_milestone");; // } // elseif($eventDiff >= 60){ // $value = floor($eventDiff/60); // $unit = _n("minute", "minutes", $value, "fergcorp_milestone");; // } // else{ // $value = $eventDiff; // $unit = _n("second", "seconds", $value, "fergcorp_milestone"); // } that will cause it to just show in days