familypress-dot-net : WordPress plugins and things

familypress-dot-net : WordPress plugins and things

Photopress 1.8

5 February 2010

The long-awaited migration release – this version adds some new tools at Tools:Photopress:Maintain that can be used to pull your Photopress images into the Media Library and then replace your Photopress tags with links to those files in the Media Library.

First, you can now migrate Photopress images into the Media Library. Moving images into the Media Library involves resizing images and can be quite a workout for your server – so it’s done in batches based on a new setting at Settings:Photopress that you should change depending on your server resources. Check to be sure your Media Library is working properly – creating thumbnails and whatnot – before trying to import photos. Image title, description, and category are all imported – but maybe aren’t put in the best spots, so let me know if you have ideas about where they should go. The “attached to” field should get filled correctly, but I’ve seen some funky behavior there that I’ll need to investigate.

If you’ve been using tags to insert images into posts you have two migration options for those. For images you’ve imported into the Media Library, you can replace tags with linked Media Library images. Alternatively, there’s a tool to replace tags with links straight to your Photopress images, useful if you don’t want to do the Media Library import.

So far I’ve tested out the migrate functions on my personal blog, where I had about 400 images that I migrated to the Media Library in batches of 50. Tag replacement worked fine.

The next big release of Photopress will not include the popup uploader/browser. The media handling parts of WordPress work great now – there’s just no need for the Photopress popup tool anymore. So, the next major version of Photopress will only include the album and random image stuff – and both will only work with images in the Media Library.

Get Photopress 1.8: photopress_1.8.zip

Birthdaze 0.4.2

1 February 2010

Based on some great feedback and testing from Vac I’ve updated Birthdaze so it should now properly translate dates (month and days of the week). Date formatting is also now done with standard PHP date formatting strings, so you’ve got complete control. See the readme for more information and http://php.net/manual/en/function.date.php details on how to get exactly the date format you want.

This version also (hopefully) fixes a bug where empty “before” and “after” strings in the widget were getting replaced with the defaults.

Get the latest version of Birthdaze here: birthdaze_0.4.2.zip

flickpress 1.6

29 January 2010

Bugfix! @flash just let me know about a bug preventing new Flickr users from getting added. I think I’ve fixed the bug – version 1.6.1 should be available for upgrade shortly.

This release fixes a bunch of cosmetic things and adds some navigation links. I find the Older/Newer links for recent photos especially useful when I want to add several photos to a post.

I made a bunch of little changes to get the markup valid, both in the plugin and for the stuff it inserts into posts. Note that some of the tags I’ve used (table?) might not be valid with your particular theme’s doctype. If you do find non-valid markup anywhere please let me know.

For a fun feature I added interesting photo browsing. They seem to mostly be “all rights reserved” – I’m leaving it to you to decide whether it’s okay to post them or not.

You can get flickpress from the WordPress Plugins Directory.

flickpress 1.5

24 January 2010

Bug fix! Tarique and Falko noticed that having more than one phpFlickr-based plugin enabled at once can result in conflicts. Rather than figure out how to check for the library (and version – conflicts there too) I’ve opted to rename some things in the version of phpFlickr included with flickpress. This should avoid any conflicts, so let me know if you’re still seeing errors.

Another bug fix! Ben noticed a bug that led me to test inserting a bunch of different photos. I finally ran into trouble with this adorable kitty, which has a title that’s got quotes and a description with a variety of fun characters. It turns out I was using the wrong PHP function to escape text – PHP’s rawurlencode seems to go with JavaScript’s unescape. I hope so at least – let me know if you find any photos that won’t insert or if you get unexpected characters in captions.

New feature! You can now browse a user’s favorites. I like to use favorites to bookmark photos to use in posts – it’s nice to be able to get to those right in flickpress.

You can get flickpress from the WordPress Plugins Directory.

…or right here: flickpress_1.5.zip

Birthdaze 0.4

22 January 2010

I’ve been using an embedded Google Calendar instead of this plugin for my family site so it hasn’t been getting much attention lately. Vac posted a comment asking about a couple of changes to make the plugin a little more flexible – having options to show full last names and to remove the “th,” “nd,” and so on from the displayed dates. This release adds those options to the widget and template functions. For extra fun, I also added a shortcode to make adding a birthday list to a page or post much easier. Check the readme for details on how to use it.

