Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

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

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

PicasaGallery Page Type allowing Picasa Web Albums to be embedded


Reply


5 Posts   3531 Views

Avatar
elijahlofgren

Google Summer of Code Hacker, 222 Posts

11 July 2007 at 8:19am

Edited: 11/07/2007 8:32am

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: [url]http://doc.silverstripe.com/doku.php?id=mashups[/url]

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

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: [url]http://new.elijahlofgren.com/parks/[/url]

Instructions for use:
1. Download [url=http://www.elijahlofgren.com/silverstripe/code/picasa-web-embed/PicasaGallery.txt]PicasaGallery.txt[/url], change the .txt extension to .php, and place it in your mysite/code folder
2. Download [url=http://www.elijahlofgren.com/silverstripe/code/picasa-web-embed/PicasaGallery.ss.txt]PicasaGallery.ss.txt[/url], 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:
[url]http://picasaweb.google.com/elijahlofgren/ParkVisitsOnNewYears2007[/url]
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

Avatar
laktek

Google Summer of Code Hacker, 76 Posts

11 July 2007 at 9:20am

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.

Avatar
elijahlofgren

Google Summer of Code Hacker, 222 Posts

11 July 2007 at 10:27am

> 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

Avatar
Matt

Core Development Team, 84 Posts

11 July 2007 at 10:28am

Nice work Elijah :)

Avatar
s8ren

Community Member, 1 Post

28 July 2008 at 8:57pm

Edited: 28/07/2008 8:57pm

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