Photopress 0.9.2 (updated again)

It should work with both WP 1.5.2 and 2.0, but I could break support for 1.5.2 any time. If you’re upgrading from an earlier version of Photopress, make sure to de-activate and re-activate to update the database table (or use the Install DB tool).

New features and fixes:

  • Display of non-English characters was broken but I think it’s fixed now.
  • Per-category sort setting for the album. See Edit Categories in Manage:Photopress.
  • A ‘close window’ link in image popups. This required big changes to the popup code, so please report any errors you see.
  • Mass Resize should be smarter now (thanks Roge and kele). For mass importing, you can now drop a bunch of images in the photos folder, then run Mass Resize followed by Import Photos. I guess the Import Photos tool could just run Mass Resize as part of the process - anyone have an opinion?

Update: SHRIKEE noticed a bug so I did some testing and found a few more. Specifically, suppression of is_search on image pages in the album should now work properly. Inserted HTML code should be fixed. The image popup Javascript function should work again in Internet Explorer. Finally, I made a couple of changes to make the album prettier.

Update2: Stahn found a bug in pp_album_css.php, and suggested a better way to close the popup image windows. I noticed that the ‘Photos’ text for the buttons wasn’t translatable.

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

Get photopress.pot if you’d like to translate Photopress. There are a couple of translations available here.

I’m thinking about comments for images, but I’m not sure how to proceed. Maybe create a post for each uploaded image, placed in a hidden category?

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