Download it: birthdaze_0.4.zip

flickpress 1.4

5 January 2010

Jonathan asked if I could add descriptions and EXIF data to the captions so I decided to give it a go. After some wrestling with JavaScript escaping issues I think I’ve got it working correctly. Please let me know if not!

If you’re curious about escaping data to pass from PHP to JavaScript, I used rawurlencode in PHP and then unencode in JavaScript to decode it. I still don’t know if that’s the correct method.

You can style the table of EXIF data using the flickr-exif class in your theme.

You can get flickpress from the WordPress Plugins Directory.

…or right here: flickpress_1.4.zip

Here’s what a photo with caption, description, and EXIF table looks like:

National Christmas Tree

National Christmas Tree by izik

The tree at the Capitol is the Capitol Christmas Tree, and the one at the White House is the National Christmas Tree.

Camera: Canon EOS DIGITAL REBEL XT
Exposure: 1/500
Aperture: f/0.0
Focal Length: 0 mm
Exposure Bias: -2/3 EV
ISO Speed: 100
Flash: Off, Did not fire

flickpress 1.3…

1 January 2010

Too soon, I know, but this update actually adds a useful feature. Here’s what’s new:

  • Added an option to set the class for the caption div. It defaults to “alignnone” as before if you don’t set it to anything.
  • Updated phpFlickr to the latest version. Nothing new from that so far, but this may allow me to implement some new features later.

As usual, you can get flickpress 1.3 from the WordPress Plugins Directory.

…or right here: flickpress-1.3.zip

flickpress 1.2

31 December 2009

This update doesn’t change much, so as usual you should only upgrade if you see something in the changes that sounds interesting. Straight out of the changelog in the readme:

  • Switched to using wp-load.php in the popup tool.
  • Turned captions on by default.
  • Moved things around on the photo insert page to work better on netbook screens.
  • Tested with WP 2.9.

Get flickpress 1.2 from the WordPress Plugins Directory.

…or right here: flickpress_1.2.zip

How to change the photo border

20 November 2009

Paul asked how to change the border around images. I’m not sure whether he wanted to know for flickpress or Photopress, but it doesn’t really matter. Photopress adds a custom CSS class to images it inserts, but most likely you’d want to change the appearance of all images in your posts, no matter which tool inserted them.

You’ll need to edit your theme’s style file, which you should be able to do as an admin at Appearance -> Editor. It should bring up the Stylesheet, but if not it’ll be in the list on the right side. You need to add something like this:

a img {
padding: 2px;
border: 2px solid #ccc;
}

a:hover img {
padding: 2px;
border: 2px solid #c33;
}

The “hover” part will make the border change on mouseover – if you don’t want that then leave it out. The “padding” part adds a gap between the image and the border. This only adds borders for linked images. If you want borders for all images, whether they’re linked or not, do something like this:

img {
padding: 2px;
border: 2px solid #ccc;
}

You probably just want this to affect images in posts, not the images in your header or sidebar. It depends on your theme, but most themes wrap each post in a “div” element with the class “post” – this will restrict the change to images in that class:

.post img {
padding: 2px;
border: 2px solid #ccc;
}

If in doubt, view the source of your site to see what you might be able to use – there’s often a “div” with the id “content” that wraps the whole content area.

Posted by isaac. No comments so far.
Tags:

flickpress 1.0

12 August 2009

This update just adds some options to the widget, so if you don’t use the widget there’s no need to update. @susansoaps asked how to display images horizontally with the widget, which wasn’t easy to do because the widget was wrapping images in <p> tags. So, the widget now offers options to specify exactly what you want displayed before and after each image. The plugin checks and cleans a few things, but it does NOT check to be sure your tags match or even close properly – check your tags if your site looks broken. Some quick hints:

  • For a horizontal row of images, just leave before and after blank. Put a space in after if you want space between your images.
  • For a vertical presentation, use <p> before and </p> after or just <br /> after.

Get flickpress 1.0 from the WordPress Plugins Directory.

…or right here: flickpress_1.0.zip