New unobtrusive dynamic flickr badge
A work colleague who runs Tobago Retreats asked me to create a gallery badge that automatically shows her latest flickr photos in her gallery and I started another flickr badge from scratch.
The outcome looks like this:
All you have to provide is a link to the flickr stream or the tagged images in your stream as a text link with a DIV with the class “flickrbadge” around it.
The script is a single include and loads the style sheet and the YUI help files on demand when they are needed. Visitors can see your photos on the page and click the thumbnails to see the larger preview. You can style the badge any way you like by changing the supplied CSS file.
The script is licensed Creative Commons attribution and is free for use.
If there is interest in a step by step explanation how it works, retrieves the YUI files and the flickr data, I can write something up, but for the moment I’ll be happy about feedback on the script as it is.
It does not work in Opera at the moment and I have a bug request with them running.
Check out the script and download it on its homepage: dynamic JavaScript flickr badge v2
Image hosted on flickr.



October 11th, 2007 at 11:12 pm
October 9th, 2007 at 11:28 pm
October 9th, 2007 at 7:11 pm
September 21st, 2007 at 6:41 am
September 11th, 2007 at 1:51 am
September 10th, 2007 at 10:42 pm
Her pics looked great, reminded me of Jamaica last year :-)
I think that if you give the JS call a type=”text/javascript”, you’ll be golden!
Nice work.
September 10th, 2007 at 10:47 pm
Ah, but there is a misconception. The text/javascript attribute is actually not really needed, as ever since NS2.0 JS was the only language running in browsers!
September 11th, 2007 at 9:44 am
I’m not certain what keeps amazing me the most. Yours (and others) skills or your willingness to share.
September 11th, 2007 at 10:05 am
Is there an easy-ish way to change the number of thumbnails being shown? Honestly, your ‘evil, dark magic’ was to powerfull for me to decode.
(sorry for double commenting)
September 11th, 2007 at 10:32 am
@Jesper alas, not yet. I hard-coded the amount of photos to 5 a piece with 4 lists, as the JSON API only returns 20 photos at a time. Personally I hate having to click through feeds photo by photo. Maybe in a next version :)
September 11th, 2007 at 7:15 pm
This is good stuff. Any chance of a Wordpress plugin for this?
September 11th, 2007 at 7:39 pm
Maybe a nice addition to this great job. Translating the little text that’s used; read out the language attribute of the element/document and display the translated version…
October 4th, 2007 at 7:55 am
Hi there,
i love this little flickr widget you created. Is there any way to display more than 5 images. That would be great.
pls let me kno
Cheers
November 6th, 2007 at 2:06 pm
Hi Chris
I really like this badge that you have created, but would like to know if it’s possible to increase the size of the images in the badge?
Thanks
Stephen
November 16th, 2007 at 5:53 pm
[...] New unobtrusive dynamic flickr badge A compact Flickr-Badge for presentation of Flickr-images with a navigation option. [...]
November 29th, 2007 at 9:15 pm
[...] to Chris Heilmann for the [...]
February 26th, 2008 at 4:29 pm
Great tool … thanks.
Is there any way to select a collection rather than a tag – I have my photos organised in collections with different tags that cross multiple collections.
thanks
Andy
March 3rd, 2008 at 4:41 pm
Christian,
After hours of searching, this badge is exactly what I want to fill in the gap left by the absence of album thumbnails for sets in Flickr. But when I cut and paste the code into my website – nothing happens. First thought is that I am doing something wrong. I am just cutting and pasting the code below into an html page:
My latest photos
on flickr
Any thoughts?
Arasmus
April 15th, 2008 at 4:06 pm
[...] New unobtrusive dynamic flickr badgeA compact Flickr-Badge for presentation of Flickr-images with a navigation option. [...]
April 15th, 2008 at 4:06 pm
[...] New unobtrusive dynamic flickr badgeA compact Flickr-Badge for presentation of Flickr-images with a navigation option. [...]
April 16th, 2008 at 1:12 pm
[...] Pour des diaporamas de Photos attrayants iCarousel et Carousel, voir aussi Mini Showcase … dans le même genre y a aussi Product Slider qui reproduit le menu des produits du site Apple et, toujours d’inspiration Apple, qGallery affiche des images à la manière d’iPhoto ou encore un badge Flickr dynamique, [...]
April 16th, 2008 at 8:57 pm
[...] New unobtrusive dynamic flickr badge ??????? ?????? ??? ????????????? ??????????. [...]
April 19th, 2008 at 12:53 am
[...] New unobtrusive dynamic flickr badge [...]
April 20th, 2008 at 5:22 pm
[...] New unobtrusive dynamic flickr badge A compact Flickr-Badge for presentation of Flickr-images with a navigation option. [...]
April 25th, 2008 at 6:26 pm
[...] New unobtrusive dynamic flickr badge [...]
May 5th, 2008 at 6:25 am
[...] New unobtrusive dynamic flickr badge A compact Flickr-Badge for presentation of Flickr-images with a navigation option. [...]
July 18th, 2008 at 6:41 am
[...] New unobtrusive dynamic flickr badge A compact Flickr-Badge for presentation of Flickr-images with a navigation option. [...]
July 30th, 2008 at 10:41 am
Fantastic piece of coding, works very well.
Was wondering how to display a set from the url in the html ?
Cheers
IL
August 30th, 2008 at 5:33 am
[...] 116. New unobtrusive dynamic flickr badge [...]
August 30th, 2008 at 11:26 pm
[...] New unobtrusive dynamic flickr badge [...]
September 10th, 2008 at 11:41 pm
nice output here – simple and easy to use :)
September 19th, 2008 at 8:48 am
Wait till I come! » Blog Archive » New unobtrusive dynamic flickr badge…
New unobtrusive dynamic flickr badge
A work colleague who runs Tobago Retreats asked me to create a gallery badge that automatically shows her latest flickr photos in her gallery and I started another flickr badge from scratch.
The outcome looks like…
September 30th, 2008 at 4:56 pm
[...] New unobtrusive dynamic flickr badge A compact Flickr-Badge for presentation of Flickr-images with a navigation option. [...]
October 31st, 2008 at 5:45 am
[...] New unobtrusive dynamic flickr badge A compact Flickr-Badge for presentation of Flickr-images with a navigation option. [...]
November 8th, 2008 at 12:09 am
Do you know a possibility to display the title of the photo above each image?
November 28th, 2008 at 2:22 am
[...] click here to see the complete example [...]
July 15th, 2009 at 1:54 pm
can this work with a flickr group? It works great with my flickr page but I tried it with a group I’m an administrator of and the images wouldn’t show?
Thanks
July 24th, 2009 at 11:55 pm
also requesting a version that would work with a flickr group.
would really appreciate this capability.
August 28th, 2009 at 5:08 pm
Thank you so very much for sharing this awesome piece of coding with the world.
September 21st, 2009 at 9:21 pm
Wondering if there is a way to display a set of photos instead of my photostream?
Thanks much!
November 29th, 2009 at 1:42 pm
[...] New unobtrusive dynamic flickr badge [...]
February 8th, 2010 at 1:35 am
Holy cow! Awesome!!
Thanks so much. Will definitely be picking this up