17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 3300 Views |
-
PicasaGallery Page Type allowing Picasa Web Albums to be embedded

11 July 2007 at 8:19am Last edited: 11 July 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
-
Re: PicasaGallery Page Type allowing Picasa Web Albums to be embedded

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.
-
Re: PicasaGallery Page Type allowing Picasa Web Albums to be embedded

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
-
Re: PicasaGallery Page Type allowing Picasa Web Albums to be embedded

11 July 2007 at 10:28am
Nice work Elijah
-
Re: PicasaGallery Page Type allowing Picasa Web Albums to be embedded

28 July 2008 at 8:57pm Last edited: 28 July 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
| 3300 Views | ||
|
Page:
1
|
Go to Top |



