kPicasa Gallery 0.1.4

I released a new version for those who reported connection errors since 0.1.0. The routine handling the connection to the Picasa server wasn’t as smart as it should have been. If you didn’t have any problem, there’s no need to update.

Someone emailed me saying that he didn’t see the kPicasa Gallery menu in the Admin / Options page. Is there anyone else experimenting this problem?

40 Responses to “kPicasa Gallery 0.1.4”

  1. Patrick Mark Says:

    Great job on the plugin! The best gallery project I’ve worked with but I’m also having the same problem mentioned by Jeff Rothe in December.

    The lightbox function works well in IE but does not operate in Firefox. Instead a prompt appears asking the reader to download the photo.

    Any suggestions?

    Ok, this is strange…. As I was typing this entry, I checked the site again and now lightbox works with both IE and FFx… Any ideas of why this may be occuring?

    Thanks and great work!

  2. Stas S. Says:

    Hi,
    I just wanted to say thank you once again for the amazing kpicasa.
    The highslide is amazing with the new version of kpicasa!!!
    Thank you and good luck!

  3. Guillaume Says:

    Hi Patrick,
    I have no idea of what could be happening. Maybe you had some file in your browser’s cache and they have now been updated? Maybe you could try on another computer that you know has never visited your website.

  4. Stas S. Says:

    You should have observed that lightbox is not loading only when the page is still loading it’s content. Lightbox will work only when the page has loaded whole its content. Btw, such issues I didn’t met at highslide, yet!

  5. Patrick Mark Says:

    Thanks Guillaume and others for the response. Makes sense. Keep up the good work!

  6. kenny Says:

    works for me.. no problems at all. great plugin.

  7. Carl F. Says:

    Love the plugin…Lightbox didn’t work correctly, but I settled for Highslide which I actually like better than Lightbox.

    Is there a way to incorporate the Picasa captions? The previous version allowed for that, but I’m not seeing a way to do it with this one.

  8. Guillaume Says:

    If Lightbox didn’t work, it was probably because of a conflit with another plugin or maybe with your current theme.

    What do you mean by incorporating the Picasa captions? Right now the caption is in the Highslide popup.

    Thanks for the feedback 🙂

  9. Carl F. Says:

    Hey Guillaume…The captions aren’t showing up for me…Here is the album:
    http://9queens.org/photo-gallery/?album=WomenInChess

    Here it is in Picasa with the captions:
    http://picasaweb.google.com/9Queens/WomenInChess

  10. Carl F. Says:

    Hey Guillaume,

    The captions don’t appear when I use Highslide. Here’s an example:
    http://9queens.org/photo-gallery/?album=WomenInChess

    Is there something else that I need to do to make them appear?

  11. Guillaume Says:

    Are you sure there are really captions for these pictures? If you go directly on the Picasa Web Albums websites, are the captions there?

    If they are, please post your Picasa username. Thanks!!

  12. Carl F. Says:

    Yes, the Picasa username is “9queens”.

    The gallery that I am referring to is here:
    http://9queens.org/photo-gallery/?album=WomenInChess

  13. vihali Says:

    I read somewhere that direct loading Picasa photos from Google server is not permitted. The photos should be cached locally then loaded from there.

    Any ideas about this issue?

    Is it possible to have an option that we could create a page to display the latest photos of the gallery, regardless the album they belong?

  14. Guillaume Says:

    Carl F., this is weird. First time I see this. Could it be another plugin conflicting with this one? I tried your account on my test blog and it works just fine.

    Usually you should have: <div class=’kpg-summary’>The description here</div>
    But it’s nowhere to be found in your page. I’m really clueless.

    vihali, this is not something I can do. Picasa provides a RSS feed with a list of all the albums, and another feed with all the pictures in the album. I simply parse them and display the pictures accordingly. But as far as I know, Picasa does not provide a RSS feed with the latest pictures. I suppose it could be done by hand, but it’s not the purpose of this plugin.

    And by the way, no need to email me directly 🙂
    I’m already warned as soon as a comment is posted here. If I don’t respond quickly, it means I’m really busy elsewhere.

  15. Steve Says:

    I was able to modify you’re code slightly to allow for it’s use within a post. It looks for “[” and “]” characters around your’re syntax, e.g. [KPICASA_GALLERY(JasonCrossesOverToBoyScouts)]

    BTW: I reference the code in this post: http://schraderenterprises.com/cms/2008/02/06/crossover/

    All you have to do for a manual is use the HTML codes for the brackets and the code won’t get confused. Sure it’s a little harder for you to write any manuals, but I think you’re increased difficulty is small compared with the great functionality increase.

    BTW: Kudos. This is the best plugin around for adding albums to posts.


    function loadKPicasaGallery ( $content = '' )
    {
    // $tmp = strip_tags(trim($content));
    $tmp=$content;

    // $regex = '/^KPICASA_GALLERY[\s]*(\(.*\))?$/';
    $regex = '/\[KPICASA_GALLERY[\s]*(\(.*\))?\]/';
    $parts=preg_split($regex, $tmp);

    // if ( 'KPICASA_GALLERY' == substr($tmp, 0, 15) && preg_match($regex, $tmp, $matches) ) {
    if ( preg_match($regex, $tmp, $matches) ) {
    ob_start();
    $showOnlyAlbums = array();
    $username = null;
    if ( isset($matches[1]) )
    {
    $args = explode(',', substr( substr($matches[1], 0, strlen($matches[1])-1), 1 ));

    if ( count($args) > 0 )
    {
    foreach( $args as $value )
    {
    $value = str_replace(' ', '', $value);
    if ($username == null && 'username:' == substr($value, 0, 9) && strlen($value) > 9)
    {
    $username = substr($value, 9);
    }
    else
    {
    $showOnlyAlbums[] = $value;
    }
    }
    }
    }
    require_once('kpg.class.php');
    $gallery = new KPicasaGallery($username, $showOnlyAlbums);
    $out = ob_get_clean();
    return $parts[0] . $out . $parts[1];
    }

    return $content;
    }

  16. Steve Says:

    Oh, and by the way: Nice theme!

  17. Guillaume Says:

    This is indeed one possible (and correct) way to do it. Great job, hope it’s useful to others. As for the theme, I don’t deserve any credit!

    EDIT: after seeing your site, great theme too 😛

  18. Bernhard Says:

    same, as i wrote on david`s blog… http://www.bitfusion.org/blog/2008/02/27/kpicasa-gallery-php4mod-v014/#comment-37

    Hallo, its me again…
    i am really happy with php4mod but… 😀

    is it posible, to check if visitor have “JavaScript” enabled and if they don`t, using an other type to view the image (e.g. open in a new page, with next and last image links)?

    because now, when JS is enabled, everything is working fine and by clicking on the thumbs, the picture is displayed in lightbox or highslide.
    but when JS isn’t enabled, only a “save as…” dialog popup, and it is really exhausting to whatch the gallery.

    hope sb a solution…

    thanks a lot
    Bernhard

  19. Guillaume Says:

    Hi Bernhard,
    I think the *vast* majority of people are using JavaScript. If they don’t, 95% of sites out there won’t even work properly.

    With Lightbox and Highslide, if they don’t have JavaScript enabled, they will still be able to see the full-size pictures, only not in the a new window.

    I don’t think it’s worth the effort to code such a thing when it’s going to be used by maybe 1% of your visitors?

    Is it really a problem, or a “nice to have”?

  20. Bernhard Says:

    Hi Guillaume,

    maybe you are right that only about 2% of my visitors (google analytics) havn’t enabled JS. So i also thought that this wouldn`t be a problem, but today i saw in my guestbook, that one visitor had a problem and i am a little sad about that. I looked up in the visitor-log and saw, that he hadn`t enabled JS. So i thought, if it is posible to code something if it isn’t too much work.
    But you are right, it is more a “nice to have” than a really problem i think.

    Maybe, a easier way is, only to check if JS is enabled, and if not, tell the visitor that the gallery didn`t work properly?

    Greets
    Bernhard

  21. Guillaume Says:

    I prefer this suggestion! I’m not sure how to detect if JS is enabled or not, but I’ll search Google for this. Noted in my todo.

  22. Bernhard Says:

    now, i have included a warning for every visitor on my homepage, if JS isn`t activated…

    i included following code in my header:

    “JavaScript” isn’t aktiv!!
    Um alle Funktionen incl. der Gallery nutzen zu können, aktivieren Sie bitte “JavaScript” in ihrem Browser!
    For all functions incl. the photo-gallery, please aktivate “JavaScript” in your browser!

    You can test it on my page: http://leetsil.fh-forum.org … just visit my page witch desabled JavaSkript.

    Greets
    Bernhard

  23. Guillaume Says:

    I thought <noscript> had been deprecated. Seems not. Thanks for your input Bernhard, I’ll integrate this in the next release!

  24. Liam Says:

    Hey, I’ve been putting up a site and wanted to use your plugin (awesome by the way), but it seems that the page on which the album(s) is displayed shifts the chuck to the right. Here is the link to the page.

    http://tectumology.info/?page_id=3

    Perhaps you can have a look?

    Keep up the awesome work!

  25. Guillaume Says:

    Hi Liam,
    I think it has something to do with your “#content ul.datestamp”, it’s not breaking properly to the next line. I’m not a CSS ninja but I know if you add <br style=”clear: both;”/> right after the </ul> containing the date/ time it will work correctly.

    I’m not sure why your other posts are fine though, maybe because <table> is a block-level element. I may be wrong on this though!

  26. Guillaume Petitclerc Says:

    Hi guys.

    Think i resolved this issue…

    Might be a problem with other classes loaded by the gallery or by Google.

    Had the same problem with AJAX pagination script vs lightbox. And i found this solution on a forum.

    You have to add this part of code to kpg.class.php at line 319 and 324.

    onclick=’myLightbox.start(this); return false;’

    Will look like print

    Works for me.

  27. Guillaume Petitclerc Says:

    oops. The code wasnt include in the last comment. Well you just have to add this part of code after the a href=’$fullURL’ in those lines.

    the guy explained that it was because it’s an outside page that’s loaded, Lightbox have to have a sort of order to start. And this code does that.

  28. Guillaume Says:

    Thanks for the research Guillaume. I haven’t tried your solution but it sounds great 🙂

    J’ai jeté un coup d’oeil à ton site, très intéressant comme parcours. J’entends régulièrement les Fréres Cheminaud à la radio!

    Guillaume²

  29. Guillaume Petitclerc Says:

    hahaha excellent! Ils sont bon ces gars là! Des amis d’enfance à moi.

    Je pense que ça va marcher sérieux le code. J’avais lu ça sur le forum de dynamicdrive pis ça marche sur mon blog… http://www.guillaumep.com/blog. T’as juste à cliquer sur photothèque.

  30. vihali Says:

    The plugin worked normally until two weeks ago, a “Save As” pops up whenever a picture is clicked. This just happens to the new pictures, everything’s still ok with the old ones (even in the same album).

    Any idea?

  31. Guillaume Says:

    That’s because Lightbox is not fully loaded. For a workaround for this (that’s how Ligthbox works, I can’t do much about it), look in the comments in the other posts.

  32. Wistiti Says:

    Hello,

    Pictures are not displayed for the users on my site unless I activate (with Role Manager) “edit user” for the profile.

    For example if you go to my site http://www.parisgolo.com/?page_id=64&album=MatchContreFCE without login you won’t see my pictures.

    That’s only when you are logged in with an acces that have “edit users” allowed that you can see the pictures. I can provide you an access to test by email if needed.

    Any idea ?

    Thanks
    Nicolas

  33. Guillaume Says:

    Hi Nicolas,

    Aurais-tu par hasard un plugin qui met la page en cache? Si oui, pourrais-tu m’en fournir le nom. Ou encore, aurais-tu mis ce post comme étant privé?

    Guillaume

  34. vihali Says:

    Thanks. The lightbox (I use slimbox actually) still works for the old pictures, not for the ones which have been uploaded since 2 weeks. The pictures are in the same album. I tried on other PCs the result was still the same.

    But forget it, I reinstalled the plugin and it works great now 🙂

  35. Wistiti Says:

    Salut guillaume !

    La page n’est pas en privé, c’est d’ailleurs la première chose que j’ai vérifié après avoir constaté le bug.

    Ma liste de plugin :

    AJAX Login
    Akismet
    AuthImage
    Democracy
    Easy Gravatars
    Events Calendar
    Exec-PHP
    kPicasa Gallery
    Role Manager
    Simple:Press Forum
    WenderHost Subpages widget

  36. Wistiti Says:

    Je vois toujours pas d’ou ça vient c’est vraiment étrange.
    Même en changeant de thème ça fait la même chose.

  37. muchio Says:

    Hi,

    I keep enjoyin using kpicasa gallery plugin. Though I have a feature request. How about a feature to display latest x photos in a sidebar, footer or wherever. It sounds like a flickr rss plugin, but any thought about that? Any comments?

  38. Morten Says:

    Hi – 100.000 thanks for KPicasa plugin. This is the best and most easy to install. In the future my wife wil be posting photo on our website – she’ll be happy – I’ll be more happy 😛

    Thanks for the good job!

  39. Guillaume Says:

    Thanks Morten!

  40. Leo Says:

    Hi, I just downloaded your photoplugin. But when i try to go to the settings it says:
    Fatal error: Call to undefined function get_option() in /var/www/vhosts/chileo.net/httpdocs/wordpress/wp-content/plugins/kpicasa-gallery/param.php on line 3…on line 3 there is nothing strange?

    leo