Home › Forums › Calendar Products › Events Calendar PRO › Upcoming events in widget
- This topic has 10 replies, 2 voices, and was last updated 11 years, 6 months ago by
Brook.
-
AuthorPosts
-
August 19, 2014 at 2:36 am #683175
Tony Svensson
ParticipantThis is a follow up from the thread:
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
August 20, 2014 at 1:42 am #685694Brook
ParticipantHowdy 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
August 21, 2014 at 3:18 am #688474Tony Svensson
ParticipantI 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.
August 21, 2014 at 4:50 am #688634Tony Svensson
ParticipantI 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?August 21, 2014 at 5:56 am #688789Brook
ParticipantHaha! 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
August 21, 2014 at 6:21 am #688845Tony Svensson
ParticipantI 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.
August 21, 2014 at 8:27 am #689134Brook
ParticipantI 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
August 22, 2014 at 4:31 am #691229Tony Svensson
ParticipantThe sorting is a problem yes, it displays passed events from 2008 and upwards not from 2014 and with upcoming events.
August 22, 2014 at 12:14 pm #692065Brook
ParticipantOh 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
August 22, 2014 at 12:50 pm #692124Brook
ParticipantThe tutorial is updated! Thanks again for pointing this out.
– Brook
October 13, 2014 at 9:45 pm #809202Brook
ParticipantSince 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
-
AuthorPosts
- The topic ‘Upcoming events in widget’ is closed to new replies.
