WordPress.org

Ready to get started?Download WordPress

Forums

Flickr Gallery
Galleria (2 posts)

  1. mrrafs
    Member
    Posted 2 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

    http://wordpress.org/extend/plugins/flickr-gallery/

  2. mrrafs
    Member
    Posted 2 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
                    .appendTo("#gallery")
                    // add a link to each image - this will go to the photo on Flickr
                    .wrap('<a href="' + item.link + '" target="_blank"></a>');
            });
    });
    </script>

    from:http://www.jamestease.co.uk/blether/display-flickr-photos-in-the-galleria-jquery-plugin/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags