Garden Challenge '09

Harvested: $16.65
Profit: -$88.35

Recent Posts



March 2010
S M T W T F S
« Jan    
 123456
78910111213
14151617181920
21222324252627
28293031  


Monthly Archives



Links



Search


Get Picasa Albums

Download

get-picasa-albums.zip

About

Get Picasa Albums will take a given Picasa username and fetch a listing of all public albums for the given user. Thumbnails to the individual albums will be displayed in a table on the specified WordPress page. Each thumbnail is a link to the actual Picasa album hosted by Google. The user can specify the number of columns to display, so that the resulting table matches the width on the webpage. The user may also specify if random thumnails are used instead of the Picasa thumbs already specified.

If random thumnails are used, a local cache file for each Picasa album will be stored in a sub-folder of the plugin. The cache files are updated if the timestamp on an album changes. If the current stamp matches an existing file, the existing file will be used to fetch a random thumbnail.

Note: PHP5 or higher is required

To see the code in action, check out my pictures page.

Usage

In a WordPress page or blog entry (remove the “” from around “GetPicasaAlbums”):

["GetPicasaAlbums" user="username" col="x" random="y/n"]
username: Picasa username (required)
col: Number of columns to display (not required; default=2)
random: Random thumbnails (not required; default=y)

Version History

v1.0.2 – 19 November 2008 – Fixed issue with hard-coded cache directory, check for PHP5
v1.0.1 – 16 November 2008 – Fixed issue where plugin was looking in wrong directory for cache files
v1.0.0 – 15 November 2008 – Original release

Donate

Some people ask what they can do to help. There are two things:

While I would never expect anyone to pay me for using this software, I also would never refuse payment ;-) If you use this software and would like to donate, please feel free to do so through the PayPal link above.

Credits

Helper code was found/used/modified from here:

http://www.ibm.com/developerworks/library/x-picasalbum/

http://code.google.com/apis/picasaweb/developers_guide_protocol.html

