Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » PicasaGallery Page Type allowing Picasa Web Albums to be embedded

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Page: 1
Go to End
Author Topic: 3396 Views
  • elijahlofgren
    Avatar
    Google Summer of Code Hacker
    222 Posts

    PicasaGallery Page Type allowing Picasa Web Albums to be embedded Link to this post

    Notes (from top of linked PicasaGallery.php.txt):

    The code structure and inspiration for this Page Type came from the FlickrGallery page type which is a part of the Lakshan's SilverStripe mashups module: http://doc.silverstripe.com/doku.php?id=mashups

    This page type uses code adapted from http://www.loloyd.com/blog/igs_picasaweb_api which is released under the terms of GNU/GPL http://www.gnu.org/licenses/gpl.html

    Note: Because this Page Type uses GPL code, I don't think it can be included as an official part of the SilverStripe core which is released under the BSD license.

    Demo: http://new.elijahlofgren.com/parks/

    Instructions for use:
    1. Download PicasaGallery.txt, change the .txt extension to .php, and place it in your mysite/code folder
    2. Download PicasaGallery.ss.txt, remove the .txt extension, and place it in your mysite/templates/Layout/ folder
    3. Run /db/build
    4. Create a PicasaGallery type page
    5. Fill in your Picasa Username and Album name. For example, with this URL "elijahlofgren" is the username and "ParkVisitsOnNewYears2007" is the Album name:
    http://picasaweb.google.com/elijahlofgren/ParkVisitsOnNewYears2007
    6. Save the page and view it (remove the ?shage=Live) from the URL.
    Tested on silverstripe 2.0.2 rc1.

    Known issues:
    1. The code is formatted very badly. ;)
    2. If something like "/?stage=Live" is appended to the Page URL, Firefox will give an XML parsing error. Workaround: Remove the query string from the URL.

    Hope this helps someone!

    Enjoy,

    Elijah Lofgren

  • laktek
    Avatar
    Google Summer of Code Hacker
    76 Posts

    Re: PicasaGallery Page Type allowing Picasa Web Albums to be embedded Link to this post

    WOW! Elijah this is awesome stuff.

    BTW, in my next iteration I'll be looking at possibilities of expanding RestfulServices to support GData API format. Which would make easy consuming Google based web services such as Picasa, Blogger and Calendar.

  • elijahlofgren
    Avatar
    Google Summer of Code Hacker
    222 Posts

    Re: PicasaGallery Page Type allowing Picasa Web Albums to be embedded Link to this post

    > BTW, in my next iteration I'll be looking at possibilities of expanding RestfulServices to support GData API format. Which would make easy consuming Google based web services such as Picasa, Blogger and Calendar.

    Great! Being able to embed Calendar and Blogger content would be really nice. In addition, having Picasa supported in the core of Mashups would be cool.

    Keep up the good work!

    Elijah

  • Matt
    Avatar
    Core Development Team
    84 Posts
  • s8ren
    Avatar
    Community Member
    1 Post

    Re: PicasaGallery Page Type allowing Picasa Web Albums to be embedded Link to this post

    i installed this extension as discribed and it seemed to be good (i could choose the page type and filled the forms with my picasa name and album name)

    but the page only brings out the message: There are currently 0 images in this photoset.
    You are viewing thumbnails page 1 of 0.

    all picasa parameters are right (i checked this three times ;) )... could anybody help me out?
    (silverstripe 2.2.1)

    thanks for help!
    soeren

    3396 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.