Archive for Development

Calendar Translations

The first translations have begun to trickle through for Calendar; German, Spanish and Galician. You can download these translations in the translations thread on the calendar forums.

Many thanks to those who have taken the time to translate and who have shared their work with others by submitting it to me for publication. If you have translated Calendar into your native language, please submit your PO file to me for compilation and distribution.

Comments (7)    

Forum registration issues

It has recently come to my attention that users of Calendar were having trouble registering on my support forums so they could ask questions – activation e-mails were not arriving.

I have now fixed the issue with the server that was causing these e-mails to fail and have ensured that all outstanding messages have been sent, so anyone who registered so they could ask a question and hadn’t yet had got their account activated should now be able to do so.

Comments off    

Calendar 1.2.2 Released

Calendar version 1.2.2 has been released. You can download it from WordPress or from my own site. Thanks to all who helped with testing and especially to those who offered solutions to discovered issues.

Keen eyes will notice that 1.2.2 supports WordPress 2.8 but the latest stable version of WordPress is 2.7.1. All this means is that I have tested compatibility with the latest 2.8 beta in readiness for it’s stable release date.

Comments (31)    

Calendar 1.2.2 Beta Released

As promised in my post just a day or two ago, Calendar for WordPress 1.2.2 has now been released in beta. You can download it here.

In addition to the promised new features and bug fixes detailed in the last post, the following have also been squeezed in.

  • Corrected a couple of spelling mistakes in the default English language text
  • Fixed a Calendar admin panel issue where URLs would grow in length if certain options were chosen consecutively
  • Ensured that, should an error be thrown due to problematic user entry, the entered data would remain on screen for easy correction

As always, please be aware that this is beta software. It might have bugs or errors and using it on a live site would be unwise. If you are tech-savvy and wish to test this release then I would be most grateful for your feedback and bug reports in the comments on this post. If not then the non-beta full release will be made available when WordPress 2.8 comes out of beta which looks to be any day now.

As an aside, it seems fitting that a new version of Calendar is being released now as the total number of Calendar downloads has recently exceeded 30,000!

Comments (8)    

New Calendar release afoot

I’m currently working on an interim release of calendar, version 1.2.2. This should be ready by the start of next week. I say interim because this is simply a precursor to a brand new release, 1.3, which will be packed with new and requested features. This bumper new version should grace the internet with it’s presence in August.

As usual I will be looking for beta testers for the new release so for everyone who is interested in testing this, please keep an eye on my blog for the release announcement next week.

Features and bug fixes being added in the 1.2.2 version include:

  • Full gettext language support
  • Fixed bug with subscribers permissions variable
  • Improved README and FAQ
  • Changed link back to point here instead of old business site
  • Fixed bug with function call to capture blog URL
  • Neatened some rough edges in the back-end styles
  • Fully tested WPMU support
  • Support for WordPress 2.8
  • Improved error catching
  • Fix implemented for ambiguous error messages
  • Improved widget behaviour by abstracting legacy calls from widget calls

I hope you will enjoy the new release and would, at this stage, like to thank all those who have reported bugs. I do listen, even if I don’t reply and I hope this list of fixes shows that this is the case. As above, testers be sure to keep a look out for the beta version!

Comments (2)    

Photo Blogging

Readers probably wouldn’t have taken much notice of the recent photo posts here and here on my site. The thing is though, these are a result of a bit of ingenious behind the scenes code that allows me to snap a picture with my BlackBerry camera and blog it in seconds thus allowing me to start a photo blog category that comprises of quick snippets with a photo for when a picture is more appropriate and I’m no where near a computer.

The real power behind this is Flickr but as those who know me will testify, I don’t like to use external services that take people away from my site, so I devised a way to bring the convenience of mobile Flickr uploads to my blog rather than to Flickr.

To begin with, the easy bit. I registered a Flickr account and installed the Flickr application on my BlackBerry. Now I can take a photo with the BlackBerry and send it to my Flickr photo stream with a title and a caption in a few seconds. Now comes the hard bit. Getting the stream on my blog and removing any Flickr artifacts along the way.

