Flickr badge doesn't validate

September 30, 2005 10:31 PM | Comments (1)

I tried to tidy up my Flickr badge but realised that the default script tags that we're given, actually produces code which doesn't validate. A quick Google search indicates that other web-standards aware users are facing similar issues.

I did all I could - added the 'amp;'s to the '&'s and stripped out all the extra code they added on to it. I even accepted the fact that a table had to be used - though some of us know very well that we could control the layout more easily using styles. As of this time of writing, I've trimmed it down to 2 validation errors.

When there's more time, I might actually get my hands dirty with Flickr API, or modify a script someone's written. I see a small industry in Flickr API mods coming up. Take a look at what's listed on SourceForge already.

Recent entries

1 Comments

The *old* badge validates just fine. I'm not sure how long they're going to continue supporting it though.

Add the following 'src' to a javascript container:

http://www.flickr.com/badge_code.gne?nsid=YOUR_FLICKR_NSID&count=4&display=random&name=0&size=square&raw=1

From memory it outputs into a div class .flickrimg, then each image has it's own class being flickrimg1, flickrimg2 etc. You can easily change any of the URL's attibutes to change number of images etc too.

Subscribe to my feed

Feedburner

About this Entry

This page contains a single entry by vantan published on September 30, 2005 10:31 PM.

Mighty Mouse - first touch was the previous entry in this blog.

Tagged - 3 things is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

On Twitter...