Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter marverix

    (@marverix)

    False, alarm! Sorry! ??

    Forum: Plugins
    In reply to: [ICS Calendar] GitHub Repo
    Thread Starter marverix

    (@marverix)

    Yes, I also realized mentioned issues after some testing. Maybe then it would be a good idea to just add a separate view? Like view=”incoming” ? Or something like that? This way we will omit complicating the list view, and just add special logic there. So it could work like that, that you are writing with args how many incoming events display? So something like this:

    [ics_calendar url="URL_HERE" view="incoming" count="3"]
    

    So above will display 3 incoming events? What do you think?

    Forum: Plugins
    In reply to: [ICS Calendar] GitHub Repo
    Thread Starter marverix

    (@marverix)

    Hello,

    I’m not going to fork your plugin, as I don’t see any need to do that. Especially that (as you mentioned) you don’t look for any contributions, and it’s strictly related to your earnings.

    I modified locally “calendar-list.php”, to skip past events. When used with count=”1″ and showendtimes=”true”, works really nice as the “Show incoming event” widget.

    After L62 I have added:
    $current_time = time();

    And then after L174:

    $end_time = strtotime($day . '-' . $month . '-' . $year . ' ' . $event['end']);
    if ($current_time > $end_time) { continue; }

    Of course, would be much nicer to allow enable this feature as a flag (arg).

    • This reply was modified 4 years, 1 month ago by marverix.
Viewing 3 replies - 1 through 3 (of 3 total)