Skip to content

Simple web app for showing photosets of a Flickr user chronologically

Notifications You must be signed in to change notification settings

pyryk/FlickrPhotosetBrowser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flickr Photosets Browser

A simple web app for showing photosets of a Flickr user chronologically.

Usage

  1. Get Flickr API key for your application from http:https://www.flickr.com/services/apps/create/apply/
  2. Get your Flickr user ID by using e.g. http:https://idgettr.com/
  3. Paste the contents of this app to your web app folder
  4. Add the following snippet to a script element in your html.
  5. Add <div id="flickrphotos"></div> to your html

Snippet to initialize the app

flickrphotosets.api_key = "your_flickr_api_key";
flickrphotosets.user_id = "target_user_id";

jQuery(function() {
    flickrphotosets.init('#flickrphotos');
});

Widget

This app also provides a simple widget for showing most recent photosets. It is suitable for narrower space such as a sidebar. To use it, replace the snippet in step 4 with

  flickrphotosets.api_key = "your_flickr_api_key";
  flickrphotosets.user_id = "target_user_id";
  flickrphotosets.link_url = "link_to_your_proper_gallery_page";

  jQuery(function() {
    flickrphotosets.initWidget('#flickrphotos');
  });

Wordpress plugin

For historical reasons, this repository also includes a Wordpress plugin. To use it, paste the directory to wp-content/plugins and edit plugin settings in Wordpress settings -> Flickr photosets

Localization

This app supports very simple localization. To change strings, change the following options (default values in parentheses):

  • flickrphotosets.texts.flickr_link ("This photoset in Flickr")
  • flickrphotosets.texts.photos ("photos")
  • flickrphotosets.texts.updated ("updated")

Example

flickrphotosets.texts.flickr_link = "See this photoset in Flickr";

Depedencies

All these are bundled with the app.

About

Simple web app for showing photosets of a Flickr user chronologically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages