• Resolved spalomba

    (@spalomba)


    Our site is a Basketball team site. We’d like to show the incoming events but also future and past (last least the current season) matches.
    In month view, is it possible to show past, current and next month (multiple month view)?
    Is it foreseen to have a different system (arrows, <> symbols or whatever) for navigation between different months (periods)?
    Finally, understood that we could set the startdate of the feed to whatever date, could we set the show date to another value (i.e. today as default)?

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author room34

    (@room34)

    Some feeds automatically remove past dates after a certain point, so the first thing you’ll want to do is make sure that your feed is keeping the past events that you want to display.

    Setting startdate is the correct way to keep past events in the feed, but since it’s a fixed date, you’ll run into a couple of problems: First, that date would always be the start of the calendar (unless you manually change it), and therefore would also be the date that displays by default when the page loads. Second, you’d need to set a really large limitdays value to keep future dates appearing (or, again, manually change it periodically).

    I may look at adding a pastdays option that you could use instead of startdate, so that the calendar display would still load on the current date, but it would include a rolling number of days in the past as well. (For example, if you wanted to always show the previous 3 months you would set pastdays="90".)

    Again this feature is not in the plugin right now, but I’m working on the plugin today so I’ll see if it’s something I could add without too much trouble.

    As far as navigation with arrows goes, that is also something I’m considering.

    Thread Starter spalomba

    (@spalomba)

    Excellent.

    I’m looking forward to seeing (wishing) these deveopments

    Plugin Author room34

    (@room34)

    I’m currently checking in version 5.2.0 of the plugin, which adds this pastdays feature. This should be available to download within the next hour.

    Note that since limitdays calculates from the first date in the displayed range, not the current date, you may need to adjust it as well. (For example, the default value is 365, so while it currently displays future events for a year out from the current date, if you were to use pastdays="90", then the calendar would only show 9 months of future events.)

    Thread Starter spalomba

    (@spalomba)

    Excellent.

    I’ll let you know asap.

    Thread Starter spalomba

    (@spalomba)

    Seems not to be working

    My code:

    [ics_calendar bypassworkaround=”true”?tzoffset=”Europe/Rome” limitdays=”400″ pastdays=”90″ url=”webcal://p41-calendars.icloud.com/published … ” title=”none” description=”none” view=”month” location=”true”]

    The result should be seen in the page I reported in my first post. Limitdays is working. Pastdays not.

    Thank you

    • This reply was modified 4 years, 11 months ago by spalomba.
    Thread Starter spalomba

    (@spalomba)

    Ops … I didn’t update the plugin …

    It works perfectly!!

    Thank you!

    • This reply was modified 4 years, 11 months ago by spalomba.
    Thread Starter spalomba

    (@spalomba)

    Now, let’s do something for the navigation arrows (or similar).

    Plugin Author room34

    (@room34)

    I’m glad it worked! By the way, you can remove bypassworkaround and tzoffset from your shortcode. Those settings no longer have any effect. (I’m potentially going to reintroduce tzoffset in the future with a slightly different purpose, but right now the plugin isn’t doing anything with it because after I updated the ICS Parser library, it was no longer functioning as intended.)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Several months’ is closed to new replies.