Support » Plugin: ICS Calendar » Square brackets in the iCal subscribe URL

  • Resolved aezzell2020

    (@aezzell2020)


    The link just goes to a test page where I am trying out various display options for a test calendar created on CalendarWiz.

    For reasons unknown, the CalendarWiz URLs that allow you to limit the feed by event category have square brackets inserted. In order to display just one category, the url is http://www.calendarwiz.com/CalendarWiz_iCal.php?crd=uucp21&cid%5B%5D=278150

    And that works just fine when I use it to pull events into my Google calendar.

    But – no big surprise here – when I try to insert it in the ICS Calendar shortcode, it doesn’t work.

    [ics_calendar url=”http://www.calendarwiz.com/CalendarWiz_iCal.php?crd=uucp21&cid%5B%5D=278150″ title=”false” view=”list” limitdays=”8″ eventdesc=”true” location=”true”]

    Instead of the calendar, I see just this:

    =278150″ title=”false” view=”list” limitdays=”8″ eventdesc=”true” location=”true”]

    I have already whined to the folks at CalendarWiz, but I don’t really expect any joy from them. I’m hoping someone here will have a clever solution. (Even if I have to switch to the Pro version to solve this; I’m okay with that.)

    I really REALLY don’t like the limitations of the CalendarWiz display options. ICS Calendar was going to be my salvation.

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

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

    (@room34)

    Well, switching to the Pro version wouldn’t solve this issue because the parser is the same in both versions.

    The square brackets in the URL should be getting converted into escaped entities, which it looks like it’s happening in the code above — %5B%5D.

    I tried pasting that URL into the preview tool — icscalendar.com/preview — and it worked properly. I also tried your exact shortcode in a page on my test site (with the “smart” quotes converted to straight quotes; I do think those got messed up by the forum, but you should double check), and that worked as well.

    If you don’t have the square brackets converted into %5B%5D in your actual shortcode (meaning, maybe the forum here converted it in your post), try it. If you do have them converted and it’s still breaking, then it’s possible there’s a conflict with another plugin or your theme, which may be converting those characters into the square brackets and then breaking the shortcode parsing.

    Thread Starter aezzell2020

    (@aezzell2020)

    Indeed – this worked:

    [ics_calendar url="http://www.calendarwiz.com/CalendarWiz_iCal.php?crd=uucp21&cid%5B%5D=278150" title="false" view="list" limitdays="3" eventdesc="true" location="true"]

    whereas this didn’t:

    [ics_calendar url="http://www.calendarwiz.com/CalendarWiz_iCal.php?crd=uucp21&cid[]=278150" title="false" view="list" limitdays="3" eventdesc="true" location="true"]

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.