37 Responses to “Photopress 0.9.2 (updated again)”

  1. SHRIKEE Says:

    All works for me :P

  2. SHRIKEE Says:

    correction:

    Warning: extract(): First argument should be an array in /var/www/virtual/blog/wp-includes/functions.php on line 2089

    when i look at a photo in a album.

    Also i noticed the script is A LOT slower. :(

  3. SHRIKEE Says:

    Thanks for the new file, bug is gone ! :P

    *fall almost asleep on his keyboard*

    that must be a sign…

  4. cpil Says:

    Hi! I love your plug-in! Great job! Have ever thought of adding a comment system to it? I would be very useful…

  5. Stahn Says:

    As you are guessing permalinks for the album still doesn’t work :P

    Got this error:

    Warning: Division by zero in /home/httpd/vhosts/*/wp-content/plugins/photopress/pp_album_css.php on line 3

    I really don’t like the “Close Window” text… personally I prefer that the image will be clickable for closing. You can check the javascript of LZIL: http://davidseah.com/wordpress/wp-content/dl/lazyimagelayout-038-debug.zip (search for line 540 - “code adapted from http://regretless.com/dodo/newworld“. If you’re going to keep it, try adding some CSS to the link, looks pretty ugly.

    A big no for comments in images, or make it selectable by users. I use Photopress for uploading without using FTP, the Album and other stuff (permalinks, etc.) is a very welcomed ‘plus’.

    That’s it for now :)

  6. Leisa Says:

    excellnt plugin.. just what i needed .. had to tweak a little to get my text wrapping ..
    but well done thank you so much :)

  7. Minds Eye » Blog Archive » Testing new plugin with larger pics Says:

    […] 7:03 am Ok then guys I finally have found a plug-in for my needs with out me having to resize every photo by hand woot!!…This little guy I’m not sure on what he is.. but he was a hard catch… took this while camping up at inverhuron.. an old nucular site (or i think thats what it is)Also managed to get my text to wrap in Photopress plugin using this in my CSS img.wraptext { padding: 5px; float: right; clear: left; } […]

  8. Roge Says:

    Switched. Fine by me!

  9. mk Says:

    i got a same trouble with stahn.
    error message here.
    “Warning: Division by zero in /home1/****/public_html/wp/wp-content/plugins/photopress/pp_album_css.php on line 3″

  10. dracula Says:

    I got a “invalid argument” on IE 6 on pop-ups that I fixed by editing photopress.php, line 470 to read:
    image_popup = window.open(\’\',\’title\’,\’height=\’ + popheight + \’,width=\’ + popwidth + \’,toolbar=no,menubar=no,scrollbars=yes,resizable=yes\’);

    IOW… get rid of the +’s on title.

    It’s an awesome plugin! thanks!

  11. wangxiaohu Says:

    hey, lightbox is a cool javascript you might want to have a look and add it to photopress if you feel good.

    http://www.huddletogether.com/projects/lightbox/

  12. Miroslav Says:

    Hi Isaac,

    Great work! I can hardly keep up with your updates! :)

    As with an earlier version, the link to original image out of a post doesn’t work. I have seen it working on another website out of an album, but it doesn’t seem to work when you insert an image into a post.

    What I mean is, when using the non-album option:

    1. Clicking on a thumb pops out the larger (resized) version - WORKS PERFECTLY

    2. Clicking on a larger (resized) version pops out the original image - DOESN’T WORK!

    A fix would be greatly appreciated! :)

    Best wishes,
    Miroslav

  13. Crow Says:

    My link to the album is not working. I’ve pasted this code

    `echo ‘‘ . __(’Scrapbook…’,'photopress’) . ‘‘`

    and while it worked before the 2.0 upgrade, at some point it stopped working. I turned off permalinks as well because they seemed not to work.

  14. Crow Says:

    Crap, looks like the back ticks didn’t work on that bit of code…

  15. Claus Says:

    Hello Isaac! Nice to see that photopress has come all the way up to 9.1. The last version I used was 0.6. Is there a changelog somewhere?

    About comments, I had a long time ago heavily changed 0.6 to use databases, and thus managed to add commenting to photopress (check the photoalbum in my blog). I think that the codebase might have diverged a bit from then and now, but maybe you could use the source as inspiration. I believe my comment with the link to the altered photopress is still in the post for PP0.6 on your original Blog.

    Cheers!

  16. Roge Says:

    Looks like

    Images per page

    option doesn’t work.

  17. Roge Says:

    sorry ) works.

  18. Keith Says:

    Is it possible for photopress to provide a lists of album titles (categories) with links to the albums.

    My purpose is to create a sidebar box with title Albums and then have all the available albums (actually categories) listed under it. Then the user can select the album to be viewed and click on the link, taking them to the album in question.

  19. Crow Says:

    Huh, thought I left a comment here yesterday, but guess I didn’t hit submit!

    Some features that would be cool:

    1. Mass uploading–point it a folder full of pictures and let it do its thing and then organize later.

    2. I know Isaac talked about having photopress organize the pictures into category folders. I like this idea a lot. If we’re ever able apply more than one category to an image, what would that do to organizing the pictures. Or what happens when you change the category of an image?

    3. Be able to add more than one category to an image.

    4. Slideshow in a new window.

    5. Add a function to show most recent picture It should include an option to display the full size of the image or a thumbnail. It could work like pp_random_image_bare() but with different options, like this: pp_latest_image_bare($before,$after,$class,$category,$size)

    6. I’m not sure I like the idea of adding comments without having to add a post for each image. I think it would require the addition of a new table. You would probably want to be able to turn off comments at three levels: universally, per category, per image. And how would you moderate comments since it’s not part of WP’s regular comment process? It’s one of those things that looks cool and useful but would probably turn into a nightmare. Maybe for 2.0?

    Ah… that’s the danger of having time to think about things. This list grew way bigger than my post yesterday!

  20. Matthew Says:

    Thanks for Photopress—it’s a really sweet plug in!

    I am trying to use it as an online portfolio of my graphic design work and have hit a couple of stumbling blocks. Maybe it’s not built to perform this way but it would be great if it did.

    1. Is there a way to control the order of images when they are presented in the album?
    The thumbnails are in order from “cover� to “page 1� to Page 2� etc but in the album the sequences is different. The “cover� may actually be at the end and the user needs to click ‘previous’ to see the other pages.

    2. Is there a way to “lock out� other images within a category?
    If I have a category called “brochures� and have three separate projects assigned to that category images from multiple projects appear randomly when viewed in the album. This wouldn’t be objectionable if the order in which they appeared was controllable and each project was presented in sequence (see question 1).

    Site in progress, unpublished:
    matthewbartholomew.com/work

    Using WP2, Photopress 0.9.2

  21. Keith Says:

    One other suggestion: The ability to set a certain picture as the default or “cover” picture for an album. This is something that Gallery2 allows.

  22. radial Says:

    Well I installed wordpress + photopress and it seems to work as it should be execpt when I want to upload a pic 1100×825 the popup screen is just empty without any errors.
    Other pics are doing well, just the larger ones wont`t work.

    Anybody got a clue where to search for this error?

    OS: Clarkconnect 3.2
    PHP Version 4.3.11

  23. Toof Says:

    hi,
    I am loving your plugin. However I am having a few problems. I am running photopress on a family type blog running WP v2.01, and I am noticing: the only browser I can get the code to jump into the post with is firefox. I have tried with Internet Explorer v.6 and with Opera v.8.51 and v.9b. Am I doing something wrong? While clicking insert xxxxxx.jpg in firefox will send the code, that does not happen in the other browsers. Normally I would not mind, but as it is on the family blog, many people use Opera, and unfortunately a LOT of them use IE.

    Any advice will be appreciated.
    Thanks,
    T

  24. Patrick Taylor Says:

    An impressive plugin. Is it possible to insert an image into a post without the surrounding link? Using the “photo” quicktag I would like to be able to insert only the HTML code for an image, with ALT tag and dimensions.

  25. Seattle’s Rain City Real Estate Guide » Another Round of Updates to Rain City Guide Says:

    […] I got an email letting me know that some of the navigational links on my photos broke, so I spent some time upgrading my photo plugin… This one thing lead to another, and before I realized it, I’d blown a whole evening organizing photos. By my evening of organization is your gain… I’ve added categorization to the photos and fixed up a bunch of titles and descriptions. The upgraded photo plug-in also makes it easier than ever to include photos in posts, so hopefully more of the contributors will take advantage of this feature! […]

  26. Tenaka Says:

    Hello,

    I was trying to set up a photoblog like described here: http://www.razziphoto.com/?page_id=182 but then I saw you have much more recent version of photopress and I tried using latest version of your plugin with wordpress2.01 and semiologic plugins/cms - the result is this:

    Warning: Cannot modify header information - headers already sent by (output started at /var/www/web20/web/wordpress/wp-content/plugins/photopress/pp_album.php:5) in /var/www/web20/web/wordpress/wp-content/themes/semiologic-3-col/install.php on line 10

    Any help or hint for me?

  27. Richard Brown Says:

    Hi

    Thanks for the plugin - it’s awesome.

    Don’t suppose you can give some more tips on styling please?
    Take a look at:

    Many thanks.

    Rich

  28. pablo Says:

    Excellent plugin. I’m gonna use it but:

    while mass resising I get this error:
    Unable to open ‘/home/site/11075/www/wp2test/wp-content/photos/01gal.jpg’ for writing in /home/site/11075/www/wp2test/wp-content/plugins/photopress/include.php on line 441
    Why is that? Why can’t it open e jpg file to write?

  29. Sarah Says:

    maybe ‘m a bit dense, but i have another question. i know a random image can be added to the sidebar in a template, however, what if i want to add a specific image to my sidebar, such as everytime i update my gallery. i have a sidebar spot just for my three newest images. how might i do that? thank you.

  30. Jack Tanner Says:

    Re: Miroslav’s comment (#237) — I agree, it doesn’t make sense to have a pop-up of the large (not thumb) image when a user clicks on the large image. Any way to change this?

  31. Tito Says:

    Hmm this didn`t work for me on IE , only worked on Opera or Firefox.
    It uploads the images fine but when I click on the Insert in to post button nothing happens.
    I`m an Opera user but sometimes I have to use IE. Going back to the 0.7 release for now.

  32. Petur Says:

    Hi and thanks for a great plugin! I am not a newbie, however I have been unable to get it to work. I was wondering whether it has anything to do with the fact that I created the photos directory after activating the plug-in. The error I get when uploading is that there is no such file or directory in popup.php on line 365, which is the creation of thumbnails.

  33. Roger Says:

    I used your old version which worked well, and the new version seems nice, too. I modified my old version to watermark images, it probably wasn’t that interesting to you.

    One issue: The new version is picking up files in the “photos” folder which aren’t images, such as .htaccess files placed there to prevent hotlinking, etc.

  34. Chris Says:

    Only just starting to hack around with this plugin, there’s one thing I need to change though, and that’s make it available to all registered users including level 1 subscribers.

    I’ve already looked through Options > Photopress and have set both
    “Minimum level to upload and browse” and “Minimum level to use mass edit and maintain tools” to 1 and then hitting “Update Options”, but nothing. I just get a: “You do not have sufficient permissions to access this page.”.

    I’m guessing it might be something to do with wp-admin/menu.php ??

    What code do I change to make that happen?

    Thanks!

  35. marye Says:

    Just got around to the new WP 2.01 and discovered PP 0.9.2 - great plugin! - everything works OK so far, a few comments (sorry if they’ve been discuss already):

    1. I’ve enlarged the textareas. My photos are archival things so some have longer descriptions. No problem with this, could parameterize it if it makes sense.

    2. I spent a few hours trying to figure out where the WP 2.x is going with file/photo upload and attachments. Seems very attachment oriented, particularly wrt categories! Ugh, was hoping I could bridge these, but there only seems to be commonality in the files (guid in the post list) and descriptions. Is anyone looking at this as well?

    3. For my own FTP/file browse sanity, I would like to create subdirectories for my images, as I have potentially several thousand images to deal with (I’ve got 900+ in coppermine right now). Using categories as subdirecties is potentially suicidal, given the number of file movements that might occur in a mass edit. So I was thinking of hashing by base file name - some alphabetical categorization, whether it’s by range or discrete letter, I need a minimum of 8 directories. I’d keep the thumbs in their own directory, so there’s a easy way of getting all the thumb images, which is what you tend to get for any particular “list”. Haven’t looked at the code yet … thoughts?

    Thanks again for a great script,

    M.

  36. Chris Says:

    I’ve done a bit more mucking around with the code and obviously I now realise my subscribers are level 0, silly me! So I changed photopress.php lines 575 and 588 to read: for ($i = 0; $i . After a bit of playing around with that I found that if I set subscribers to level 2, enable upload files and, this one took a lot of testing to isolate it, edit posts, then subscribers can access photopress.php, upload and manage photos.

    Using WordPress 2.0.

  37. gpz Says:

    Can you addd an option to exclude pop-up function?

Leave a Reply