kPicasa Gallery 0.2.1 (maintenance release)

This new version fixes one very minor bug, one minor CSS annoyance and is a little bit more flexible with those with very custom installations:

  • Was not using the PHP function defined() correctly. But this is more of a cosmetic bug fix, as this wasn’t causing any trouble;
  • Removed « !important » from one of the CSS rules, as requested by Ted Thompson;
  • For those using WordPress 2.6 and higher, it now tries to use the WP_PLUGIN_URL constant, instead of hard-coding the plugins directory path. This allows people who moved the plugins directory somewhere else to use kPicasa Gallery. No impact on people who are already using kPicasa Gallery. Requested by Martin.

15 Responses to “kPicasa Gallery 0.2.1 (maintenance release)”

  1. Paul Says:

    Let me just say that I love your plugin. It has precisely what I needed! Before I got my own domain and WordPress installed, I kept a Blogspot blog and all my daughter’s pictures were hosted on Picasa. I dreaded moving all those pictures (over 500!) onto my server, along with setting up some kind of picture browser, but thanks to your plugin, I didn’t have to.

    That said, I have a request. Would it be possible to change the sorting order? Say, instead of displaying the oldest pictures first, to display the newest ones first?

    Possible or not, your plugin has still been of great, great use to me. Thanks again.

  2. Guillaume Says:

    Paul: the pictures are sorted in the same order as in your Picasa account. If you log into your Picasa account, you can edit your album and change the order of the pictures. You can sort them in any order you want, not necessarily in chronological order.

    The spirit of kPicasa Gallery is to take what Picasa sends, and output it with as little interference as possible. I want to keep it that way as much as possible.

  3. Martin Says:

    Thanks for the quick update.

  4. Jan Schulz Says:

    I’ve just found your plugin and would like to say thank you for it 🙂

    I’ve also had a look at it and would like to sugeste two features:
    * shortcodes to configure the galeries (makes it easier to configure the KPicassaGallery class)
    * plugins to format the thumbnail pictures (like in NextGenGalerie -> so that all my pictures look the same, even if they are located at differnet sources)

    I can write the first feature, but it requres, that the KPicasaGallery class does not “print” the resulting code, but returns it to the caller (and is printed there). Would you take such a patch?

  5. François Says:

    Hi,
    Thanks for this great plugin.
    I’m using the latest version of kPicasa Gallery and I think I found a bug. If you have a gallery with some images that have a caption and others that don’t, then the images without caption will have the caption of the last image displayed with a caption.
    If you go here: http://francoismichonneau.net/photos/?album=FloridaWildlife
    and you click on the first image, the caption will be correctly: “Nephila clavipes”, if you click on next, then the caption will still be “Nephila clavipes” even though there isn’t any caption associated with the image.
    Cheers,
    — François

  6. David Says:

    Merci beaucoup pour ce plugin !!! Il est génial 🙂

  7. chris Says:

    helloo. its great plugin. thank you

  8. Guillaume Says:

    François: hmm, I’m not sure what’s happening. I looked at the source code on your page and there’s no caption for the second image. I’m not sure where Lightbox is pulling this from.

    Can you try with another picture engine, just to see if the problem is only related to Lightbox?

  9. Guillaume Says:

    Jan Schulz: I’m not sure I understand what you mean by shortcodes?

    I’m not sure I understand your second request either. You would like to format your thumbnails… how do you want to format them?

    HTML is not output directly to the browser, it’s added to a buffer. Look at lines 228-230 in kpicasa_gallery.php

  10. Jan Schulz Says:

    @8 Guillaume: Re shortcodes: see here: http://codex.wordpress.org/Shortcode_API. Basically your KPICASA_GALLERY(…) will become something like [KPicasa album=… secure=…]. You wouldn’t need to parse this yourself, WP would do it for you. It would also be possible to add two picasa albums to the same page. It would also make the code shorter: lines 196-224 would be replaced by the standard shortcode intro (see obove link).

    Re format of thumbnails: Currently you can only customize the html-code for thumbnails by hacking the kPicasa code. NextGen Gallery supports templates: you can add a ‘template=template_file’ to the shortcode and the gallery will call template_file.php (first in the current theme dir, then in the plugin dir) and this file will have access to a object-array, which has all the data about the gallery. You can then loop over this array and write your own html code for the thumbnails.

    Re Output buffer: sorry, didn’t look hard enough :-/

  11. Simon Foster Says:

    Had a couple of problems on my hosts configuration, require(‘kpg.class.php’); didn’t pick up the right file so I changed it to require_once(dirname(__FILE__).’/kpg.class.php’); – thanks for the great plugin btw!

  12. François Says:

    Only Lightbox has this problem. Both slimbox2 and thickbox work fine, so I’m going to switch to slimbox2 for now. Thanks.

  13. Mac Millan Says:

    Hi , I’m using Kpicasa Gallery with content KPICASA_GALLERY(….) , but all of them broken . I’ve tried to fix it but nothing happen ? Please tell me how can I fix it? Thanks you !
    My website : http://playonl.com

  14. Nikhil Pai Says:

    Is it possible to use the kPicasa plugin with multiple Google/Picasa accounts?
    For example i want to create one page which contains my Picasa account in a particular Google account and I want to create another page in the same wordpress installation which contains my Picasa images from another Google account.

  15. Guillaume Says:

    Nikhil Pai: yes it’s possible to do so. I have added the procedure to the WordPress page.

    I believe that was the last undocumented feature.