|
FlickrPublicPhotos_Plugin
FlickrPublicPhotos PluginA Movable Type plugin for listing Flickr's Public Photos. This plugin employs Flickr API and Flickr::API module. Changes
OverviewFlickrPublicPhotos Plugin allows you to list public photos of an Flickr account owner, which can be specified by his/her username or mail address, or NSID. The plugin can show not only full-set of his/her public photos, but also recent N photos or random N photos. RequirementsThis plugin is supported on Movable Type 3.0 or later. The following Perl Modules provided by Cal Henderson are required: InstallationTo install this plugin, upload org copy 'FlickrPublicPhotos.pl' into your Movable Type's plugin directory. After proper installation, you will see a new "FlickrPublicPhotos Plugin" listed on the Main Menu of your Movable Type. TagsMTFlickrPublicPhotos container tagMTFlickrPublicPhotos is the container tag, which requires, or can be specified with, the following three options:
When omitting both "lastn" and "random" options, all public photos are listed. And if being specified both options, "lastn" setting is ignored. The following six tags are available inside of the MTFlickrPublicPhotos container tag: MTFlickrPublicPhotoTitle tagVariable tag for showing the title of the photo. MTFlickrPublicPhotoURL tagVariable tag for showing the URL of the Flickr's photo page. MTFlickrPublicPhotoImgURL tagVaribale tag for showing the URL of the thumbnail image of the photo. This tag can be specified with the following option:
MTFlickrPublicPhotoUploadDate tagVariable tag for showing the "uploaded date" of the photo. This tag can be used with various options for displaying "date", as well as MTDate or MTEntryDate. MTFlickrPublicPhotoTakenDate tagVariable tag for showing the "taken date" of the photo. This tag can be used with various options for displaying "date", as well as MTDate or MTEntryDate. MTFlickrPublicPhotoOwnerName tagVariable tag for showing the "owner name" of the photo. ExampleTo show the latest 5 public photos of the user named "Hirotaka Ogawa", with Square size (75x75), add the following into your template: <p class="flickr-photo"> <MTFlickrPublicPhotos user="Hirotaka Ogawa" lastn="5"> <a href="<$MTFlickrPublicPhotoURL$>" title="<$MTFlickrPublicPhotoTitle encode_html="1"$>"> <img src="<$MTFlickrPublicPhotoImgURL size="s"$>" /> </a> </MTFlickrPublicPhotos> </p> The output will be shown as below: <p class="flickr-photo">
<a href="http://www.flickr.com/photos/25545765@N00/11771398/" title="P1000775">
<img src="http://photos9.flickr.com/11771398_05b7253738_s.jpg" />
</a>
<a href="http://www.flickr.com/photos/25545765@N00/11771393/" title="P1000774">
<img src="http://photos7.flickr.com/11771393_60f21b3ffb_s.jpg" />
</a>
<a href="http://www.flickr.com/photos/25545765@N00/11771382/" title="P1000773">
<img src="http://photos7.flickr.com/11771382_2a90b25b13_s.jpg" />
</a>
<a href="http://www.flickr.com/photos/25545765@N00/11771366/" title="P1000772">
<img src="http://photos7.flickr.com/11771366_6ad79ba64d_s.jpg" />
</a>
<a href="http://www.flickr.com/photos/25545765@N00/11771348/" title="P1000771">
<img src="http://photos8.flickr.com/11771348_3106fef18a_s.jpg" />
</a>
</p>The above will look like in your browser:
See AlsoLicenseThis code is released under the Artistic License. The terms of the Artistic License are described at http://www.perl.com/language/misc/Artistic.html. Author & CopyrightCopyright 2005, Hirotaka Ogawa (hirotaka.ogawa at gmail.com) |