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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

PicasaGallery Page Type allowing Picasa Web Albums to be embedded


Go to End


5 Posts   4022 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: 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

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

Community Member, 86 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