Home › Forums › Calendar Products › Events Calendar PRO › Mini Calendar – default display month as that of next upcoming event
- This topic has 25 replies, 4 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
August 2, 2013 at 9:25 am #58511
Graeme
ParticipantHi Guys – quick question, I have events that don’t start until Feb next year. I’d like the Mini Cal to start displaying from the month of the next upcoming event i.e. not to show August, but Feb as that is the date of the next upcoming event.
I’m pretty sure it has something to do with the paras passed in mini-calendar-widget.php, but not sure which.
Any help most appreciated, thanks.
GAugust 4, 2013 at 12:21 pm #58724Graeme
ParticipantHaving looked at this for a while now, it appears that eventDate is the key to this, and also applies to the large monthly calendar view as well as the mini Calendar.
Essentially all I won’t to do is start the month view off with the month of the next upcoming event.I’ve searched the forums (a lot) and am surprised this question hasn’t come up before – surly others have festival / runs of events that are not all year round?
I’m happy editing php, but just need pointed in the right direction.
Anyway – any help most appreciated.
Thanks again
August 5, 2013 at 7:05 am #58813manelequinocci
ParticipantI am having the same problem, so I’ll be waiting until someone tells us the solution.
August 6, 2013 at 8:00 am #59064Graeme
ParticipantSo I’ve tracked this down a little further (perhaps incorrectly), but it appears to have somthing to do with function tribe_get_month_view_date(), although I’m not sure how to edit it to return the month of next upcoming event.
I’d even be happy with hard coding a specific month for the mini cal at this stage (as my festival is lucky enough to take place within one calendar month).
Again – help most appreciated.
Thanks
August 7, 2013 at 10:33 am #59332Barry
MemberHi Graeme – sorry first of all for the extended delay. We’ve been inundated with support requests recently and that has unfortunately slowed us down a bit on the support front.
Let me check into this and I’ll get back to you shortly.
August 7, 2013 at 10:43 am #59335Graeme
ParticipantThanks Barry, don’t worry about the delay, I appreciate you guys are busy just now.
August 7, 2013 at 11:09 am #59336Barry
MemberNo problem – it’s a great question. Can you try adding this code to your theme’s functions.php file (or any other suitable place if you prefer) and see if that helps out here?
August 7, 2013 at 11:43 am #59349manelequinocci
ParticipantBarry, terribly sorry to inform you that it doesn’t work for me. I pasted the code to my theme’s functions.php file and it doesn’t work at all. My website is: http://www.equinocci.com, just in case you wanna have a look
August 7, 2013 at 11:48 am #59351Barry
MemberHi manelequinocci – can you point me to a URL where I can see the minicalendar widget in use?
August 7, 2013 at 11:51 am #59352manelequinocci
ParticipantSorry, Barry, here you are: http://www.equinocci.com/diario-blog/
My first event is in Sept.
You will see the cal on the right column.Thanks a lot for your kind help!
<3August 7, 2013 at 12:00 pm #59354Barry
MemberI’m unsure why it isn’t working for you – can you share your complete theme functions.php file via Pastebin/Gist so I can see where you added this?
@Graeme: are you having the same problem?August 7, 2013 at 12:12 pm #59355manelequinocci
ParticipantBarry, since it didn’t work I deleted it. I added your code at the very end of the file. Here you are the link: http://pastebin.com/YYwNm098
August 7, 2013 at 12:14 pm #59356Barry
MemberOK, well let’s wait and see what Graeme says (just so we can figure out if it’s specifically a problem in your installation or some more general issue) and take things from there.
August 7, 2013 at 12:15 pm #59357manelequinocci
ParticipantThousands thanks, Barry!
August 7, 2013 at 2:07 pm #59384Graeme
ParticipantThanks for this.
It works, but not 100%. The mini cal is defaulting to the month that contains the next upcoming event, which is great. However, the list of events that appears below the calendar is not updating – it appears blank until I click the day of the month that contains an event, then it appears.
When the calendar works normally, even when a user does not click the day of the month the list below still shows the next (5 – as that is what I have selected in the widget settings) events starting from the beginning of the month.
But I’m delighted with what you’ve done, thanks. If you can sort it so the month start up shows the upcoming events in the list that would be great, but not a huge worry if you can’t.
You should consider rolling this out as an option on the widget (or settings page to also impact the main month calendar too) as I’m sure others would like to have this functionality.
Top job, thanks.
-
AuthorPosts
- The topic ‘Mini Calendar – default display month as that of next upcoming event’ is closed to new replies.
