Date
I've released a bugfix version of EventCalendar v3.0. Download it here:

The main changes are:

  • (Sort of) compatible with Wordpress 2.0. A hack to WP is required (see below), and even then the category listing doesn't work. (thanks everyone)

  • Compatible with iCal 2 (thanks Heather)

  • Now works better with Wordpress pages. (thanks David Ellenwood)

  • Added per month header option to event listings.
    (See readme.txt. Thanks Jeff Morrow for the idea.)
  • Now uses 'siteurl' and 'home' correctly.
    (Thanks to Sibo Lin & Rusty Smith for putting me straight.)
  • Fixes incompatibility with PHP5.

Patch for Wordpress 2.0

The following patch is required to get the basic functionality running on Wordpress 2.0. Patch the file wp-includes/classes.php by adding
lines as below. Add the lines starting with '+', but don't include the '+'
itself:
--- wp-includes/classes.php
+++ wp-includes/classes.php
@@ -661,6 +661,18 @@
            } else {
                if (mysql2date('U', $this->posts[0]->post_date_gmt) > mysql2date('U', $now)) { //it's future dated
                    $this->is_preview = true;
+                   /* DIRTY FUTURE-POSTS HACK FOR EC3 */
+                   if (function_exists('ec3_get_calendar')) {
+                       global $ec3;
+                       $ec3_post_0_is_event = intval($wpdb->get_var(
+                           "SELECT COUNT(0) FROM $wpdb->post2cat WHERE post_id="
+                           .$this->posts[0]->ID." AND category_id=$ec3->event_category"));
+                       if ($ec3_post_0_is_event) {
+                           $this->is_preview = false;
+                       }
+                   }
+                   if ($this->is_preview)
+                   /* DIRTY FUTURE-POSTS HACK FOR EC3 */
                    if (!current_user_can('edit_post', $this->posts[0]->ID)) {
                        $this->posts = array ( );
                    }

Mailing List

If you have any questions or comments, then please subscribe to themailing list.