Upcoming events in widget

Home Forums Calendar Products Events Calendar PRO Upcoming events in widget

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #683175
    Tony Svensson
    Participant

    This is a follow up from the thread:

    Upcoming events doesn’t show on map page or in search

    I was wondering how that guide is coming along?
    I need to have the next upcoming event to be displayed in the widget of upcoming events.
    I think it it strange to limit the view to only current month and not to rely on upcoming dates, for a event plugin… I will start to code my own widget that shows upcoming events un less i get something useful here.

    Thanks in advance

    #685694
    Brook
    Participant

    Howdy tigerton,

    Here is that tutorial: https://theeventscalendar.com/fast-forward-to-the-next-upcoming-event/

    Regarding why this defaults to the current month instead of “fast forwarding”, this behavior is quite a deliberate choice. While we are open to changing it, at the moment it seems only a minority of people want it to fast forward, the rest want it to show this month that way if there are no events people are aware. It can be frustrating to a user if they are looking to see whether there are events this month, and have to click back a few times in order to find the answer. Like I said though, we are totally open to changing it in the future if more people prefer the fast forward style.

    Let me know if you have any more questions. If not, would you mind marking this resolved? Cheers!

    – Brook

    #688474
    Tony Svensson
    Participant

    I will have a go at the tutorial after lunch, thank you.

    In reply to your,
    “It can be frustrating to a user if they are looking to see whether there are events this month, and have to click back a few times in order to find the answer.”

    I want the current month to be visible as calendar but in the event list underneath it would be nice if events that are upcoming would be displayed (with date). That would not confuse anyone?

    I think the best option would be to add one or more options on how to display the events.

    I’ll get back on the tutorial results.

    #688634
    Tony Svensson
    Participant

    I have tested your tutorial and i got events to show up but its events from 2008 and not future ones hehe
    What could have happened?

    #688789
    Brook
    Participant

    Haha! Well that’s no good. I guess our fast forwarder has a rewind setting.

    Did you copy/paste the code exactly as it appears? Or did you add a date to the function call as outlined in the comment on line 74 of that code? If you added a date, it sounds like you should just remove it. You do not need to pass it a date at all. If you do not pass it one it *should* fast forward. Looking through the code I do not see any way it could rewind otherwise,  unless your server is set to the incorrect time/year.

    I want the current month to be visible as calendar but in the event list underneath it would be nice if events that are upcoming would be displayed (with date). That would not confuse anyone?

    Ahh. I could see that for sure. You should throw your votes behind that feature suggestion. Maybe add a comment about how the calendar itself would stay on the current month? That had not event occurred to me, it’s a really good idea.

    Cheers!

    – Brook

    #688845
    Tony Svensson
    Participant

    I just pasted your code, no changes were made.
    I noticed that end date for one event was 2008-2015 =), my mistake. However, after that changed i thought it would be solved but events started DESC sorting anyway.

    I was on deadline today so i created a shortcode to please my customer.

    Great that you respond to your users.

    #689134
    Brook
    Participant

    I am glad to hear you got it working. That is funky behavior. It now makes sense why it rewound. I am talking to the dev about updating that code to prevent this from happening.

    However, after that changed i thought it would be solved but events started DESC sorting anyway.

    Is this a problem for you? If so, how were you hoping it would behave?

    – Brook

    #691229
    Tony Svensson
    Participant

    The sorting is a problem yes, it displays passed events from 2008 and upwards not from 2014 and with upcoming events.

    #692065
    Brook
    Participant

    Oh I get what you meant by DESC now. I though you were trying to say that the order was reversed.

    Really that issue boils down to that fact that our code checks to see if there is an upcoming event. Technically an event which is still going on right now is upcoming in our API. That is because most of our customers want that, like those who have 3 day events that last all weekend want people visiting their site to see that event if it still has another day left. Buut we certainly do not want our fast forwarder to rewind the calendar months. That is unexpected and could be solved by simply checking to see if the upcoming event’s start date is actually in the past. If so, use the default start date. The event will still be listed, but the calendar will show the current month.

    Like I said, I am talking to the devs about a fix. I will let you know when we have one. In my mind if just involves a simple check at the end of the code snippet, but I do not have access to edit that snippet so I have to run it by some others. Thanks for clarifying.

    – Brook

    #692124
    Brook
    Participant

    The tutorial is updated! Thanks again for pointing this out.

    – Brook

    #809202
    Brook
    Participant

    Since this topic has gone for a spell without a response I am going to archive it. If you do need anything else please feel free to open a new topic. Cheers!

    – Brook

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Upcoming events in widget’ is closed to new replies.