43 Responses to “Get Picasa Albums”

  1. JoaoVr Says:
    November 15th, 2008 at 7:53 pm

    Hi,
    The thumbnails dont work for me:
    http://img293.imageshack.us/img293/5108/semttulomd8.png

  2. Dan Says:
    November 15th, 2008 at 9:52 pm

    The thumbnails are not showing for me. wp – 2.7b3; The names of the albums are listed, just no thumbnails.

  3. baron Says:
    November 15th, 2008 at 10:47 pm

    hi. Thanks for plugin

    perfect.

    Regards

  4. Jonathan Says:
    November 15th, 2008 at 11:22 pm

    I have updated the zip file posted above…the PicasaAlbumCache directory did not have valid read/write access for creating the album cache files. Hopefully this will help.

  5. JoaoVr Says:
    November 16th, 2008 at 8:03 am

    Thank you for all your help!

    Is there a way to center the columns?

  6. Dan Says:
    November 16th, 2008 at 3:39 pm

    I de-activated,deletd plugin from server;downloaded most recent zip, extracted; uploaded to plugin folder; activated; created page with
    [GetPicasaAlbums user="myalbumusername"]
    but still no images. I checked folder folder permissions: – even at 777 can’t get any thumbs.

    php 5; wp – 2.7b3; The names of the albums are listed, just no thumbnails.

  7. Dan Says:
    November 16th, 2008 at 9:14 pm

    Thanks for marvelous support – I needed to specify all the options on the page.

  8. Jonathan Says:
    November 16th, 2008 at 11:25 pm

    Thanks to all that have downloaded this plugin so far…unfortunately I did find a bug that was causing issues with the thumbnail generation…I have since “released” version 1.0.1 of Get Picasa Albums. I hope I have more success with the new version!!!

  9. gary711 Says:
    November 17th, 2008 at 7:28 pm

    Fatal error: Call to undefined function simplexml_load_file() in /mail_data/admin/supergary/public_html/wp/wp-content/plugins/get-picasa-albums/GetPicasaAlbums.php on line 93

  10. Craig Says:
    November 18th, 2008 at 8:54 pm

    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/rockba2/public_html/dev/wohelo/wp-content/plugins/get-picasa-albums/GetPicasaAlbums.php on line 150

  11. JoaoVr Says:
    November 20th, 2008 at 9:50 am

    Hi,
    My album descriptions are not right spaced. Just check:
    http://img227.imageshack.us/img227/4035/getpicasauw1.png

  12. Dave Says:
    November 20th, 2008 at 11:04 am

    I get an error when trying to activate, Parse error: syntax error, unexpected T_OBJECT_OPERATOR in ……/wp-content/plugins/get-picasa-albums/GetPicasaAlbums.php on line 160
    I’m using 1.02

    the offending line is $thumbToUse = $thumbnail->attributes()->{‘url’};

  13. Jonathan Says:
    November 22nd, 2008 at 12:43 pm

    This error:
    Parse error: syntax error, unexpected T_OBJECT_OPERATOR
    can be a result in trying to activate the plugin using PHP4.

  14. Jonathan Says:
    November 22nd, 2008 at 12:45 pm

    The people that are having trouble with the album titles being centered under the thumbnails should consider looking at their CSS, or other HTML code surrounding the table.

  15. WordPress Plugin Releases for 11/16 | BlogBroker24-7 Says:
    November 23rd, 2008 at 7:21 am

    [...] Get Picasa Albums [...]

  16. WordPress Plugin Releases for 11/16 » All About Technologies Says:
    November 23rd, 2008 at 10:43 am

    [...] Get Picasa Albums [...]

  17. WordPress Plugin Releases for 11/16 » All About Technologies Says:
    November 23rd, 2008 at 10:43 am

    [...] Get Picasa Albums [...]

  18. Sabuj aka manchumahara Says:
    December 16th, 2008 at 11:29 am

    Thanks. I am using this plugin in my own blog.

  19. mike Says:
    December 22nd, 2008 at 5:50 pm

    Sorry I might be stupid.

    Howw can i include an album in a post?

    I go to pages and then insert [GetPicasaAlbums user="myname"] in the visual field and hit update page, that doesnt work. I’m a geek at this your help is appriciated ;)

  20. Gordo Says:
    January 3rd, 2009 at 3:01 pm

    Great plug-in but I am having trouble making it work. If you can help, here is the error: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /hsphere/local/home/gordoc28/cimoli.com/wp/wp-content/plugins/get-picasa-albums/GetPicasaAlbums.php on line 160

    Any idea?

  21. Jan J. Says:
    January 12th, 2009 at 10:44 am

    Same problem as #20 Gordo

  22. beau Says:
    January 22nd, 2009 at 6:05 am

    Hey, im entering this into a page and can see album titles but thumbnails wont display – [GetPicasaAlbums user="myusername" col="2" random="y"]

    any ideas?

  23. beau Says:
    January 22nd, 2009 at 6:29 am

    Sorry, i got it working by changing random=”n”

  24. Pescao Says:
    March 25th, 2009 at 6:55 pm

    For people with problems with simplexml_load_file, is becouse allow_url_fopen is disabl in php.ini. If curl is enable, use this:

    After the call, in line 102:

    // Read feed into SimpleXML object

    Write this function:

    function getXml($URL) {
    $curl = curl_init();
    curl_setopt($curl, CURLOPT_URL, $URL);
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($curl, CURLOPT_HEADER, false);
    $str = curl_exec($curl);
    curl_close($curl);
    return simplexml_load_string($str);
    };

    Then in line 103 change:

    $sxml = simplexml_load_file($feedURL);

    for:
    $sxml = getXml($feedURL);

  25. André Says:
    April 7th, 2009 at 7:39 pm

    Hi, Great plugin,
    Have you consider to make it to use as a widget?

    It’ll be nice.

    Thanks.

  26. Hermes Alves Says:
    April 26th, 2009 at 6:50 pm

    I’m trying to use [GetPicasaAlbums user = "username"] home.php page, but does not work. I’m trying to use the template directly on the homepage, but does not work. You know say why?

  27. Hermes Alves Says:
    April 27th, 2009 at 8:13 pm

    Can anyone help?

  28. BPap Says:
    April 30th, 2009 at 12:02 pm

    This works great! I just can’t seem to get my dates to show up under the album title. Am I missing something? I have checked the cache, and the file names have the correct dates. Thanks

  29. Irina Says:
    May 10th, 2009 at 10:34 am

    Hi! It’s cool plugin! I’m use it, and happy =)
    Will you upgrade it? may be, some new functions?

  30. manda.j Says:
    May 18th, 2009 at 1:08 am

    Love the plugin. With a little tweaking, I am using it with the titles also linking back to the photo album as the thumbnail image does. Best photo plugin I’ve used so far! No problems what so ever.

  31. James Says:
    June 8th, 2009 at 4:19 pm

    I found out why it was not working for me. My albums were set to unlisted. Once I made them Public, they appeared. But I don’t want to do that. Do you have a work around????

  32. Russell Says:
    June 16th, 2009 at 3:25 pm

    Love your plug-in first of all.

    I’m writing only to see if you will soon verify/certify your plugin as compatible with WP 2.8. As you likely know 2.8 has ‘broken’ in several ways due to how older plug-ins are written. While I don’t find your item to be causing issues, it would be great if you could ‘officially’ certify it for 2.8 when you get time.

    Thanks again for great work!

  33. fang Says:
    June 19th, 2009 at 12:46 am

    hi, thanks for your great plugin first.
    it works good at my site, but i have a problem to add some texts above the albums.
    though in HTML editor the text is above the albums, the albums display above the text in the real page.
    could you give me any hints to solve this problem?
    link: blog.fang4.us

    thank again for your great work.

  34. Sérgio Berlotto Says:
    July 7th, 2009 at 12:56 pm

    Hi, where i configure the style of displayed galeries ?

    see my “Fotos” page… tks !

  35. Erick Says:
    July 9th, 2009 at 9:48 pm

    Pathetic plugin. This functionality should not require a page, it should also be available as a function that I could include my theme or anywhere in my PHP code for that matter.

  36. bv Says:
    October 17th, 2009 at 3:27 pm

    Hi Jonathan,
    I’m starting to use the plugin. Is any way to specify the album to show in the post? E.g. my post is about a fieldtrip, so I need only the FieldTrip album…

    Thanks

    bv

  37. gugliotti Says:
    November 27th, 2009 at 1:20 pm

    I am a newbie wordpress user, maybe this is a silly mistake. I can see the thumbnails, but I get an error when clicking on the thumbnail:

    Google
    Error

    404 NOT_FOUND
    Unable to process request.

    what am I doing wrong?

  38. Steve B Says:
    December 7th, 2009 at 7:23 pm

    I’m getting the 404 error too.

    404 NOT_FOUND
    Unable to process request.

  39. Russell Says:
    December 7th, 2009 at 7:35 pm

    I bailed on the plug-in too. Freq errors. I just paste the slideshow html from picasa directly. Resized code a little, but otherwise works for me.

    http://www.milehighfan.com/photos/

  40. Steve B Says:
    December 7th, 2009 at 7:55 pm

    Russell,

    Have no idea how to do that. Might try it otherwise. This sucks because the plugin looked like exactly what I was after.

  41. Jonathan Says:
    December 7th, 2009 at 9:52 pm

    No, sorry. The plugin will currently display thumbnails for every album that you have in Picasa.

  42. Gwen32bj Says:
    December 30th, 2009 at 6:22 am

    Thanks a lot for your topic about this good post! I would buy a term paper or buy essays at the paper writing services.

  43. Uwe Says:
    January 12th, 2010 at 3:57 pm

    Hi,

    thanks for this nice plugin.

    Is there a way to include only one album in a post?

    Uwe

Comments