Birthdaze 0.4

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

Tagged Leave a comment

flickpress 1.4

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
Tagged , Leave a comment

flickpress 1.3…

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

Tagged , Leave a comment

flickpress 1.2

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

Tagged , Leave a comment

How to change the photo border

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.

Tagged Leave a comment

flickpress 1.0

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

Tagged , 1 Comment

OrgPress Theme 0.3

This version fixes a few problems I found with navigation – sometimes I was using the wrong template tags, sometimes I just didn’t have the navigation stuff in the right place. Hopefully it’s all fixed now.

Next, as I noted in the previous post, I think it makes sense to link to fancy author pages whenever possible. So, I added code to the comment function to link to logged-in commenters’ author pages.

In addition to refining the author template a bit, I added some code to display links to Facebook and Twitter if the user has entered those. You’ll need a separate plugin to add those fields to their profile, such as Twitter Profile Field or Profilo.

Download OrgPress 0.3: orgpress_0.3.zip

Tagged , Leave a comment

Linking to a commenter’s author page

Normally, when a logged-in user leaves a comment, a link pointing to the URL in their profile is added to the comment. This is fine, but what if you’ve set up an author template to serve up fancy author pages? Wouldn’t it be better to link there instead? If your theme already has a replacement wp_list_comments function, it’s pretty easy.

Add something like this to the top of your comment callback function in your theme’s functions.php:

$comment_author = get_comment_author();
$comment_author_link = get_comment_author_link();
if (!empty($comment->user_id)){
  if ($author_url = get_author_posts_url($comment->user_id)) {
    $comment_author_link = '<a href="' . $author_url . '">' . $comment_author . '</a>';
  }
}

Now you can echo out $comment_author_linkĀ  wherever you had the standard author link. If the commenter is a logged-in user, the link will point to their fancy author page – otherwise it’ll just point to the commenter’s URL as usual.

Tagged , Leave a comment

Photopress 1.7

This version adds a few new features:

  • Switched to thickbox for the popup, like flickpress.
  • Added paging for the main album page, helpful if you have a lot of categories.
  • Added a jquery show/hide form for logged-in users to edit image info right in the album.
  • Fixes localization based on Renato’s comment.

The album paging feature is a little flaky – when permalinks are on it only works for month- or day-based setups. You’ll also probably need to refresh your permalink setup to get it going.

I still have a problem on my family blog now and then where a few categories mysteriously get changed to default. It never happens during testing, so I’m not sure how to figure out what’s going on.

I haven’t updated the options to break pre-2.8 compatibility, but I expect to do that for the next version since it’s supposed to improve security.

Update: Fixed a little bug in the album paging thing – replaced 1.7 with 1.7.1.

Download: photopress_1.7.1.zip

Tagged 1 Comment

flickpress 0.9

This update adds a bunch of error checks and notices to make sure that you enter a working Flickr API key and a working capability in the settings. I set “edit_posts” as the default capability to use the plugin since choosing that was a little nebulous. I also fixed a bug where only the first page of search results was showing up (which I noticed while adding some jquery show/hide stuff for the license lists). Finally, I added an option to turn off captions by default. They’re still turned on to start with, but I figure that if you’re just using this plugin with your own photos you might not want captions.

There’s now a nice changelog in the WordPress Plugins Directory that you can check out to see if I missed anything.

Get flickpress 0.9 from the WordPress Plugins Directory.

…or right here: flickpress_0.9.zip

Tagged , 1 Comment