Okay
  Public Ticket #2881684
Display event list in widget area
Closed

Comments

  • LISSINTERACTIVE started the conversation

    I have an event list on the front end dashboard in a widget called "On Call This Week" which is supposed list current events. The event will only display if the date is in the future. How do I make it display if it is current, like today or this week? (Monday-Friday)

  •  877
    Zhivko replied

    Hi,

    Indeed expired/events-in-progress are not displayed when the widget is set to upcoming events only.

    You could make a small mod to the code which should resolve this.

    Please try following:

    1) Open file wp-content / plugins / stachethemes_event_calendar / assets / php / class.events.php

    2) Search for function get_upcoming_events on line 543

    3) On line 546 there's this code:

           $start        = gmdate('Y-m-d H:i:s');

    replace it with:

           $start        = gmdate('Y-m-d') . ' 00:00:00';

    Stachethemes Developer

  •   LISSINTERACTIVE replied privately
  •  877
    Zhivko replied

    If you provide me with wp-admin I'll sort it out. As I said earlier upcoming events don't show events that are currently in progress. That's intentional by design and not a bug. 


    Stachethemes Developer

  •   LISSINTERACTIVE replied privately
  •  877
    Zhivko replied

    Cache was turned on and most likely was pulling old data before the changes.

    I've altered the code to display events starting from the first day of the current week. I assume this is what you need?

     $start        = gmdate("Y-m-d", strtotime('monday this week')) . ' 00:00:00';

    Stachethemes Developer

  • LISSINTERACTIVE replied

    ok thanks, however, that code is different than the one you sent me.

  • LISSINTERACTIVE replied

    one more thing, I noticed when your plugin is activated, some of my icons disappear, in the dashboard and in the nav. Is there a way to fix this?

  •  877
    Zhivko replied

    Yes, the previous code was including "today" only. The new one will include the whole current week.

    Could you send me screenshot of the section where icons are missing?


    Stachethemes Developer

  • LISSINTERACTIVE replied

    Attached are 2 screenshots, one showing how it should look, the other shows red boxes where icons are missing.

    Thanks

  •  877
    Zhivko replied

    Could you check now?

    Icons are missing because the calendar is using a little newer version of font-awesome library.


    Stachethemes Developer

  • LISSINTERACTIVE replied

    That worked, thanks a lot!