Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter
Support for Vanilla Forums Cloud product

In this Discussion

Follow Us


[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.