Support » Plugin: My Calendar » [Plugin: My Calendar] widget list by days comes up empty

  • Resolved kchayka


    First I want to say that I think this is the best calendar plugin available and I appreciate the work put into it, and the continual enhancements. I thank the author for his efforts.

    Having said that… I’m testing the latest MyCalendar on my local WAMP server for a new client site. This is a fresh install of both WP 3.3.1 and MyC 1.10.8.

    The site is for a doctor’s office. So far I:
    – changed the name of the default General category to Events
    – added a second category “Office Closed”, assigning the existing appointments.png icon
    – added a single item to each category, neither of which is a repeating or multi-day event, and both set to begin before the end of this month

    I want 2 widgets in the sidebar, one for each category and showing everything in that category coming up in the next 30 days. When I display upcoming events by Events, the 2 widgets seem to work OK, each showing the applicable event, but when I change it to display by Dates, at least 1 widget gets lost and doesn’t find anything to list at all. A var_dump($events) in the widget code after it checks for upcoming_type==”days” shows all NULL values are returned from my_calendar_grab_events.

    I hope you can fix this. I can fall back to widgets displaying by events temporarily, but I really want the “by dates” to work correctly.

    BTW, I do see an error – both widgets get the same id=’upcoming-events’ which is invalid.


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Joe Dolson


    I’m aware of the invalid upcoming events ID problem – it’s one of those regrets that I used it early on, but fixing it is now a massive problem due to dependent styling. Very frustrating, but won’t be fixed soon, unfortunately.

    I’ll check out the listing by dates issue.

    For the styling issue with the dupe ids, maybe you can assign unique ids by appending a -number, then use an attribute selector in the CSS, which is supported by most browsers these days, e.g.
    div[id|=”upcoming-events”] (id begins with…)

    Plugin Author Joe Dolson


    I could do that; but that’s not actually the problem – the problem is the need to update all of the in-use stylesheets. My Calendar is designed to allow users to customize their styles, and assumes that they have — and does not update stylesheets on upgrade. As a result, I’d have to do a massive string replace across all stylesheets — and would still not capture any custom jQuery they’ve written accessing those styles or any custom styles added to their themes. It’s problematic.

    And ‘supported by most browsers’ doesn’t do it for me, anyway. Solving the problem with dupe ids is very easy — solving the problem of having a working upgrade for users is not.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: My Calendar] widget list by days comes up empty’ is closed to new replies.