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. Keith Ford says:

    PP 0.3 works great. My boys were wanting to publish some of their drawings for friends to see so I went looking for photo galleries for WP. I found PP, installed it and that’s it. Great Job!

    One install note, which may be due to my being a newbie, I had to go into the Options -> PP and do an update options before the options were visible. Didn’t have to edit any options, just click the update. The symptom was the PP upload would reject all images saying type ??? was not allowed.

  2. Naaman says:

    Nice plugin. This could work really well, especially since I can’t get PictPress to work on Strayhorn. One question: do you plan on adding an album-like feature? In other words, do you plan on adding a way to categorize the photos for display? Thanks, good work.

  3. Frank says:

    I tried to use permalinks with PhotoPress but since WordPress is rewriting the .htaccess file, this didn’t work.
    What about adding functions so that one can configure the permalinks working?

  4. Noodle says:

    Really looking forward to getting this running, after being recommended by a friend (www.toobusyto.org.uk) but getting the following problem

    “It doesn’t look like you can use the file upload feature at this time because the directory you have specified (/usr/local/psa/home/vhosts/noodlespace.net/httpdocs/wp-content/photos) doesn’t appear to be writable by WordPress. Check the permissions on the directory and for typos.”

    Strangely, this occurs even when the directory has ’777′ permissions, which leads me to suspect there’s a problem with the path. Intriguingly, I don’t normally see the whole path from root in other parts of wordpress… Any ideas what I might need to do?

  5. Alex says:

    Hi there!
    I’ve just installed the latest Photopress in WP 1.5 and everything works fine – can upload images and add them to a post. Images do show up in the first page, however when I browse an older archive (say click on a category or a previous month) the posts appear without the images!
    Does photopress show only images in the first page, or have I missed something?
    Thanks,
    Alex.

  6. David says:

    Hi,

    PhotoPress seemed to be okay with everything until the point you access your album via your website. (i.e., http://yoursite.com/?pp_album=1). Mine simply doesn’t display the album instead it just displays http://yoursite.com.

    Here are the configuration details:
    wordpress is in directory: /usr/public_html/;
    photopress.php is in dir: /usr/public_html/wp-content/plugins/;
    photopress dir is in dir: /usr/public_html/wp-content/plugins/;
    photos dir is in dir: /usr/public_html/wp-content/;

    http://kioria.com -> /usr/public_html/;
    http://kioria.com/?pp_album=1 -> /usr/public_html/;

    If you could help it would be great! Thanks

  7. David says:

    Wish I could delete the previous comment. The problem was of my own not yours.

  8. Dale says:

    I have downloaded 0.4 twice tonight – have uploaded it to my server 5-6 times. Each time I can activate the plugin, however, nothing shows up under the options page.

    Any ideas? All other plugins seem to be working fine.

  9. David says:

    Whilst uploading, there is a Description field. It seems like its not working? I have double checked for stupid errors, nothing is wrong. Any known errors with regards to this?

  10. scud says:

    I’ve tried installing this numerous times and I still get the same problem, whenever I click on the ‘options’ button that correlates to Photopress I get an empty page. I’ve deleted and then re-uploaded all to the same effect. Went digging in the sql db thinking something was stored there and found nothing.

    Any help? I’ve got all the files uploaded to their proper directories and chmod’ed properly as well.

  11. Olly says:

    Is there something that is required to resize the images? If i upload any number of jpgs i am told that ;

    Filetype not supported. Image not resized.Filetype not supported. Image not resized.
    Warning: getimagesize(/var/www/html/wp-content/photos/thumb_Picture2_01.jpg): failed to open stream: No such file or directory in /var/www/html/wp-content/plugins/photopress/upload.php on line 299
    File uploaded!

    Your file Picture2_01.jpg was uploaded successfully!

    Even though the permissions for the folder are 777 and the files are jpgs which should be resizable.

    Any ideas ?

    PLEASSEE!!!

    Olly

  12. l!pa says:

    I’m getting the same warning as Olly. Is GD Library requiered to make this plugin work?

  13. TigerDE2 says:

    Hi!
    I encounter the same problems as scud:
    Whenever I open the photopress options page, WordPress only shows the admin screen navigation and the footer, but no actual content/options for photopress.
    Any idea why?
    Christian

  14. David says:

    There seems to be a problem with Categorising (albums) photos uploaded via Photopress. First of all, the album creation is very tedious if there are hundreds of photos. Second, when I type in the string “Someone’s Birthday” it will automatically change to ascii based string, “Someone’s Birthday”. This casts a problem whilst trying to access the albums from photopress’s main index. You can test this on my photopress setup.

    David G. Hong’s photopress albums

    As you can see, the backslash created during categorising (from admin page) is again backslashed as in ascii, string “” is represented as “”. What do I need to edit to rid of this problem? Can you help me thanks.

  15. Janne says:

    Hi!
    I have the same problem as TigerDE2 and scud. Blank Options page. Any suggestions?

  16. Esgrima says:

    Hi all, my english isn’t very well, but, someone can help me with that problem?

    Fatal error: Call to undefined function get_option() in J:\WEB\apache2\Apache2\htdocs\wp-content\plugins\photopress\photopress-inc.php on line 9

    ^_^ Bye

  17. Sam says:

    I was having the “Filetype not supported. Image not resized.” error. I tried imagemagick and gd, but what finally fixed my problem was turning the register_globals On in my php.ini file.

    Something in this plugin requires register_globals to be on. I haven’t had a chance to poke around the code. Does anyone know what needs to be tweaked so I can turn register_globals off again? This is the only thing on my system that requires it be turned on.

  18. Sam says:

    Delete that last comment. I’m still getting the Filetype not supported error.

  19. Sam says:

    I had to recompile my php with gd to fix the Filetype not supported error.

  20. Joe Newing says:

    Hey there, for some reason whenever I activate the photopress plugin, it seems to take over all other plugins I have, and by that i mean all other pluing option, and management pages get rerouted to the photopress page? any ideas why it would do this?

  21. Wendy says:

    Very nice plugin and working nice, just a problem to do it work nice with the theme I use.

  22. Tatum says:

    Thanks for a great plugin, but having a problem….

    I have uploaded pictures successfully, but I have not been able to get Photopress to recoginize it in Manage, or in the album section. Any suggestions?

    Thanks,
    MT

  23. yan says:

    I tried to access the option menu but get this error:
    “You don’t have permission to access /wp-admin/c:/program files/easyphp1-7/www/wp-content/plugins/photopress.php on this server.”

    The path looks strange. I guess it’s because of wrong configuration. Can you help?

  24. yan says:

    I tried the new menu-header.php. But the error is similar to previous one:

    http://www.sigitv.org/wp-admin/options-general.php?page=c:\program%20files\easyphp1-7\www\wp-content\plugins\photopress.php

    The path is still wrong.

    I also tried the “photopress album” in the managment menu. The link has the same kind of error:

    http://www.sigitv.org/wp-admin/edit.php?page=c:\program%20files\easyphp1-7\www\wp-content\plugins\photopress.php

  25. Andrew says:

    I am afraid I can’t get the plug in to work. I Hva euploaded it to the correct places and chmod 777 all files. Activated the plug in. I have a PhotoPress tab in options with nothing but the WordPress details. I have a Photopress Album tab in manage but that just has a field (blank) with an update categories button. Can you help?

  26. Andrew says:

    Update to my last post. I disabled a spell checker plug in and options appeared in the photopress options tab. Manage/Photpress is still the same with a blank field and one ‘Update Categories’ button.

    On my site I do have a ‘Photo Album’ link and a link with ‘no images yet’ (which I assume is where the picture would appear. Clicking on the ‘Photo Album’ link displays:

    Photo Album
    No photos uploaded yet

    even though I have uploaded images to the photos folder and a sub folder. I have tried disabling all plugins with no result. Thanks in advance.

  27. Brooks says:

    I noticed in the code in the plugin editor some stuff about pop-ups. Is ther a way to bypass the album feature alltogether and just have inserted thumbnails link to a full size pop-up? That would make me very happy. The main reason is the mess that the current way makes on the resulting page when you click on an image. There’s a test image on the blog right now if you want to see what I mean.

  28. Laurent says:

    Hi

    I’ve the same problem that Andrew :

    Andrew Says:
    April 19th, 2005 at 10:51 pm
    Update to my last post. I disabled a spell checker plug in and options appeared in the photopress options tab. Manage/Photpress is still the same with a blank field and one ‘Update Categories’ button.

    On my site I do have a ‘Photo Album’ link and a link with ‘no images yet’ (which I assume is where the picture would appear. Clicking on the ‘Photo Album’ link displays:

    Photo Album
    No photos uploaded yet

    even though I have uploaded images to the photos folder and a sub folder. I have tried disabling all plugins with no result. Thanks in advance.

  29. Mariangela says:

    Hi!

    I have installed the plugin, but I recieve this error message when I “click” on Photopress Album Options:

    Not Found

    The requested URL /wp-admin/C:\Inetpub\wwwroot\mt\rade\wp-content\plugins\photopress.php was not found on this server.

    I cann’t reach to find wich problem have in the code …. anybody can help me please?

    Thanks in advance!

    Mariangela

  30. Raphael says:

    I have the “Filetype not supported. Image not resized.� error.

    Following the post of SAM, I reinstalled PHP compiled with gd support.
    For Debian users like me, there is a precompiled package (php4-gd).

    Unfortunately this did not solve the problem!
    Does anyone have a solution?

  31. Mike says:

    This plugin gets interference from te WP-Upload Manager

    http://auyongtc.theuseless.com/wp-plugins/wp-upload-manager/

    I have to disable the upload manager in order to modify the categories in the photo album and check references

  32. macewan says:

    In the paragraph where it comments on pp_random_image_bare the Janis Owens site. Thanks for taking the time to create.

  33. kummy says:

    why everytime i click the pic, the theme become irreguler? i use WP 1.5.1…

    my website is:
    http://www.kummy.buildtolearn.net/wp/

    then i click the random image on the side bar…
    (or the link below)

    http://www.kummy.buildtolearn.net/wp/?pp_album=1&pp_image=kummy2.jpg

    and you will see the irreguler…

    would u please tell me where the problem is?
    Thanks


    KummY

  34. wubbo says:

    Hi guys,

    i have the same problem as Andrew re categories-stuff… I think I installed it all correctly but it doesn’t seem to be working…
    + i see there are not coming many answer on this thread :-(

  35. wubbo says:

    I am too soon my friends ;-) Excuse me: Andrew your solution is to chmod the album file to 777 (maybe 755 will work) and then start uploading images a fresh…

  36. Dave says:

    Hi,

    I’ve searched this forum, checked Isaac’s site and even googled it, but I can’t seem to find a solution to the following problem. After having activated version 0.5 of Photopress in my WordPress version 1.5.1 I get the following error:

    Warning: main(photopress/photopress-inc.php): failed to open stream: No such file or directory in /home/.sites/48/site10/web/wordpress/wp-content/plugins/photopress.php on line 29

    Warning: main(): Failed opening ‘photopress/photopress-inc.php’ for inclusion (include_path=”) in /home/.sites/48/site10/web/wordpress/wp-content/plugins/photopress.php on line 29

    Warning: Cannot modify header information – headers already sent by (output started at /home/.sites/48/site10/web/wordpress/wp-content/plugins/photopress.php:29) in /home/.sites/48/site10/web/wordpress/wp-admin/admin.php on line 10

    Warning: Cannot modify header information – headers already sent by (output started at /home/.sites/48/site10/web/wordpress/wp-content/plugins/photopress.php:29) in /home/.sites/48/site10/web/wordpress/wp-admin/admin.php on line 11

    Warning: Cannot modify header information – headers already sent by (output started at /home/.sites/48/site10/web/wordpress/wp-content/plugins/photopress.php:29) in /home/.sites/48/site10/web/wordpress/wp-admin/admin.php on line 12

    Warning: Cannot modify header information – headers already sent by (output started at /home/.sites/48/site10/web/wordpress/wp-content/plugins/photopress.php:29) in /home/.sites/48/site10/web/wordpress/wp-admin/admin.php on line 13

    Now, /home/.sites/48/site10/web/ is set on the server as my http://www.xxxxxx.com address, and I have wordpress in a sub-directory. I do actually get the options page and am able to save the options.

    When I click on the photopress album link in ‘Manage’ I get the Photopress Album Categories section, but with these additional errors above it:

    Warning: readdir(): supplied argument is not a valid Directory resource in /home/.sites/48/site10/web/wordpress/wp-content/plugins/photopress.php on line 160

    Warning: readdir(): supplied argument is not a valid Directory resource in /home/.sites/48/site10/web/wordpress/wp-content/plugins/photopress.php on line 160

    It seems to all point towards directory settings. So, I changed the photopress/photopress-inc.php reference on line 29 of photopress.php a number of times, using the full path or any combination thereof, but nothing seems to make a difference.

    Does anybody have an idea? I really want to use this plugin but I’m not getting anywhere with it this way.

    Ps. if I ever get it to work, I’d like to be able to bulk upload a number of photo’s in one hit (i.e. upload 20 photos in one go via the web interface). Is this possible already and if not is it something that might be considered for a future release?

  37. Steven Vu says:

    When using your plugin with the Fuzzy Date Time Plugin

    http://www.splee.co.uk/category/fuzzydate-plugin/

    The Photopress admin page in Options directs to the FuzzyDate options. If you disable the fuzzydate plugin then the photopress page appears again.

    Other than that a marvelous plugin.

    Thanks

  38. seriocomic says:

    For Steven Vu and others having the same problem, this is a bug from 1.5, upgrade to 1.5.1 and it goes away :)

    P.S. Nice Plugin Isaac – keep working on it!

  39. Mikael Boldt says:

    I love your plugin very much – everything is working fine, but…

    I’m trying to creat a multiuser environment with WordPress included your plugin, but I have to make in Danish – At least the 2 buttons added to the Write-area and in the 2 pop-up windows, so where do i find the original text that i need to translate?

    Regards

    Mikael

  40. Paul Roberts says:

    nice so far but i’ve found a problem with files with the .jpeg extension, i get “File 20050413_221428_2_.peg of type peg is not allowed.”

    also i notice that you are checking the extension but not the mime type uploaded with $_FILES['userfile']['type']

    paul

  41. agus says:

    i try to using your photopress, it’s work good. But if this plugin work together with fotonoter plugin. ( http://fotonotes.net ) its gona be great!

    If posible, maybe u can tell how to do that?

  42. jack says:

    How do you create albums?

  43. traveller says:

    Hi, great job with the plugin.

    I noticed a flaw in the codes. If the last row of the main album display and the categories isn’t filled up, eg: only 1 column with thumb if you have a 2-column table, then the row will not be closed properly with a </tr> thus breaking HTML.

    This can be solved by adding the following in photopress.php under the function pp_display_cat() at line 192 right before “echo ‘</table>’;” and after the iteration:
    if($column == $pp_album_columns) {
    echo ‘</tr>’;
    }

    Also in the same file under the function pp_display_main() at line 274 right before “echo ‘</table>’;” and after the iteration:
    if($k == $pp_album_columns) {
    echo ‘</tr>’;
    }

  44. traveller says:

    I just realised the fix does not anticipate all possible conditions, the conditions should be:

    if ($column <= $pp_album_columns && $column != 1)

    and

    if ($k <= $pp_album_columns && $column != 1)

    to make sure there is an unfilled row.

  45. Dalaimama says:

    Is there any way to make the files show up in multiple columns in the admin panel under photopress categories? As well, is there a way for each category to appear as a directory rather than having all of the pictures come up on this page? I love the look on the main photo album in my blog but going into the control panel will be overwhelming once I have tons of photos in there :( As it is I have about 46 photos and its becoming cumbersome.

  46. alfh says:

    Hi there,

    Your plugin made it a lot more easy to manage photos. However, in the options panel any setting for ‘link to photo album’ will insert a link to the photo album, that is, the ‘no’ option does not work.

    And, the layout in the popup window (when clicking ‘browse’ while composing a post) is very messy, pictures overlapping and buttons oddly placed.

    Running wordpress with mySql and apache, browsing with firefox 1.0.4 and IE 6.0.2800.1106 from win 2k, wordpress and photopress latest editions as of today, June 10

    Keep up good work

  47. ThePete says:

    I’m having precisely the same problem as Dave, above. I don’t know where to begin to try and fix this. If anyone has any ideas, please post them. Thanks in advance!

  48. geck says:

    After having trouble with “Filetype not supported. Image not resized.” errors and not being able to create thumbs, I got it working on my RHEL3 server (Apache2, PHP 4.3.11) by:

    1. Updating libpng, libpng-devel, libjpeg, libjpeg-devel, and especially: GD, all from RPMs
    2. Recompiling PHP (and updated to 4.3.11) with gd:

    ./configure –with-apxs2=/usr/local/apache2/bin/apxs –with-mysql-dir=/usr/lib –with-gd –with-jpeg-dir=/usr/lib –with-png-dir=/usr/lib –with-zlib-dir=/usr/include

    (the gd, png, jpeg, zlib seems to be the most important)

    3. Restarting apache.

    It took me hours to get all of this figured out. I hope others can use this info.

    Now I’ve just to get the “Warning: Cannot modify header information – headers already sent by” fixed!

  49. mike says:

    i just wanted to say thanks a lot for an amazing plugin. it was just what i was looking for for my blog. i look forward to future updates.

    one thing that would be really handy would be more boxes on the upload screen so that you could upload maybe 3 or 4 images at a time. it would make uploading pictures so much quicker. thanks again.

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>