The saving grace here is that Flickr provides an RSS2 feed of any users photostream (so long as it’s set to public). In addition to this, there is a popular WordPress plugin called Feed WordPress that allows the syndication of RSS feeds onto your blog. I installed this plugin and subscribed to my Flickr feed with it. Now I was getting all photos posted to Flickr on my blog, I just had some cleaning up to do, and annoyingly, this is what took the time and effort.

Firstly Feed WordPress is designed to list all feeds coming into a blog as contributors so you can give appropriate credit. In my case though it was my own Flickr feed so I wanted to avoid this link category being shown on my site. To fix this I specifically excluded the category Feed WordPress had earmarked for contributors by specifying it in the arguments of the theme function that displays the links list. Users who are using a theme with widgets or who haven’t customised their site as much as I have might be able to use widgets to do this.

Secondly I had to change some Feed WordPress settings to get perfect operation. Mainly forcing all “posts” from Flickr to go into my Photo Blog category and also to ensure that all these would be attributed to my username. I also entered the default Flickr e-mail address,, as an allowed user such that my Flickr entries would be syndicated without going through moderation. This would be a security risk if I wasn’t the only person who could add feeds to my syndication list or post to feeds already earmarked for syndication but as neither of these situations are true its ok.

Finally I needed to ensure that the actual body of the post appearing on my site showed the proper content. By proper content I mean a good sized image, linked to the original and showing nothing else alongside it but the caption and no reference to Flickr.

To do this I used a custom code modification to Feed WordPress which would extract the true location of the picture in the Flickr feed and store it as an attribute of the post. For those wishing to replicate what I have done here, the code below needs to be entered inside the SyndicatedPost class, at around line 1100 in the feedwordpress.php file of the Feed WordPress plugin.

if (isset($this->item['']['content@url'])) :
$this->post['meta']['flickr_original_image'] = $this->item['']['content@url'];

In addition to the Feed WordPress modification I also added a plugin hook that would parse the content of all posts in the Photo Blog category in order to retrieve the image location stored with the above code, correctly display it and to parse the remaining text for the caption thus remove references to Flickr. In the code below the number 36 refers to the id of my Photo Blog category.

Plugin Name: Fix Flickr Posts
Plugin URI:
Description: This plugin removes cruft from the posts imported from flickr
Author: Kieran O'Shea
Author URI:
Version: 1.0

