Izikistan

Photopress 0.6

It seems to be working well enough to package another release. I appreciate all of the bug reports I’ve gotten. If your favorite annoyance isn’t fixed or listed below as ‘known,’ please let me know.

The biggest improvement is in the album manager. Thumbnails can now be turned off, which should help with large image collections. It’s also now paged by category, which should help too. The delete function should work properly now.

Download photopress.zip or photopress.tar.gz.

You can always find the most recent version (and older versions too if you know where to look) at wp-plugins.org.

Known issues:

  • no dropdowns in the album manager: haven’t figured out how to do this yet
  • descriptions aren’t stored: the description you enter in the uploader is only used to make the image tag to insert in a post - it’s not stored in the database
  • missing options: see this post for details (upgrade to the latest WP to fix this)
  • broken buttons: try enabling the failsafe buttons on the options page
  • broken album layout: edit album.php, in the photopress folder
  • 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
  • resizing fails: your GD install needs to be working properly, sometimes re-installing seems to trick it into working

25 Responses to “Photopress 0.6”

  1. Claus Says:

    Hello Izaac!

    The new features are working like a charm! :-) Thanks!

    When you mean “no dropdowns”, you mean a dropdown menu to select a category for a certain photo, or you mean a dropdown menu to replace the links in the “paged categories” in the manager?

    BTW, where are you storing the category information? It doesn’t seem to
    be in the WP database.

  2. seriocomic Says:

    Isaac - I really appreciate the work you are doing on this - the best (in my opinion) gallery/image/photo plugin for wordpress. I sincerely believe that when it reaches v1.0 it should be one of the best plugins full stop!

  3. seriocomic Says:

    And as for adding dropdown boxes for assigning a category to the image (after it has been uploaded), I found this works:

    echo ‘<select name="’ . $pp_image . ‘" id="’ . $pp_image . ‘">’ . "\n";
    $pp_dropcats = pp_list_cats();
    foreach ($pp_dropcats as $pp_cats) {
    echo ‘<option value="’ . stripslashes($pp_cats);
    if ( (stripslashes($pp_manage_cat)) == (stripslashes($pp_cats)) ) {
    echo ‘" selected="selected’;
    }
    echo ‘">’ . stripslashes($pp_cats) . ‘</option>’ . "\n";
    }
    echo ‘</select>’ . "\n";

    - this code replaces the following line in the function pp_album_management in photopress.php:

    echo ‘<input name="’ . $pp_image . ‘" type="text" id="’ . $pp_image . ‘" value="’ . stripslashes($pp_manage_cat) . ‘" size="10" />’;

    now all I have to figure out is how to add a new category…

  4. seriocomic Says:

    and at the risk of comment flooding, I should point out that cut and pasting the code I just submitted will give errors due to the incorrect quotations - sorry.

    Claus - the category names are stored in an array in pp_options in the wp_options table :)

  5. Claus Says:

    Yeah. I noticed that. I’m tinkering with a way to replace that with a photopress sql table or two, So that the code for selecting categories becomes simpler, and we can start storing comments as well.

  6. seriocomic Says:

    Writing to the DB would be a far better option than the current setup I agree, and would also allow for the name/description to be stored as well, rather than using the image file name.

    If you manage to get it done, let us know!

  7. Paula Says:

    nice improvements!

  8. dondy Says:

    I made some improvements on SERIOCOMIC scripts to make it a little more usable!

    This way if you want to change or ADD a name for the “Default” Album you can and remove images from an album too.

    Hope you guys like it!

    if ( (stripslashes($pp_manage_cat)) == ‘Default’){
    echo ‘Posts with image: ‘ . “\n”;
    } else {
    echo ” . “\n”;
    $pp_dropcats = pp_list_cats();
    foreach ($pp_dropcats as $pp_cats) {
    echo ” . stripslashes($pp_cats) . ” . “\n”;
    }
    echo ‘REMOVE’ . “\n”;
    }

  9. dondy Says:


    if ( (stripslashes($pp_manage_cat)) == 'Default'){
    echo 'Posts with image: ' . "\n";
    } else {
    echo '' . "\n";
    $pp_dropcats = pp_list_cats();
    foreach ($pp_dropcats as $pp_cats) {
    echo '' . stripslashes($pp_cats) . '' . "\n";
    }
    echo 'REMOVE' . "\n";
    }

  10. dondy Says:

    its not showing up properly! hopefully it can be after moderation

  11. Paula Says:

    will be kewlly for next versions a multiple upload option; say up to 10 pics at a time or somat
    but is already a great plugin!

  12. clint Says:

    neat plugin thanks.

    couple things tho, alot of unecessary Validation errors. fixed most by encoding the ampersands in the admin options. also have no idea why the album css is embedded in the body of the document, moved that over to my external sheet and was valid again.

    gonna keep my eye on this, nice work!

  13. clint Says:

    oh one more thing, why when you click on a thumb it puts the image name in the search box in kubrick?

  14. Claus Says:

    Ok, I have managed to spit-glue some sort of hack to use the WP db to store picture information. It also stores (and display) the description.

    Here.

    It is not even half-way fully tested, it has two known bugs (don’t use it if you have pictures with underscores in their filenames), and is generally speaking a very ugly piece of code. So don’t try it if you’re afraiding of breaking your blog :-D Don’t say I didn’t warn you.

    If you wan’t to try to test it anyway, run the SQL file in the package, then go to the album management page and click the two new buttons, to export your current picture information to the BD.

    And if you feel like improving it, let us all know :-D

  15. Claus Says:

    Wrong link, Duh!

    Right one

  16. TJ Says:

    I seem to be having some problems… if anyone cares to look?
    http://freakytj.com/?pp_album=1

    It is screwing up my formatting and layout…. how do I correct this?

  17. 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!

  18. LisaW Says:

    Welcome back from your vacation, Isaac! Sorry to hear about your accident, and wishing you a speedy recovery.

    I’m in no rush, but I’m having a problem I can’t figure out re:

    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

    I believe I’m running your pp v.0.6. Downloaded from here, but my wp-admin shows 0.5.1. I’m running the latest version of wp 1.5.1.3

    Both my sidebar and album show:

    Warning: opendir(/home/virtual/site11/fst/var/www/html/wpsandbox/wp-content/photos): failed to open dir: No such file or directory in /home/virtual/site11/fst/var/www/html/wpsandbox/wp-content/plugins/photopress.php on line 157

    Warning: readdir(): supplied argument is not a valid Directory resource in /home/virtual/site11/fst/var/www/html/wpsandbox/wp-content/plugins/photopress.php on line 159
    No photos uploaded yet
    Admin:
    Site Admin
    Logout
    Search:

    Themes
    Orange Tulips
    Relaxation
    WordPress Classic
    WordPress Default

    Pages
    Hardcoded Links
    Links
    Testing Page Templates-1
    Testing Page Templates-2
    Testing Page Templates-3
    Blogroll
    Donncha
    Dougal
    Ryan
    Michel
    Mike
    Matt
    Alex
    Carthik
    Links
    OrganizedHome
    Whiteboard
    Categories:
    Uncategorized
    Geek Heaven
    change log
    Humor
    Archives:
    July 2005
    June 2005
    May 2005
    Credits:
    RSS
    Comments RSS
    Valid XHTML
    XFN
    WP
    Warning: opendir(/home/virtual/site11/fst/var/www/html/wpsandbox/wp-content/photos): failed to open dir: No such file or directory in /home/virtual/site11/fst/var/www/html/wpsandbox/wp-content/plugins/photopress.php on line 157

    Warning: readdir(): supplied argument is not a valid Directory resource in /home/virtual/site11/fst/var/www/html/wpsandbox/wp-content/plugins/photopress.php on line 159

    Photo Album
    no images yet

    The upload function generates:

    It doesn’t look like you can use the file upload feature at this time because the directory you have specified (/home/virtual/site11/fst/var/www/html/wpsandbox/wp-content/photos) doesn’t appear to be writable by WordPress. Check the permissions on the directory and for typos.

    even though all permissions on /photos are set to r-w-x

    I’m stuck. Can you help when you have an “extra” free moment?

    TIA,
    Lisa

  19. Patrik Says:

    Well, installed it now. Works like a charm, and I just would love to see the description-function work.

    One issue, when I only have one category, the albampage doesn’t work properly.

  20. Patrik Says:

    Oh, one more thing. I’m swedish, åäö isn’t working. If it’s hard to get working, don’t bother.

  21. LisaW Says:

    Ah! Left to my own devices long enough, I can generally correct my own screw ups! Nice app!

  22. Bobo Says:

    For a future release maybe have a way having a description/ ando r a way for people to comment on the pics??

  23. The Curator Says:

    I need some help. I’m running a photoblog and would like to integrate your plugin into it - I love the ease with which you can upload pictures while writing a post. However, instead of the code for the main image being echoed in the writing box, how can I get it echoed as a custom field “photo”? You see I display the custom field above the main (text) entry so I can have both pictures and writing in each post (see http://thehumanmuseum.com for an example of what I’m talking about). I’m no php guru and though I’ve had a look at the code I really have no idea what to do to make this happpen. Any help would be appreciated!

  24. desertborn Says:

    I need help. Probably a dumb question I know, but what is the code that I should add to my .htaccess file to make permalinks work with photopress?

  25. BrittaBlog » PhotoPress: the easiest integrated photo album Says:

    [...] The Photopress plugin by Isaac Wedin (version 0.6 as of writing) boasts a combination of extreme simplicity and user-friendliness with excellent integration into the WP admin interface. IOW: I like it. [...]

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!