Flickr Gallery
Galleria (2 posts)

  1. mrrafs
    Posted 4 years ago #

    Hey guys....
    can anyone point me towards some info on how too get this working with Galleria.. php/jScript newbie, but can hack in a few other non-web languages..

    ta+ .rafal


  2. mrrafs
    Posted 4 years ago #

    where in 'flickr Gallery's' code would i ....

    <script type="text/javascript">
    $().ready(function() {
      // JSON feed from Flickr
      var feedUrl = "http://api.flickr.com/services/feeds/photos_public.gne?format=json&jsoncallback=?"
      // parse JSON using jQuery's built-in function
      $.getJSON(feedUrl, function(data) {
            // iterate through each item
            $.each(data.items, function(i, item) {
                // create image node in DOM and update it's src attribute
                // _m = medium img, _b = large; remove the replace function if you want the standard small images
                $("<img/>").attr("src", item.media.m.replace("_m", "_b"))
                    // add image to gallery container
                    // add a link to each image - this will go to the photo on Flickr
                    .wrap('<a href="' + item.link + '" target="_blank"></a>');


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Flickr Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic