Photopress

Photopress is moving to familypress.net – go there for the latest version!

Photopress is now hosted at wp-plugins.org. I’ll continue to put packaged releases here, but the very latest code will be at wp-plugins.org.

Latest version: Go to familypress.net.

Photopress is a plugin that adds a set of helper tools to WordPress to make working with images easier. It adds a pop-up uploader and a pop-up image browser to the posting page, a groovy random image function for your template, and a simple album to display the photos you’ve uploaded.

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:

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

Configure the plugin at the Options:Photopress admin page. The defaults should work well with the default WordPress 1.5 template. As Keith notes below, you must view the options page at least once to populate the options – the plugin won’t work properly if you don’t. (This shouldn’t be necessary anymore, as of 4 April 2005.)

By default the plugin inserts a link to the album and a random image in the sidebar at the bottom of the Meta list. To insert a random image in a different spot, add < ?php pp_random_image_bare(); ?> to your template (I like to put it at the top of sidebar.php in the default 1.5 theme).

Photopress is a messy amalgam of Florian Jung’s Image Browser plugin, the built-in WordPress upload tool, and Owen Winkler’s Edit Button Template (it now uses Alex King’s JS Quicktags).

Screenshots: In lieu of a demo, here are some screenshots of the plugin in action:

Photopress buttons

Upload popup

Browser popup

Uploader add code

Known issues:

  • missing options: see this post for details, or try upgrading to WP 1.5.1
  • broken buttons: a weird browser problem… try enabling the ‘failsafe buttons’ on the Options page
  • broken album layout: edit album.php, in the photopress folder, to match your theme (look at your theme’s index.php for inspiration)
  • bad paths: the plugin tries to guess the right paths, but it sometimes fails – you can set the paths manually at the end of photopress-inc.php (WP 1.5.1 may help with this too)

96 Responses to Photopress

  1. I was wondering if the PhotoPress album could also have an input field for each photo for captions. I’d like to put short captions underneath my photos and, in the case of wallpapers, offer links to the differently-sized versions of each wallpaper design.

  2. Jan says:

    I would like to prepare Photopress for localization. Please get in touch with me if you are interested in merging the changes I make into your main distribution.

  3. Mike says:

    The plug-in looks great, but when I try to upload I get the message that this directory: /www/p/r/premeditated.org/htdocs/index.php/wp-content/photos
    is “not writable by WordPress”. Is that the right path? I changed the permissions on my photos folder to 777, but I’m still getting the same message. Anyone have an idea on what I’m doing wrong?

  4. hi, is there an update to photopress that i can delete some pictures that i uploaded???

  5. Sue says:

    I have the same problem as several writers – with “Filetype not supported. Image not resized.â€? errors and not being able to create thumbs. Is there a simple work around? Geck’s solution is a bit scary! The plug in looks like it does what I want when I can make it show images that have been uploaded.
    Using WP 1.5, have viewed the Options page, read all the posts.. Ok what can I try next?

  6. laksko says:

    Great plugin!

    In the WP-admin, after activating the plugin I get a javascript error:

    Line 153:
    Error: ‘document.getElementById(…)’ is null or not an object

    What do I do to get rid of this message?

    Also, are there plans of adding a bulk-upload of images?

  7. Kate says:

    Hello. I love your photo plugin, I’ve gotten everything to work great, but I’m having one minor problem. I’m extremely picky when I code my site, and I’d really like to make the plugin valid xhtml. I need to change all the “&” to “&” This is only a problem with the links. example

    I hope you can help, or point me in the right direction. Thanks in advance.

  8. Jaypee says:

    having problems with the Categories. when i click some of the categories, i can’t see the images that are under that category, even if i try to refresh. I tried manually deleting the photos from the server and uploaded it again but this time the photos were uploaded with the previous category name, not as default category. Im having a hard time organizing the photos into different categories because of this problem. Your help would be greatly appreciated. Thanks!

  9. Rory says:

    Hey there….I’m running in to an issue where if I title an album with an apostrophe in it, it won’t show the images appropriately.

    Also, there’s no way to re-name an album after it’s been created. Can that be added in the next version?

    Finally, how can we get the descriptions to show whwn browsing through the images in an album?

  10. Noella says:

    Umm… I don’t know if this is a stupid question, but how do I upload pictures? I installed the plug-in and did everything. I logged in, went to “Photopress Album” under “Manage” and all there is on the page is a box with “Photopress Album Categories” as a title and a button underneath that says, “update Categories” and that’s it.

  11. Jöran says:

    Great plugin but I got a problem.
    I’ve my site on http://www.mysite.com and the location of my WP is on http://www.mysite.com/wordpress/ when I click on a photo in the photopress gallery the path isn’t correct, where can I change the location in the plug-in?

    Please help because I like to use the plug-in without the error :-)

  12. tobias says:

    Great job, a really cool plugin!

    But I’ve got some problems with the photo album. Uploading works great and I also see the uploaded pics in the postings. the only problem is, that the “photo album” does not work. I just get a blank page. any ideas for solving this problem?

  13. DJ says:

    hello

    i have test your plugins in localhost => it’s OK

    but in my website :

    (on the top)
    at the homepage i have :

    Warning: open_basedir restriction in effect. File is in wrong directory in /storage/1/serveurs/www/****/httpdocs/****/wp-content/plugins/photopress.php on line 29

    in my admin panel :

    Warning: open_basedir restriction in effect. File is in wrong directory in /storage/1/serveurs/www/*******/httpdocs/******/wp-content/plugins/photopress.php on line 29

    Warning: Cannot add header information – headers already sent by (output started at /storage/1/serveurs/www/******/httpdocs/*****/wp-content/plugins/photopress.php:29) in /storage/1/serveurs/www/******/httpdocs/*****/wp-admin/admin.php on line 6

    Warning: Cannot add header information – headers already sent by (output started at /storage/1/serveurs/www/*****/httpdocs/*****/wp-content/plugins/photopress.php:29) in /storage/1/serveurs/www/*****/httpdocs/*****/wp-admin/admin.php on line 7

    Warning: Cannot add header information – headers already sent by (output started at /storage/1/serveurs/www/*****/httpdocs/*****/wp-content/plugins/photopress.php:29) in /storage/1/serveurs/www/******/httpdocs/*****/wp-admin/admin.php on line 8

    Warning: Cannot add header information – headers already sent by (output started at /storage/1/serveurs/www/****/httpdocs/****/wp-content/plugins/photopress.php:29) in /storage/1/serveurs/www/*****/httpdocs/******/wp-admin/admin.php on line 9

    and when i want upload some image, i have Warning: open_basedir restriction in effect. File is in wrong directory in /storage/1/serveurs/www/****/httpdocs/****/wp-content/plugins/photopress.php on line 29, but i can upload a files.

    after i go to the home page, and i have :
    Warning: Unable to access /storage/1/serveurs/www/*****/httpdocs/*****/wp-content/photos/thumb_ in /storage/1/serveurs/www/*****/httpdocs/****/wp-content/plugins/photopress.php on line 94

    Warning: getimagesize: Unable to open ‘/storage/1/serveurs/www/****/httpdocs/****J/wp-content/photos/thumb_’ for reading. in /storage/1/serveurs/www/****/httpdocs/****/wp-content/plugins/photopress.php on line 94 under Meta, and non photos

    and with the é, è …. (in my texte) i have augmenté for augmenté….

  14. clint says:

    Cool plugin…

    Although I needed to set up a wp site and once I moved it “live” and changed the wordpress blog address to the site root (mysite.com) rather than the default (mysite.com/wordpress)

    the plugin falls apart and I get errors: I started a thread over at wp forums with the errors

    http://wordpress.org/support/topic/39630

    any help would be appreciated.

  15. clint says:

    [solved][woot]

    ok I was able to fix it, I tracked down the bit I needed to tweak, and will post it in case anyone else changes their wp blog address to their site index and gets the same prob…

    again I renamed my wordpress folder to wp, so just tweak it accordingly for yours…

    $pp_photosaddress = $pp_blogurl . '/wp/wp-content/' . $pp_photofolder; //added /wp
    $pp_photospath = $home_path . 'wp/wp-content/' . $pp_photofolder; //added wp

    these are the last two lines in the “photopress-inc.php” file

  16. Eleka says:

    Hi!

    First, excuse me for my bad english.

    I’ve been testing your Photopress plugi, and it’s cool, but I’ve a big error on my web: it’s unable to create thumbnails … when I upload a photo with Photopress I have the next error:

    “Filetype not supported. Image not resized.Filetype not supported. Image not resized.
    Warning: getimagesize(S:\Web/wp-content/photos/thumb_DSCN0110.JPG): failed to open stream: No such file or directory in S:\Web\wp-content\plugins\photopress\upload.php on line 300″

    The photo is uploaded ok, but the thumbnail isn’t created … I’have tested it with gif’s and jpg’s of very much sizes, but it don’t work … can you help me?

  17. Eleka says:

    Well, I’m investigating with the plugin and I want to “delete” the access to my album of the “meta’s” bottom and put it in the top of the sidebar .. how can I do it? When I edit the sidebar.php I don’t see in the meta-part anything referent to photo almub or soemthing similar …

  18. Gi says:

    it’s a very nice plugin!!
    thank you~

    but i have a question, how can i DISABLE clickable PHOTO LINK in new window (when browsing photos in the Photo Album page)?

    i want the photo viewable in the Photo Album without further hyperlink, is it possible?

    thank you very much!!!!

  19. jmac says:

    I’m still unable to get this plugin to work after three attempts. I consistently get the errors below although all files are uploaded to the correct directories:

    Warning: opendir(/home/******/public_html/index.php/index.php/wp-content/photos): failed to open dir: Not a directory in /home/******public_html/wp-content/plugins/photopress.php on line 157

    Warning: readdir(): supplied argument is not a valid Directory resource in /home/******/public_html/wp-content/plugins/photopress.php on line 159 no images yet

    Anyone available for help? (it doesn’t seem like there’s been anyone active here in a while)

  20. marc says:

    Hi Guys

    does anyone using this plug-in with the theme Green Marinée ?
    having some issue with it (album).

  21. Matthias says:

    Great plugin, works like a charm (needs to be said because everyone else here seems to be complaining). The results were a little bit unexpected, though ;O) I didn’t realize it’s even a complete photo album! Now that’s even more than I had hoped for. Once again, great plugin. Time to move my personal weblog to WordPress, too, I guess!

  22. NOlo says:

    suddenly I have the same exact problem as Edeka, it doesnt make the thumbnails, it says that it is unable to open the stream and that the file format is incorrect… but everything was working fine yesterday o_o

  23. Cabesoul says:

    I put in sidebar.php but no works ???
    just appear de code…

  24. yovko says:

    Small bug:: The pp_random_image function don’t generate valid XHTML img tag.

  25. yovko says:

    Actually every img tag not ending with &qt;/>&qt;

  26. Fleishman says:

    Hi, excelent plugin.

    I have a small problem with my album layout – everything that is normally in the sidebar appears directly under the photo albums, or photo. I am using semiologic theme 2.6 and photopress 0.6.

    I know it says to edit your album.php to be similar to your theme’s index.php but i really can’t see what it is that needs altering. I am new to php editing and wordpress – any help would be greatly appreciated.
    http://www.fleishman.org.uk

  27. BobNL says:

    Is there a way to have the random function choose from only one categorie. Cause I want it to choose from a gallery with only landscape pictures.

  28. oli says:

    Hi, how can I change the default name for the categories when uploading an image? All images are always uploaded in “Default”, I want to change that.

    How can I do that?

  29. Anybody have any luck with getting Photopress entries to appear in archives or category pages? I like the ease-of-use, but that result so far is the killer. I can’t use it if more than half my pages end up “blank.” :-(

    plus, adhesive pages cmoe out _really_ bad (java-script as plain-text).

  30. SHarky says:

    i’ve encountered a similar problem: it says “Filetype not supported. Image not resized.” and doesn’t create the thumbnail..
    i’m wondering why cause CHMOD is ok & i’ve inserted only files already supported in the OPTIONS like gif, jpg or png…

  31. Refresh says:

    Is there a way to have photopress rotate images?

  32. chris says:

    Hi,
    a complete newbie here — can anyone tell me how to create new categories other than the default category? I just can’t find out how to do it. :-(
    I’m using wp 1.5.2…
    Thanks a lot

  33. Sarah says:

    CHRIS, just rename it to your desired new category and it will automatically create one for you..

    MY QUESTION is this..
    How do i add a subcategory under the categories..???

    default is like this
    Album: Default

    i want this:
    Album: Default: Another SubAlbum

    so for example in my album i have
    Album
    -Animals
    -People

    how can it add
    Album
    -animals
    —dogs
    —cats
    -people
    —women
    —men

    ?????

  34. tenaka says:

    hi guys, I was following this guide when I came to the section where I am required to install photopress. I am getting the following error:

    Warning: extract(): First argument should be an array in /var/www/web8/web/wordpress/wp-includes/functions.php on line 1813
    Fatal error: Call to undefined function: pp_album() in /var/www/web8/web/wordpress/wp-content/plugins/photopress/album.php on line 62

    and I can’t even access my plugin section anymore. I have to delete the plugin to be able to continue to work.

    any sugestions???

  35. jakez says:

    Good morning everybody.
    Can someone explain me, where the photopress Gallery saves the Album Information? (name…)

    I can’t find something in the MySQL DB and there are no files created. And it can’t be saved in the Picturefiles, because if I delete a Picture and upload the same one a few minutes ago, it is in the same(old) albun ;(
    Need help^^

    Br
    Dennis R.

  36. Ruby says:

    The link given at the top of the page: http://dev.wp-plugins.org/browser/photopress/trunk takes you to an area that makes it really non-intuitive to download the plugin. At familypress, I get a folder called wp-content. Well, I already have that folder in my directory. Why would I upload another? I can only imagine what a nightmare this is going to be…

  37. Lucas F! says:

    Hello Isaac!

    First of all, congrats for the simple and useful project, it’s really helping me and many people make our blogs more intersting.
    I’m leaving a suggestion here for a future add. Photopress should provide multiple photo upload, it would help updating galleries after a trip, show or any event, when we have many pictures to upload.

    Please, think about!

    Keep upgrading this nice plugin!

  38. Cato says:

    Hey

    I’m having problems with my sidebar in with this gallery. Look here: http://www.catonett.com/blog/?pp_album=1&pp_image=apple_mac.jpg

    The meny are below the gallery and is pushed to the right. How do I fix this?
    And I know I can change the album.php, but I don’t know what to change.

  39. Steven Vu says:

    I’ve been using your plugin for while but get annoyed at having to open up the upload dialog for every single picture I want to upload. Any chance of placing a setting so that you can upload more than one picture at a time?

    Cheers,
    Steven

  40. Peter says:

    …well, it’s a bit scary reading all these problems posted here and no comment, no reaction, no indication whether they are solved … or … ?

  41. i-nZ says:

    Hi,

    I would like to report something that I consider to be a bug. I have 2 photopress categories “Default” and “Cats”After I import a large collection of files placed in the “photos” folder they are imported in the “Default” Category. That’s fine for now. Then when I go to Mass Edit next to all newly imported pictures it says they are in the “Cats” category (and they are in “Default” again). I am unable to change the category in mass edit – the only way is to do a category view and open every individual picture and then change the category.
    It would be very nice if this could be fixed…

    Cheers,
    Ivan

  42. Sypie says:

    Dear,

    I saw that there was a translation file for the dutch language. I downloaded de .PO filew, saw it and i completed/changed/updated it.

    But.. Where can i send it to to be put in the release or on the website?

    Would like to hear from you.

    Greetings, Sybrand van der Werf, Netherlands

  43. Hi, Photopress is fantástic.
    Exist any plugin update to del category when created in system?

  44. Mary says:

    Just wanted to congrats you for this great plugin.
    I’ve tested hundreds of photo plugins and definitly, yours is the best one !!

    I’d just like to know if you plan to add a function to choose which photo should be the thumbnail on the main gallery.
    Just asking :)

    Congrats and good luck with your plugin.
    Sincerly,
    Mary

  45. ovizii says:

    hello.
    I am still using version 0.4 and am really happy with it, except that after upgrading to wp 2.5 I get this error when trying to upload a picture:

    Couldn’t upload your file to /var/www/web6/web/wordpress/wp-content/uploads/photopress/P1010267.JPG.

    it might also be related to a plugin, but how can I debug, except for deactivating all plugins?

  46. ovizii says:

    oops.

    my msitake, after upgrading i had to configure the plugin again, and I forgot to change the max. uploadble picture size. consider my question as answered :-)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>