Version 2.5.6 – hcalendar and multi days

Version 2.5.6 has been uploaded to wordpress.

All day, Multi day, Adding a day or losing a day?

There has been some fun (not) with all day events (single and multi day).   The plugin will now assume that the same logic that Google calendar and Thunderbird (and probably others) applies is valid.  It is described here.

hcalendar

The css that the plugin produces was so close to what was required for the hcalendar microformat specification that it was a simple matter to tailor it a bit.  I still have to figure out how to cope with the end dates due to the way that the plugin works, but the rest looks good – it validates so far.

The following changes had to be made:

  • the fields that had come direct from the ics file were in the original uppercase (eg SUMMARY) however hcalendar says the classes should all be lowercase.
  • removed the duplication of some classes from the table cell. They are also on the table row. This duplication was breaking hcalendar.
  • added url css tag for hcalendar support.

The matching css file has been updated. If you had your own css using any of these tags, you may need to check whether you need an adjustment.

To see if your calendar page is hcalendar compliant, validate your calendar or events page at http://microformatique.com/optimus/

hcalendar

Share or Save:
  • RSS
  • del.icio.us
  • Twitter
  • Digg
  • Slashdot
  • Technorati
  • Google Bookmarks
  • StumbleUpon
  • Facebook

Related posts:

  1. Recurring event instance modification, multi widget
  2. A table version of IcalEvents
  3. Version 2.5.4 – shortcodes only now
  4. amr ical calendar events list v2.3.3
  5. Version 0.2 alpha of the events plugin is now up

This entry was posted in Ical Events List Version. Bookmark the permalink.

