Posts Tagged ‘friday photos’

Friday Photos Version 1.2

Friday, May 16th, 2008

This release corrects two minor issues and implements a new feature. First, the most significant issue corrected was that the number of photos added to the post wasn’t always returning the amount specified by the option “Max Number of Photos to Display”. This was happening because the number of uniquely titled photos requested could be more than the number of photos recieved from the Flickr API call. Essentially the correction required calling the Flickr API until the “Max Number of Photos to Display” value had been reached or no more photos were available that matched the search criteria. The second issue required the renaming of the more_reccurences() and all references to it, to fridayphotos_more_reccurences(). This was to insure no collisions would occur with other plugins implementing this function. A new feature was also added to this release it will allow for posts to be generated in statuses other than “published”. This is managed on the Friday Photos’ “Option” screen through a new DropDownBox titled “WordPress Post Status” that allows the user to select the appropriate status. You can download the Version 1.2 of Friday Photos here.

Friday Photos Version 1.1

Monday, May 5th, 2008

Friday Photos Version 1.1 corrects two issues and implements a new feature. First to support weekly scheduling the implementation of WP Pseudo Cron required a “weekly” interval value that isn’t part of the default cron_schedule filter. To add this interval value the implementation of a filter function, as explained in the article Timing is everything: scheduling in WordPress, was needed. The code is shown here:

function more_reccurences() {
return array(
'weekly' => array('interval' => 604800, 'display' => 'Once Weekly'),
'fortnightly' => array('interval' => 1209600, 'display' => 'Once Fortnightly'),
);
}
add_filter('cron_schedules', 'more_reccurences');

Secondly the “Author” field wasn’t being set properly and required a small change to pass the field from the form to the database. Additionally Friday Photos now supports the ability to pull in the picture’s description from Flickr. This is handled through a new checkbox titled “Include Flickr Description” on the “Friday Photos” admin screen. You can download the new version of Friday Photos here.