Categories
General

Photopress 0.9

This version includes a few fixes, and a couple of new features. It should work with both WP 1.5.2 and 2.0. If you’re upgrading, make sure to de-activate and re-activate to update the database table.

New features and fixes:

  • Added a category slug field and code to use it – this should fix the permalink problems related to strange characters in category names.
  • The popup tool shouldn’t throw Javascript errors anymore. I also added code to suppress the Browse tab if the tool is launched from the Manage page.
  • There’s now some Javascript to change the Insert buttons a little to show users which images they’ve inserted.
  • The popup tool’s Browse tag has a dropdown category menu that will display images images in a single category.
  • The random image template function (pp_random_image_bare) can now display multiple random images. There are some details about it in the readme and the Photopress page.

Download Photopress 0.9: photopress.zip OR photopress.tar.gz

As usual, let me know what’s broken or needs work. Thanks again for all the bug reports and feature ideas!

Categories
General

Photopress 0.8.5

This version is still mostly bug fixes, so I’m sticking with 0.8.x. It should work well with both WordPress 2.0 and 1.5.2.

New features and fixes:

  • Fixed a bad bug in the duplicate renaming function. Also added a maintenance function to clean up filenames if you’ve uploaded a few with bad names.
  • Fixed the bug Nonni found where ampersands in category names messed things up. Photopress should now handle ampersands in category names just fine.
  • Fixed a few problems with permalinks. They work differently in WP 2.0, so I’m handling it with some version-specific code, which sucks.

Download Photopress 0.8.5: photopress.zip OR photopress.tar.gz

As usual, let me know what’s broken or needs work. Thanks again for all the bug reports and feature ideas!

Categories
General

Fixing Photopress for WP 2.0

I’m working on getting Photopress to work well with WordPress 2.0, but it’s not quite there yet. If you’d like to try what I’ve done so far, download photopress-wp2.zip. Note that you’ll need to disable the rich text editor for image inserts to work right.

Update: I’ve replaced the above file with a new version that seems to work better. Image inserts should work under the rich text editor too now.

Categories
General

Photopress 0.8.4

Nothing too exciting in this version, but if you’re using index.php-based permalinks you’ll want it.

New features and fixes:

  • index.php-based permalinks should work now. Thanks to SHRIKEE for spotting and testing this fix.
  • Added a mass resize function. Thanks to Roge for the idea and code.
  • Added an image rotate function.

Download Photopress 0.8.4: photopress.zip OR photopress.tar.gz

What I’m doing next: I think I’ll add category slug and hide image fields to the DB table, plus the bits for working with them. This should lay the groundwork for eventually storing a category’s images in a category-slug-named subfolder of the photos folder. With a lot of images it gets crazy storing them all in the same folder.

Categories
General

Style for images with Photopress

A few of you have noted that the CSS classes available by default for inserted images don’t work very well. centered does center images, but it adds a break so multiple images end up in a vertical column. alignleft and alignright are intended for wrapping text around images, so they’ll break your blog layout if you don’t have enough text in a post. In the next version I’ll probably include an empty class for the default as a sneaky way to avoid complaints. However, you really should use a custom class. Here’s how:

Edit your theme’s style file (style.css), inserting a new class or classes to use for your images. This one adds some padding and a border:

img.pp_style {
padding: 3px;
border: 1px solid #000;
}

Now add pp_style to the list of classes at Options:Photopress. The first one in the list will be the default when you insert images using the Upload/Browse popup tool.

You can do the same thing for random images. By default they use the centered class but at Options:Photopress you can enter any class you’d like.