19 Responses to Version 2.5.6 – hcalendar and multi days

  1. Syvar says:

    We’re migrating our site to a blog format and are having difficulty including an event calendar. I found your plug-in and was excited that we could use similar functions to what we were using with a Google calendar. Unfortunately, I can’t activate your plugin. We’re getting the following error.

    Plugin could not be activated because it triggered a fatal error.

    Parse error: parse error, unexpected ‘&’, expecting T_VARIABLE or ‘$’ in /home/content/s/y/v/syvar/html/DebtFreeProject/DebtFreeProject2/wp-content/plugins/amr-ical-events-list/amr-ical-events-list.php on line 277

    There is no function on line 277 of this file. Any suggestions?

    Thanks for the help and for the plugin.

    Sy

    • admin says:

      what version of php are you on?

    • Syvar says:

      PS… we’re using WordPress v 2.8.5 w/ PHP 5.2.5 on a Linux

      • admin says:

        Hi Syvar,

        usually the only reason you get a “parse error” is because the version of PHP is outdated or missing something the plugin uses – see the readme file. So far I had thought that php 5.2.5 should be the minimum you need – see the readme file.

        Line 277 has: foreach ($icals as $i => &$p) .

        It is using a reference variable as per
        http://www.phpf1.com/tutorial/php-foreach-loop.html
        and the php manual says should be okay with php 5
        http://php.net/manual/en/control-structures.foreach.php

        That version of the plugin parses and activates fine on my system, so can only think it must somehow be something to do with your php installation. Let me know if you find out what it is.

        • Travis says:

          We’re unable to find the cause of why the plugin won’t activate. Too bad because it looked like exactly what we needed. If anybody finds out anything, I’d appreciate knowing.

          Regards,
          Travis

          • admin says:

            HI travis – it seems some implementations of PHP do not handle modification of an array during a foreach using %$.

            I have now rewritten the code in question to get away from that usage – see version 2.6.2 – let me know if that sorts your problem out (as I cannot recreate it on any of my systems!)

  2. David says:

    Hello; wonderfull plugin!
    I want to use this plugin on a blog where upcoming events of multiple choirs are shown. I’ve set up a google calendar account with a seperate calendar for every single choir. Each seperate calendar has the name of an individual choir. So far so good.

    I’ve been setting up the widget version of the plugin in a sidebar and that works great, but I can’t get the setup perfect yet… My goal is to display the calendar name of the calendar that holds that upcomming event. That would result in something like this:
    [calendar-name choir 1]: [event summary]
    [event start-time]
    [event location]

    [calendar-name choir 2]: [event summary]
    [event start-time]
    [event location]

    [calendar-name choir 3]: [event summary]
    [event start-time]
    [event location]

    etc.

    I’ve been breaking my head over this one, but i can’t seem te find a sollution to show the calendar name in de listing of a single event… Can someone help me on this one?

    Thanks in advance!

    David

    • admin says:

      Hi David,

      I don’t think that there is a way to do that with the plugin now

      You can have the calendar name once at the top of a list of events, but I have not made provision for repeating it in front of every event. If that is really what you want, the easiest way would be to simply enter it in the beginning of each event summary.

      Another possibility:

      The current widget does not allow multiple instances, but a later update will. Then you could have a separate instance for each choir and with some clever styling, you could make it work. In the interim you could play around with the idea in a page using shortcodes. Some pitfalls:
      - try to only use one column for this or fix in the css your table column widths. Each shortcode usage has it’s own table and they will auto size by content – so may look different.

      Good luck

      Also am working on a add on that will allow you to enter events in wordpress and generate an ical file – thus keeping the whole process “in house” while still offering ical functionality. This may be of interest to you.

  3. Domus says:

    Hello! Excellent plugin. Put yourself in the blog http://www.blog-mosaic.ru and very pleased with it:)
    I have only one question: you can do so that when the planned post (NOT draft) was done automatically when you save an entry in Google Calendar. All data for this in the post is. In this case, it is very simplify and eliminate many errors when making new entries in Google Calendar.

    I would be very grateful for the answer!

    • admin says:

      Hi Domus,
      Sorry I don’t understand what you are asking – I have no control over google calendar.

      I am now working on the possibility of adding events in to wordpress and generating an ical in house – there are similar other plugins that do this, but not the way that I think it should work. This may help you

  4. Trat Map says:

    Installed your plugin and got a widget going on tratmap.com, but events with a URL don’t become a link:
    “upcoming events” is a link to a 30boxes display of the iCal source
    you can see that [for example] Oct 23 2009 event has a link (the 30boxes popup has “more info” for it).
    Still the widget doesn’t turn the Oct 23 event to a link.
    Am I doing something wrong?

    • admin says:

      You just needed to refresh the cached file – you must have added the link after the first time and not forced a refresh – so you were seeing the older ical file. See http://icalevents.anmari.com/1814-refresh-calendar-if-new-dates-not-showing/ for more info.
      I think I am going to have to rework it somehow so the refresh icon shows by default on the widget too, with the last date time of refresh,as these seems to catch many people…..

      • Trat Map says:

        Thanks.

        Added a refresh button temporarily, and it didn’t work for some reason.

        Fixed it by setting cache to 0, reloading, and to 24 again fixed it (btw, what’s 24? hours?). Maybe you could add a “clear cache” button at the configuration screen?

        Cool widget. Thank you for writing it.

  5. DavidC says:

    I am using your iCal WordPress widget and it looks like it is letting me get exactly what I was after … a VERY simple agenda type list of upcoming events in the sidebar, styled like the blog page.

    Have you given any thought to making a stand-alone PHP version that could be put on an HTML web page, outside of WordPress? I can’t find anything like that, and Google’s gadget works, but can’t be styled to match your page.

    Thanks for a great product!

  6. shelley says:

    Anna-Marie,

    The day after I launched my site with your plugin Google went down for several hours and I ended up going several months without the widget running. Now I’m trying to get it all active again and the widget is throwing errors when I try to put multiple ical feed addresses in it. I’ve upgraded to the latest version and checked my feeds.

    Error: Error parsing ical calendar http://www.google.com/calendar/ical/282oflh3ekt0hr07avablp8o10%40group.calendar.google.com/public/basic.ics,http://www.google.com/calendar/ical/1kd7a17rd3pj21re6s6gshf51k%40group.calendar.google.com/public/basic.ics Invalid URL! Invalid URL! Invalid URL! Invalid URL!

    I’ve tried it with a variety of spaces and separators (comma, semicolon, space, etc.) with no luck. My notes show it used to work with just a comma between the URL’s. Any thoughts? I’d really love to get this Google iFrame off my site!

    • admin says:

      Hi Shelley,
      yes when I reworked some of the code and decided to go with a shortcode route and dropped support of the old filter method, the widget lost the ability to handle multiple urls.

      Since I did not think anyone was using multiple urls in the widget, I left it as is. It should be easy to add the possibility back in though – stay tuned in the next day or so.

    • admin says:

      Hi Shelley – just uploaded version 2.5.7 which should sort you out.

      Note if google goes down again, the plugin may show a message above, but should I think still list the events from the last cache – the time of the cache is shown in the hyperlink text of the refresh button if you choose to display that (is default for the page calendars, but can also be switched on for the widget – see calendar property settings)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>