Skip to content

wonko/flickrtags

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FlickrTags

FlickrTags is an extension for the Radiant CMS that provides tags for embedding Flickr slideshows (and, eventually, photographs, photosets, etc.) in pages. You can see an example of an embedded slideshow at http://seansantry.com/portfolio/.

The latest version is available on GitHub. When cloning, ensure your clone is named flickr_tags:

    git clone git://github.com/santry/flickrtags.git vendor/extensions/flickr_tags

flickr:slideshow

The flickr:slideshow tag embeds a slideshow into a page (using an iframe). Photographs for the slideshow can be selected using a Flickr photoset ID or a comma-separated list of Flickr tags. For example, the tag

<r:flickr:slideshow user="10622160@N00" tags="portfolio"/>

adds a slideshow of all photographs that the Flickr user with ID 10622160@N00 has tagged as portfolio. This creates an iframe like this into the page:

<iframe align="center" src="http://www.flickr.com/slideShow/index.gne?user_id=10622160@N00&tags=portfolio" 
	frameBorder="0" width="500" scrolling="no" height="500"></iframe>

Note that you can't use your Flickr screen name in the user attribute. If you don't know your alphanumeric Flickr ID, you can look it up at http://idgettr.com/.

You can combine tags into a comma-separated list to get photos that match all the tags in the list. This example would create a slideshow for all photos tagged as portfolio and 2005:

<r:flickr:slideshow user="10622160@N00" tags="portfolio,2005"/>

You can also create a slideshow from a photoset by replacing the tags attribute with the set attribute. First, get the set ID from the photoset URL. For example, if the photoset has the URL

http://www.flickr.com/photos/10622160@N00/sets/548374/

the set ID is 548374. Then, specify the set ID in the flickr:slideshow tag

<r:flickr:slideshow user="10622160@N00" set="548374"/>

flickr:photos

To get the photos for a certain user

<r:flickr:photos user="flickr-userid" limit="8" offset="1">
   <a href="<r:photo:url />"><img src="<r:photo:src size="square"/>" alt="<r:photo:title />" /></a>
</r:flickr:photos>

Get the userid by visiting http://idgettr.com.

You should get a flickr API key, and provide it in the file config/flickr.yml in your radiant tree. The file is structured like this:

key: abc123abc123abc123abc123abc123abc123abc123
secret: abc123abc123

The flickr_fu gem should be installed.

This addition was made by Bernard Grymonpon (http://www.openminds.be/)

Acknowledgments

Thanks to John Long for creating Radiant and to Flickr for providing a great photo-sharing community.

Modifications by Frank Louwers:

  • enable caching, as it takes about 8 sec to do a Flickr request...

About

An extension for the Radiant CMS that provides tags for embedding Flickr slideshows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%