Izikistan

Photopress

Go to familypress.net/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!

30 Responses to “Photopress”

  1. John Says:

    Is this available in a different archive than *.tar? I cant seem to unpack the files? Or can you mail this script to me??

    John

  2. Larry Ayers Says:

    I think something is wrong with your tar archive; I downloaded it twice and found that there seems to be binary corruption in photopress.php. I try to activate the plugin and get a bunch of errors from WP. I’m sure this can be attributed to the file corruption. Take a look!

  3. isaac Says:

    I’ve added a .zip archive that should work for those without tar. Not sure about the corruption problem – I’ll do some testing to see what’s up.

  4. This Is Not A Love Story Says:

    I can’t get the buttons to do anything. They show up on the “writePost” page, but clicking them with Firefox and IE doesn’t do anything.

  5. Pascal Says:

    I do not have buttons on the “writePost� page nor anything new in any admin page. EzStatic is installed.

  6. Larry Ayers Says:

    The new tar archive works fine now. Thanks!

  7. Stu Schaff Says:

    Is there a demo somewhere we could see?

  8. Dave M. Says:

    OK, I know I’m doing something really stupid or something. But I can’t get the Upload Image or Browse Image buttons to do anything. I’ve tried both the ZIP and TAR.GZ files and get the same results with both. I have ezStatic installed and activated as well.

    Any ideas? I’m using Firefox, although I tried it with IE and nothing happened there too. Thanks.

  9. Paul Says:

    Isaac, I’ve installed photopress, and it’s working fine. What I would like to know is can I customise the way it works. When I upload the pic it creates a thumbnail, and a link which goes to another page. The picture that gets posted is a thumbnail with height and width attributes set. I have to remove the thumb_ prefix from the name and remove the height and width to make it post at full size, which is what I want. Is there any way I can configure the plugin to do this automatically?

    Is the link meant to go to album.php? my link goes to a credits page.

    Thanks…

  10. Michael Says:

    Like others, in the ‘Write-Post’ I see the ‘Upload’ and ‘Browse’ buttons, but nothing happens when I click on them.

    I’ve double checked my work: correct paths, ezStatic, etc.

    I’m using WP 1.5 and Firefox in OS X.

    Thanks.

  11. Kelly Says:

    Hello Isaac, this plugin works great. However, the photo album page’s sidebar got mess up, it moves out of the template, and the photo album page doesnt work with other template as well, when I click to the thumbnail, it will lead to entry doesnt exit.

    I’m using WP1.5. What’s wrong with it? Thousand thanks!

  12. N. Says:

    Same problem here as well. I have the buttons, but they do nothing. Too bad too, because it looks like the perfect plugin. I’ll be keeping an eye out on this one.

  13. Jeff A Says:

    Has anyone had luck with the button problem? Mine won’t work either!

  14. R@lf Says:

    Does it work/function with IImage Browser? (http://fredfred.net/skriker/index.php/iimage-browser)

  15. Mike Says:

    I’ve tried out Photopress and after a little hair pulling before I remembered the blurb about the hack to get buttons to work in Safari, I got the buttons to show up. However, when I upload an image, the file copies up fine but I get an error: “Fatal error: Call to undefined function: imagecreatefromjpeg() in /Library/WebServer/Documents/wp-content/plugins/photopress/upload.php on line 158″ and no preview icon is created. Running OSX Server 10.3.8 with latest Java (1.4.2 update 2) and everything else, PHP 4.1, mySQL 4.0.18, WP 1.5 and have ezstatic enabled. Is imagecreatefromjpeg() in the standard Java libs? I notice Wordpress also calls this in line 215 of admin-functions.php.

  16. laurie Says:

    I installed the plug-in and it works great for the uploading and the display of the thumbnail. Buttons work fine for me.
    However, when you click on the thumb, you get taken to my static “about” page–not to the full-size pic link. I’ve looked at the path in my post, and the path looks good, but that’s not where clicking takes you!

    Any ideas? I’m using WP 1.5, and I never DID get IImage to work, either!

  17. laurie Says:

    K, back again, lol.

    The path to the thumbnail is correct, but the plugin inserts an odd path for the fullsized picture:

    of course, I’m able to change the path, but I’m trying to help a friend who wants to avoid typing addresses.

    Thanks much

  18. Andy Says:

    Is there anyway to have the images on there own seperate Album page rather than all thrown together on one…that way I can post a link to Album 1 or Album 2 static pages….

    HELP needed on this one any ideas?

  19. FilSchiesty Says:

    I’m having the same problem laurie is reporting above? Any ideas how to fix this?

  20. Scott Says:

    Is there a quick and easy way to migrate the existing photos on a blog so they can be displayed in the Photopress album and appear in the random thumbnail sidebar display?

  21. Danielle Says:

    Erm…I just installed it an I’m getting an error (Fatal error: Call to undefined function: get_option() in /home/tarnishe/public_html/blog/wp-content/plugins/photopress/photopress-inc.php on line 9) on every page after I activate the plugin :/

  22. Ben Wagner Says:

    I’m having some trouble integrating Photopress with my current theme (Falling Leaves) and despite following through with the installation instructions on this subject I haven’t been able to make the work together properly.

    From what I can see, the theme starts a div layer called “Container” in the header file which is then broken up by including the Photopress functions. Ideally the container layer should continue to the footer, as the look and feel of the site completely changes as a result.

    Any tips or assistance you can provide are welcome, thanks for creating a terrific product.

  23. Matt Says:

    First of all, thanks for creating and providing continued support for such a wonderful plugin. It works wonderfully.

    I have just one question: how do I delete pictures? Perhaps I’m missing something obvious here, but I can’t figure this out for the life of me. Any pointers?

  24. Dustin Says:

    I was wondering the same question… I could always just delete the photos from the server, but is there any way to do that from within Wordpress?

  25. Neil Merton Says:

    Firstly, HUGE thank you for creating such a useful and easy-to-use plugin for Wordpress. Very much appreciated!

    Once little tiny request for the next release: Could you add the ability to manage the photos via category first, then the images. Obviously those images not assigned to categories would initially appear when you click ‘Manage’ ‘Photopress Album’, then underneath it would list the current cateogries.

    I would love to able to do this, but I’m pretty new to php so I wouldn’t know where to start.

    What do others think?

    Thanks again!!

  26. AJ Says:

    can you completely turnoff the random image in the meta loop?

    i already placed the random image using the
    function atop the sidebar, so i would like the random image in the meta turned off.

    Thanks!

  27. yottabite Says:

    First of all, great plugin!
    Only one grip however, for some reason the default install makes my validator think that the page is no longer XHTML transitional. You can easily test this by running the default validator from my site. Any help would be greatly appreciated.

    Thanks again for such a wonderful contribution!

  28. Stephen Says:

    I have installed the plugin and get the following error when trying to upload an image “File . of type is not allowed.” I am running it on Win 2003 server box. The photo directory has write access enabled and I have configured options. What do you think?

  29. nix Says:

    I have been fiddling with this plugin today. It’s great!

    I don’t get the buttons on my post writing page so it’s a bit of a cludge to get pictures up. Any ideas?

  30. uri ashi Says:

    is it possible to show the most recent image instead of the random image at the sidebar?

Leave a Reply

All comments are scrutinized minutely by trained monkeys and thus may not appear right away, especially if you include links...monkeys love links!