Fork me on GitHub
Current release is 2.1.6 (21 Nov 2014).

Users who have not yet upgraded to 2.1 should get security release 2.0.18.14 (1 Nov 2014). We will stop providing these security releases to 2.0 at the end of this year.

[Flickr addon] Random images - easy!

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.