Categories
General

Photopress

Go to isaacwedin.com/photopress for the latest version of this plugin!

Photopress is a plugin that adds a set of helper tools to WordPress to make working with images much easier. It adds a pop-up uploader and a pop-up image browser to the posting page and a groovy random image function for your template.

To install, download and extract the archive in your WordPress root directory, which should put the files in the right places. To install manually, here’s where everything should go:

  • album.php: in your WordPress root directory
  • photopress.php: in wp-content/plugins/
  • upload.php, browse.php, and photopress-inc.php: in wp-content/plugins/photopress/
  • photos folder: in wp-content/, and it should be writable by your server

The album requires ezstatic to blend into the rest of the blog.

Photopress is based on Florian Jung’s Image Browser, the built-in WordPress upload tool, and Owen Winkler’s Edit Button Template.

To use the random image function, add something like < ?php echo random_image_pp(); ?> to your template (I like to put it at the top of sidebar.php in the default 1.5 theme).

That’s about it. Download photopress.tar.gz or photopress.zip and give it a try.

Update: The archives I uploaded earlier were somehow corrupted – thanks to Larry for noticing that. I fixed them and both worked fine on my clean 1.5 testbed when I tried them out. Just the photopress.php file was corrupted, so replacing that with the new one should do the trick. Note that you may need to change the permissions on the “photos” folder – to test it try uploading a photo.

Update again: Internet Explorer (and some versions of Firefox?) apparently doesn’t like spaces in the window name used in window.open. That’s fixed now, along with a couple of other things. You should be able to just extract the updated version right over the old one. Sorry for the bumpy ride – I appreciate all the debugging help!

Avatar photo

By isaac

I like cats. he/him