Fork me on GitHub
Current Releases are 2.1 stable (major release) and 2.0.18.11 (security patch for 2.0)
We've also rebooted our GitHub repo, docs, and more!

[Flickr addon] Random images - easy!

edited February 2011 in Questions
This discussion is related to the Flickr addon.
This is a cool little plugin. If you want to display random images from a photosteam (as opposed to latest, as is the default) all it takes is one change to class.flickr.plugin.php.

Simply change:

$FlickrCode = '<div id="flickr_tab"><script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count='.$NumPics.'&display=LATEST&size=s&layout=x&source=user&user='.$UserID.'"></script></div>';

to

$FlickrCode = '<div id="flickr_tab"><script type="text/javascript" src="http://www.flickr.com/badge_code_v2.gne?count='.$NumPics.'&display=RANDOM&size=s&layout=x&source=user&user='.$UserID.'"></script></div>';

NB: caps are only for emphasis here.

More info:
http://www.flickr.com/badge.gne
and
http://www.flickr.com/services/api/

Comments

Sign In or Register to comment.