// Apply function to remove content from posts in the correct category
function fixFlickr($content) {
global $post;

$first_cat_id = get_the_category($post->ID);
$first_cat_id = $first_cat_id[0];
$first_cat_id = $first_cat_id->cat_ID;

$flickr_image = get_post_custom($post->ID);
$flickr_image = $flickr_image['flickr_original_image'][0];

if ($first_cat_id == 36)
$photo_bit = '<a href="'.$flickr_image.'"><img src="'.$flickr_image.'" width="450" alt="'.$post->post_title.'" border="0" /></a>';
$pwned = explode('<p>',$content);
$pwned = $pwned[3];
$text_bit = '<p>'.$pwned;
$content = $text_bit.'<div style="text-align:center;border:0;">'.$photo_bit.'</div>';
return $content;

// Add filter to the_content
add_filter('the_content', 'fixFlickr');
add_filter('the_excerpt', 'fixFlickr');
add_filter('the_content_rss', 'fixFlickr');
add_filter('the_excerpt_rss', 'fixFlickr');

And there we have it, my own photo blog that leverages power from the Flickr system but which displays in my own way on my own site. If you want to try this by all means test out the above method and code but I must stress that this method is unsupported by me or anyone else. If you try it and get it to work, please comment below. It is worth noting that any phone with a camera and a Flickr upload program designed for it will work in place of a BlackBerry. To all that succeed with this method, happy photo blogging!

Comments (2)    

Calendar 1.2.1

I’ve pushed out a quick update to Calendar for WordPress. I’d had a few bugs reported with styles that I wanted to fix for perfections sake, but also some more serious issues concerning compatibility with the legacy 2.0.x branch of WordPress. Keen to keep my word on backwards compatibility I fixed the issues, ran some tests and pushed out a new minor version release this morning.

No security issues are fixed in this upgrade so there is no rush to update if you don’t want to but if you are running the WordPress 2.0.x branch I recommend updating as soon as possible so you will be running bug free.

You can grab your copy straight from WordPress.

For those who want to pick up the slightly fixed styles you will need to use the “Reset Styles” tick box on the calendar options screen after upgrading – be aware that you will lose any modifications you have made to calendar styles if you do this.

Comments (26)    

Calendar 1.2 hits

After the latest testing of the release candidate I was pleased to find few if any bug reports and so I have decided to push the release live. I updated the WordPress Plugins SVN repository yesterday and the 1.2 final version is now available for download on and on my site.

I was pleased to note that the download record was broken yesterday on the WordPress plugins site so it looks promising in terms of uptake. If you are running the old version I whole-heartedly encourage you to upgrade. There are a lot of improvements and new features all of which I’m sure you will enjoy using.

Please also note that support is now only available in the open source area of my business forums. This means that blog comments, e-mails and IMs related to calendar support will be ignored. Using the forums allows people to search for a solution first and for me to place regularly asked questions in the FAQ.

Comments (2)    

Calendar 1.2 Release Candidate 1

After a slightly longer than expected break since the first beta release of Calendar 1.2 I’ve decided to go straight ahead and release the first (and hopefully only) release candidate of Calendar 1.2.

Since the beta phase I’ve made improvements that not only fix all the bugs that were logged in comments but I’ve fixed a few others that I found along the way, tweaked some of the things that I didn’t feel were quite right and squeezed in some new features – some of which were originally going to have to wait until version 1.3!

The added features since the last release are as follows

  • Mini pop-up calendars in the admin panel to assist with choosing correct dates
  • Full categories system to allow events to be grouped by type (off by default)
  • Categories key is displayed below the calendar when categories are enabled
  • Events can now be links as well as mouse-overs
  • Items listed in todays events/upcoming events now sport links and mouse-overs.
  • Small tweaks to the style and display logic to improve the standard look
  • Issue of times not displaying according to WordPress settings fixed
  • Issue of extra padding/blank titles on the widgets fixed
  • Issue of mouse-overs not working in IE6 fixed

You may well notice other improvements which have escaped my memory.

Users of Calendar 1.2 beta will be pleased to discover that I decided to provide an upgrade path after all and so you should find that all you need to do is replace your current calendar directory with the new one and you should be away. The same of course applies to users of the current main release (1.1.2) but you should follow the upgrade instructions in the readme.txt file carefully in this case.

Please provide all feedback and any bug reports in the comments of this post. Please do not post feature requests. The release available in this post will be the final release if no bugs are found. If bugs are found they will be fixed and then the final version will be released. No new features will be added until the next major version.

Oh yes and how could I forget, you can download Calendar 1.2 Release Candidate 1 here.

Comments (18)    

Widgets : Help or Hindrance?

I’ve been using WordPress as a CMS in many of the new sites I commission however I’ve always been willing to make modifications to themes and plugins to achieve what I want. WordPress is free software. In my book this means that I should expect to have to make changes to how things work to get everything I want. I’m not paying anyone so its not someone else’s responsibility to make the code do specifically what I need.

Widgets hail a new breed of free software users. Those who do not know how and do not want to know how to make their own modifications to site layouts or styles and yet still expect someone else to make it possible for them, indeed in some cases harass them to do so. Sure widgets are nice. They allow users to drop things in easier and not always having to edit files is a bonus. But someone has to code them, and no one configuration will be right for everyone.

By promoting an architecture that allows anyone to make what were traditionally code based changes to a site we up the ante on developers to provision these things in the first place. Lets not forget that these developers are writing for free and perhaps release something for the common good rather than with a desire to support every user’s whims. Further more there is still the hope that we can support old versions and the differing way with which widgets work make doing so increasingly harder.

So if there is a widget you use but are not 100% happy with, why not thank the developer for making your life easier and then look in the WordPress Codex for how to make the changes you want. Waking up to 30 complaints in your inbox is enough to make any developer want to hang up their keyboard. Waking up to 30 messages detailing the wonderful and amazing ways your free software has been modified and implemented in interesting and exciting ways is enough to make you want to extend your working day to better provide for these innovators.

Comments off    

Next entries » | « Previous entries