sfFlickrGalleryPlugin - 0.1.1
Symfony FlickrGallery Plugin
You are currently browsing
the website for symfony 1
Modules to easily add a gallery of your photos published on Flickr.
|Xavier Luthi||lead||moc.liamg <<ta>> ihtul.reivax|
Copyright (c) 2007 Xavier LÃ¼thi
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Ã¯Â»Â¿= Symfony FlickrGallery Plugin =
This plugin allows you to easily add a gallery of your photos published on Flickr.
Three modules are available: one for your frontend application, two for your backend application. * flickr: frontend module responsible for displaying photosets & photos * flickr_album: backend module to manage your photosets * flickr_photo: backend module to mnage your photos.
note: this installation procedure assumes you have (at least) two applications defined in your project: frontend and backend. This is not mandatory, but it allows to clearly separate to frontend application from the management application.
apps/frontend/config/settings.yml: modify it to have to following lines:
all: .settings: enabled_modules: [flickr](default,)
apps/backend/config/settings.yml: modify it to have to following lines:
all: .settings: enabled_modules: [flickr_album, flickr_photo](default,)
Change to app.yml file of your frontend and backend application by adding two attributes for your flickr.com API key and secret. You should add the following lines in the "all:" section:
flickr_api_key: 12345678901234567890123456789012 flickr_api_secret: 1234567890123456
If you don't have a flickr.com API key or you don't even know what is a flickr API key, please go to: http://www.flickr.com/services/api or http://www.flickr.com/services/api/keys/apply
Since this plugin needs two objects in database, you should build the model and add the corresponding tables to your database:
> symfony propel-build-model > symfony propel-build-sql
You may then use the output of the latter command (yourproject/data/sql/plugins.sfFlickrGalleryPlugin.lib.model.schema.sql) to create the tables in your database.
In short: 1. in backend, create a new photoset by providing its FlickrID (the last part of its flickr URL to access it, example: 72157600086026936). Save it.
For this photoset, click on "Synchronize with flickr.com". This will load from flickr.com the informations of this photoset (title, description, number of photos, url)
For this photoset, click on "Load photos from flickr.com". This will create photo entries in your database for each photo contained in the photoset. WARNING: THIS MAY TAKE SOME TIME!
In your frontend application, visit the url /flickr/
Enjoy! For any feedback, you may contact me at: firstname.lastname@example.org