Mini Calendar – default display month as that of next upcoming event

Home Forums Calendar Products Events Calendar PRO Mini Calendar – default display month as that of next upcoming event

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #58511
    Graeme
    Participant

    Hi 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.
    G

    #58724
    Graeme
    Participant

    Having 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

    #58813
    manelequinocci
    Participant

    I am having the same problem, so I’ll be waiting until someone tells us the solution.

    #59064
    Graeme
    Participant

    So 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

    #59332
    Barry
    Member

    Hi 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.

    #59335
    Graeme
    Participant

    Thanks Barry, don’t worry about the delay, I appreciate you guys are busy just now.

    #59336
    Barry
    Member

    No 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?

    #59349
    manelequinocci
    Participant

    Barry, 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

    #59351
    Barry
    Member

    Hi manelequinocci – can you point me to a URL where I can see the minicalendar widget in use?

    #59352
    manelequinocci
    Participant

    Sorry, 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!
    <3

    #59354
    Barry
    Member

    I’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?

    #59355
    manelequinocci
    Participant

    Barry, 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

    #59356
    Barry
    Member

    OK, 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.

    #59357
    manelequinocci
    Participant

    Thousands thanks, Barry!

    #59384
    Graeme
    Participant

    Thanks 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.

Viewing 15 posts - 1 through 15 (of 26 total)
  • The topic ‘Mini Calendar – default display month as that of next upcoming event’ is closed to new replies.