Home › Forums › Calendar Products › Events Calendar PRO › Bug: Mini Calendar widget: TribeEvents nextMonth() calculation
- This topic has 5 replies, 3 voices, and was last updated 12 years, 1 month ago by
Barry.
-
AuthorPosts
-
January 29, 2014 at 6:53 am #98214
timhengeveld
ParticipantHi,
The function nextMonth() in the TribeEvents class is used for calculating which month to load with the prev/next month buttons in the Mini Calendar widget.
But if the current day number does not exist in the subsequent month, this leads to skipping a month when clicking the next month button in the mini calendar widget.
Examples:
$tribe_ecp = TribeEvents::instance();
$tribe_ecp->nextMonth(‘2014-01-29’); // Returns 2014-03$tribe_ecp = TribeEvents::instance();
$tribe_ecp->nextMonth(‘2014-03-31’); // Returns 2014-05The next month value is set in the ‘data-month’ attribute of the next month link anchor tag in the calendar widget (used in widget-calendar.js and send via Ajax), which causes the mini calendar widget to skip months on some occasions (like today: 2014-01-29).
The bug can be easily duplicated on your own demo site: http://wpshindig.com/event-widgets/ in the Mini Calendar widget on the top right of the page.
Kind regards,
TimJanuary 29, 2014 at 4:29 pm #98503Matthew
ParticipantThis reply is private.
January 30, 2014 at 10:52 am #98852Barry
MemberThis reply is private.
January 31, 2014 at 3:44 pm #99408Barry
MemberApologies everyone, that last reply shouldn’t have been marked as private – our forum software can be a little overzealous sometimes. Let me re-post that:
We did do some work in relation to that problem and it looks like the calendar widget may unfortunately have been missed or some code inadvertently rolled back, perhaps – but we’ll certainly ensure this gets back on the tracker and fix it as quickly as we can. Thanks for bringing it to our attention!
@Matthew: with regards to events not being listed below the widget, that’s a different issue but if I’m understanding you correctly it’s not something I can replicate. Can you create a new thread for this specific issue?
Thanks!
February 17, 2014 at 6:50 am #105349Barry
MemberI’ll close this thread for the time being, but we’ll certainly do our best to post an update re the calendar widget issue once we’ve got something further to report on that end. Thanks!
March 27, 2014 at 11:05 am #123876Barry
MemberHi! We’ve now completed some work that ought to address this issue in our very next upcoming release. Thanks for your patience and if you do hit any further problems with this once you’ve updated please don’t hesitate to let us know in a new thread – thanks!
-
AuthorPosts
- The topic ‘Bug: Mini Calendar widget: TribeEvents nextMonth() calculation’ is closed to new replies.
