WordPress.org

Ready to get started?Download WordPress

Forums

My Calendar
[resolved] V2.3.4 Widget bug? Upcoming Events wrong number shown (21 posts)

  1. colinsp
    Member
    Posted 3 months ago #

    I have updated to WP 3.9 and 2.3.4 and now I have a problem with the Upcoming events widget.

    I have selected Display upcoming events by: Events

    I then had 6 future events selected with 2.3.3 and it displayed 6 events now it only displays 3. My analysis shows that

    Select Display
    5 >> 2
    6 >> 3
    8 >> 5
    10 >> 7

    Any suggestions or is it a bug?

    https://wordpress.org/plugins/my-calendar/

  2. Joe Dolson
    Member
    Plugin Author

    Posted 3 months ago #

    Do you have a lot of long multi-day events, by any chance?

  3. colinsp
    Member
    Posted 3 months ago #

    No I don't. The next but one event is a 4 day event and all the rest are single day events.

  4. Joe Dolson
    Member
    Plugin Author

    Posted 3 months ago #

    Hmmm. Then that's unusual. Can you send me a support request from My Calendar > Help? I'll follow up but I want to take a look at the site first.

  5. colinsp
    Member
    Posted 3 months ago #

    Sent

  6. bijlf
    Member
    Posted 3 months ago #

    I have the same problem.

  7. colinsp
    Member
    Posted 3 months ago #

    @bijlf

    Joe is aware and has now reproduced the problem and is working on a fix for it.

  8. Joe Dolson
    Member
    Plugin Author

    Posted 2 months ago #

    I've got a fix for it, but I also have a question. The intended behavior of the Upcoming Events list has always been that it will show the number of upcoming events specified, but if the option to "Show Today's Events" was checked, those events would be in addition to the total events. Is that what you would expect?

    So, in effect, with 8 future events as the option, the list would show 8 events; but if "Show Today" is checked and there are events today, that could result in more events shown.

  9. colinsp
    Member
    Posted 2 months ago #

    Joe,

    Thanks for the fix I look forward to you releasing it.

    Your description of the working of Upcoming Events is exactly how I thought it worked so that is fine as far as I am concerned.

  10. bijlf
    Member
    Posted 2 months ago #

    Hi Joe,
    Ok thanks for fixing, for me it will be nice if it is possible to show always the configured count of events. I have configured 3 future events and the space in the widget looks nice if it will be always 3 events, even if todays events are selected. The widget is then of the same size as my other widgets. But if this is not possible the widget will become larger and and this is not a real problem.

  11. Joe Dolson
    Member
    Plugin Author

    Posted 2 months ago #

    Given the fact that it's been set up for years to work this particular way, and that was what @colinsp expected, I'm going to choose to leave it the same, adding today's events to the total. But thanks for your feedback.

  12. colinsp
    Member
    Posted 2 months ago #

    Joe,

    I have just gone to 2.3.5. I have reset the widget to next 5 events and now it is showing the next 20 events! It doesn't make any difference whether show today's events is enabled or not. Selecting 3 drops it to 18 displayed. Selecting 1 drops to 1 displayed. Setting 2 displays 17 events.

  13. Ohytos
    Member
    Posted 2 months ago #

    I am experiencing the similar problem since 2.3.4 and now with 2.3.5. I have one reccuring event and before version 2.3.4 I used to have 1 past event and 3 upcoming events displayed in the widget. With 2.3.4 widget started showing numerous occurrences in the future. For the time I fixed it by switching to 0 events in the past with which it showed correct number of events in the future.
    With 2.3.5 today the problem is back but now my old solution is not working.
    Show today's events tick seems not to have any influence.
    0 events in the past and 0 events in the future - shows nothing
    1 event in the past and 0 events in the future - shows 1 in the past
    0 events in the past and 1 event in the future - shows 1 in the future
    1 event in the past and 1 event in the future - shows 1 in the past and 16 in the future
    0 events in the past and 2 events in the future - shows 0 in the past and 17 in the future
    and so on

  14. Joe Dolson
    Member
    Plugin Author

    Posted 2 months ago #

    Argh. Sometimes I hate the upcoming events widget. I'm back on it.

  15. colinsp
    Member
    Posted 2 months ago #

    Joe

    Can I really be a pain and ask you whilst you are in there if you can tell me where to add a link in the code to point to the main events page? I have had a couple of goes at it without success in 2.3.3.

    If that is too much to ask no problem.

  16. Joe Dolson
    Member
    Plugin Author

    Posted 2 months ago #

    Just add it in the widget, in the link field? I'm not sure what you're asking for, if not that.

  17. colinsp
    Member
    Posted 2 months ago #

    Joe,

    What I want is a line after the last upcoming event which says:

    See More Events

    and that links to my Events page.

  18. Joe Dolson
    Member
    Plugin Author

    Posted 2 months ago #

    Hmmm. I'd probably just inject it with jQuery, using the class attached to the widget container to append the link.

  19. colinsp
    Member
    Posted 2 months ago #

    Joe

    Sorry I have set this to not resolved as if 'show today's events' is ticked too many events are shown.

    Set 5 future events and don't show today's events then only 5 are displayed.

    However, set 5 future events and show today's events then 9 are displayed and only one of them is today, the rest are all future events.

  20. colinsp
    Member
    Posted 2 months ago #

    Joe

    2.3.7 fixes this issue it is now displaying correctly for me.

    Thanks for all the work on this.

  21. Joe Dolson
    Member
    Plugin Author

    Posted 2 months ago #

    Really? How weird. That was a totally unrelated bug fix...

    But I'll take it!

    Thanks.

Reply

You must log in to post.

About this Plugin

About this Topic