Flickr photos is a plugin that enables you to display thumbnail links of Flickr photos in your Movable Type blog. Flickr Photos focuses on displaying lists of photos, in many possible ways.
The new version, 0.80, has a few bug fixes and a few new features. The majority of these improvements were contributed by Annoying Old Guy, of Solid Wall of Code. Thanks, AOG!
Bug Fixes and Tuning:
-bug fix for MTFlickrPhotoTagURL, should now create correct links
-adjusted HTML in MTFlickrPhotoLink to be xhtml valid
-added a fix to an upgrade problem from v0.5 - if you receive errors after upgrading from v0.5, loading the plugin settings page should now fix it
-code optimizations to improve perfomance
-fixed a bug that was clearing configuration settings
-moved Expressions.pm to correct location to avoid conflicts
Features (details below):
-new tags for photo height and width
-added class elements to the FlickrPhotoLink tag for customization via CSS
-support for setting size and link arguments in MTFlickrPhotos container tag
-support for Plugin Manager (untested, as I was unsuccessful in installing Plugin Manager on my server, use with caution, feedback appreciated)
Basic Usage
You can easily list thumbnails by Filckr user and/or by Flickr tags. You can also control the number of thumbnails displayed and the size of the thumbnails. Each thumbnail can link to a larger version of the image, or to the Flickr page for that photo.
Here is an example of the easiest way to use FlickrPhotos in your templates:
<MTFlickrPhotos username="John Smith">
<MTFlickrPhotoLink> <br />
<br />
</MTFlickrPhotos>
The above template code will display thumbnail links for the 10 most recent photos for Flickr user "John Smith". (Tip: when entering the value for your 'username', you should use the name that appears after "Logged in as" on the top of each Flickr page when you are logged in. Your user name may contain spaces - if so, be sure to include those space as I have done with "John Smith" above).
Here another example that displays thumbnail links from any user tagged with "movabletype":
<MTFlickrPhotos tags="movabletype">
<MTFlickrPhotoLink> <br />
<br />
</MTFlickrPhotos>
Advanced Usage and FlickrPhotos Template Tags
FlickrPhotos includes the following template tags:
- MTFlickrPhotos is container tag for displaying photos. arguments include:
- username - restricts photos to a specific Flickr user.
- tags - retricts photos to those with the specified tags. Multiple tags can be specified, separated by comma.
- tag_mode - specifies the method for displaying photos by the tags argument. If tag_mode is set to 'any', it will display photos with at least one on the tags specified in tags. If tag_mode is set to 'all', it will only display photos tagged with each and every one of the tags specified by tags. Optional (the default value is 'any').
- search - retricts photos to those with the specified search text
- lastn - determines the number of photos to display. Optional (default is 10 photos).
- sort - method to sort the photos. This must be one of date-posted-asc, date-posted-desc, date-taken-asc, date-taken-desc, interestingness-desc, interestingness-asc, or relevance (with 'asc' meaning ascending and 'desc' meaning descending). The default sort method is 'date-posted-desc', which displays the mosting recently uploaded photo first.
- size - specified the size of the thumbnail images. For size, you can specify "s" (small square), "t" (thubmnail), "m" (small), "med" (medium), "o" (original size).
- min_upload_date - restricts photos to those with a minimum upload date. Date should be specified as YYYY-MM-DD.
- max_upload_date - restricts photos to those with a maximum upload date. Date should be specified as YYYY-MM-DD.
- min_taken_date - restricts photos to those with a minimum taken date. Date should be specified as YYYY-MM-DD.
- max_taken_date - restricts photos to those with a maximum taken date. Date should be specified as YYYY-MM-DD.
- group - restricts the photos to those of a specific group pool. The group argument requires the complete URL of the group page or group pool page. For example <MTFlickrPhotos group="http://www.flickr.com/groups/catchy/">. When using the special group argument, you can further filter the photos by user the lastn, tags, and username arguments - but not the others described above.
- set - restricts the photos to those of a specific photoset. The set argument requires the complete URL of the photoset page. For example <MTFlickrPhotos set="http://www.flickr.com/photos/markcarey/sets/55064/">. When using the special set argument, you cannot use the other arguments described above.
- contacts - restricts the photos to those of the contacts of a specific user. The contacts argument requires that you also specify a username. When using the special group argument, you can further filter the photos by user the lastn argument and with the following: just_friends shows only photos from those contacts marked as friends, single_photo displays one photo from each contact, and include_user will display photos include photos from the user specified. For example <MTFlickrPhotos contacts="1" username="John Smith" single_photo="1" include_user="1">
- favorites - restricts the photos to those of the favorite photos of a specific user. The favorites argument requires that you also specify a username. When using the special favorites argument, you can further filter the photos by user the lastn argument. For example <MTFlickrPhotos favorites="1" username="John Smith">
- everyone - display recent photos from all Flickr users. When using the special everyone argument, you can further filter the photos by user the lastn argument. For example <MTFlickrPhotos everyone="1" lastn="10">
- interestingness - display recent interesting photos from all Flickr users. When using the special interestingness argument, you can further filter the photos by user the lastn argument. For example <MTFlickrPhotos interestingness="1" lastn="15">
Note that each of the above arguments can be used together, including at least 'username' and/or 'tags'. Arguments listed below are 'special' and cannot be used with many of the arguments above:
- MTFlickrPhotoThumb outputs the URL to the thumbnail image. The size of thumbnail is determined by the FlickrPhotos plugin settings (see below), which can be overidden by an optional size argument. For size, you can specify "s" (small square), "t" (thubmnail), "m" (small), "med" (medium), "o" (original size) Example usage: <img src="<MTFlickrPhotoThumb size="t">">
- MTFlickrPhotoWidth outputs the width of the photo thumbnail in pixels.
- MTFlickrPhotoHeight outputs the height of the photo thumbnail in pixels.
- MTFlickrPhotoURL outputs the destination URL that can be used to link each thumbnail. This URL will be to either to the Flickr photo page or directly to a different size of the photo, as determined by the plugin settings. These settings can be overidden by an optional target argument specifying the size of the photo to link to (see choices above) or "page" to link to the Flickr photo page. Example usage: <a href="<MTFlickrPhotoURL target="page">">
- MTFlickrPhotoTitle outputs the Flickr title for the photo. This can be used as "alt" text for the thumbnails, and/or used a caption for each photo.
- MTFlickrPhotoLInk combined each of the above tags - it outputs a linked thumbnail, using the title as the 'alt' and 'title' for the link. The link will open in a new window. This tag is the easiest way to use FlickrPhotos, becuase you don't have to write any HTML for creating the link or displaying the image. This tags supports both of th optional arguments described above, size and target.
- MTFlickrPhotoDateUploaded outputs the date that the photo was uploaded.
- MTFlickrPhotoDateTaken outputs the date that the photo was taken.
- MTFlickrPhotoDescription outputs the description of the photo. For this tag to work, the "Get Photo Details" setting must be turned on (see details below).
- MTFlickrPhotoOwnerName outputs the username or real name of the owner of the photo. In order to display the real name, the "Get Photo Details" setting must be turned on (see details below).
- MTFlickrPhotoCommentsCount outputs the number of comments that have beeb made on the photo. For this tag to work, the "Get Photo Details" setting must be turned on (see details below).
- MTFlickrPhotoCommentsCount outputs the number of comments that have beeb made on the photo. For this tag to work, the "Get Photo Details" setting must be turned on (see details below).
- MTFlickrPhotoTags is a container tag that displays each of the tags assigned to the photo. For this tag to work, the "Get Photo Details" setting must be turned on (see details below).
- MTFlickrPhotoTagName displays the name of the tag. Must be used between <MTFlickrPhotoTags> and </MTFlickrPhotoTags> tags. For this tag to work, the "Get Photo Details" setting must be turned on (see details below).
- MTFlickrPhotoTagURL displays the URL to the Flickr page for the tag for the photo's owner. Must be used between <MTFlickrPhotoTags> and </MTFlickrPhotoTags> tags. For this tag to work, the "Get Photo Details" setting must be turned on (see details below).
- MTIfFlickrPhotoTags is a conditional tag - anything between the <MTIfFlickrPhotoTags>. and </MTIfFlickrPhotoTags> tags will only be displayed if the photo has one or more tags. For this tag to work, the "Get Photo Details" setting must be turned on (see details below). Here is an example of how these tags can be used to display the tags of a photo:
<MTIfFlickrPhotoTags>
Tags for this photo: <br /> <ul>
<MTFlickrPhotoTags>
<li><a href="<MTFlickrPhotoTagURL>"><MTFlickrPhotoTagName></a> </li>
</MTFlickrPhotoTags>
</ul>
</MTIfFlickrPhotoTags>
FlickrPhotos Plugin Settings
The following settings can bet set on a per-blog basis. To access these settings, select the blog you want and then choose "Settings" from the menu. Then choose the "Plugins" tab. You should then see FlickrPhotos in the list of plugins - hit the settings link to display the settings. The settings are:
- Thumbnail Size: This setting determines the size of the thumbnail images. Choice are Square, Thumbnail, Small, Medium, and Orginal. These sizes correspond to the sizes used by Flickr. The default is Thumbnail. This setting can be overidden by using the size argument as described above.
- Link to: This setting determines where each thumbnail will link to. You can link directly to a different size of the photo (you can choose from the same sizes as above) OR you can link each photo to the Flickr page for that photo. The default is Flickr Page This setting can be overidden by using the target argument as described above..
- Number of Photos: The default numbers of photos to display. The default is 10. You can override this by using the 'lastn' argument (for example, <MTFlickrPhotos username="John Smith" lastn="15"> )
- Photo List Cache: The length of time to cache the list of photos. After the above time frame has passed, FlickPhotos will check with Flickr to see if there are any new photos. It is highly recommended that this setting be set to 1 hour or longer. Choosing 'none' may slow down your rebuilds considerably. You can override this setting on a case by case basis by specifying the number of seconds in the refresh argument (for example, to set the Photo List Cache to 1 hour you could use <MTFlickrPhotos username="John Smith" refresh="3600"> )
- Photo Info Cache: The length of time to cache the detailed information for each photo (title, tags, description, number of comments, etc.). After the above time frame has passed, FlickPhotos will check with Flickr to see if there have been any changes to the photo information. It is highly recommended that this
setting be set to 1 week or longer. Choosing 'none' may slow down your rebuilds considerably. You can override this setting on a case by case basis by specifying the number of seconds in the refresh_details argument (for example, to set the Photo Info Cache to 2 weeks you could use <MTFlickrPhotos username="John Smith" refresh_details="1209600"> ) - Clear Cache Older Than: This setting will delete cache information about photo lists and photo details that are older than the time frame selected above. This is useful to remove data for older photos that you are no longer displaying, thus preventing your database from growing too large. It is recommended that this setting be set to 1 month or longer. Choosing 'Never' may cause your database to grow sigificantly larger, depending on how you use the plugin. IMPORTANT: With this setting, the cache will not be cleared automatically. To clear the cache you MUST return to this Plugin settings page. To prevent slow rebuilds, the cache-clearing function only runs when you access the Plugin settings page. Also note that this setting is global, meaning that it applies to photo cache data for all of your blogs.
- Get Photo Details: If set to "On", FlickrPhotos will ask Flickr for some details about each photo. Photo details includes the following: description (<MTFlickrPhotoDescription> ), number of comments
(<MTFlickrPhotoCommentsCount> ), owner location (<MTFlickrPhotoOwnerLocation> ), and tags (<MTFlickrPhotoTags> ). If you are not displaying these tags on your pages, you can change this setting to "Off" to improve perfomance and speed rebuild times. You can override this setting on a case by case basis by using the "fetchdetails" argument (for example, <MTFlickrPhotos username="John Smith" fetchdetails="1"> ) - Install Sidebar Widget: Checking the box for this setting and entering a Flickr username will automatically install a Sidebar widget that displays 5 recent photos. You can then customize this by editing the "Sidebar: FlickrPhotos" template module, which will be created after checking this option. This setting works with the Sidebar Manager plugin: Learn more about Sidebar Manager.
Requirements:
- MT 3.2
- Flickr::API Perl Module (included in download for convenience)
- XML:: Parser::Lite (included for convenience)
- XML:: Parser::Lite::Tree (included for convenience)
- XML:: Parser::Lite::Tree::XPath (included for convenience)
Download Now
Membership required, please sign-in or register:
Installation
- Expand the zip file and upload the contents of the 'plugins' folder to the 'plugins' directory of your MT installation and the contents of the 'extlib' folder to the 'extlib' folder of your MT installation.
- Adjust the plugin settings if desired (see above)
- Start using the above template tags in your templates.
If you like this plugin, please consider making a donation:
This plugun is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5. In other words, if you use this plugin, please display a "powered by Flickr Photos" link, such as the one below:
<a href="http://mt-hacks.com/flickrphotos.html" target="_blank">Powered by Flickr Photos</a>
Update: Included with this plugin is the MT Plugin Network plugin. MT Plugin Network helps keep you up to date about new and updated plugins from MT Hacks and other plugin providers, by displaying a list of recent plugin announcements with the MT admin area. Click here to learn more.
As always, please let me know if you find any bugs, or if you have any suggestions or comments.

Comments (114)
Hi, do I need a flickr API key for this plugin?
Posted by Marre | May 21, 2006 5:40 AM
Posted on May 21, 2006 05:40
I'm playing with this (very useful) plugin and everything is working except the tag. The "get photo details"-function is active and commentcount works. What could be the problem?
Posted by Marre | May 21, 2006 11:37 AM
Posted on May 21, 2006 11:37
Marre, no you don't need a flickr API key.
Regarding your problem with the MTPhotoDescription tag, I need more specifics. What exactly happens? Do you get an error or does the description simply not display? can you post the code you are using?
Posted by Mark Carey
|
May 22, 2006 9:28 AM
Posted on May 22, 2006 09:28
Hi, thanks for creating useful plugin.
When I set some arguments, I got thumnails which can not be seen because width and heights are set to 0.
Please check this url and source.
ttp://www.osmc.ne.jp/list/test.php
Could you tell me what do you think is the problem?
Posted by Anonymous | May 22, 2006 10:56 AM
Posted on May 22, 2006 10:56
To the person from osmmc.ne.jp, can you post the exact plugin code that you are using on that test page? It's hard to tell what is going on with all of the different groups of thumbnails on that page...
Posted by Mark Carey
|
May 22, 2006 11:40 AM
Posted on May 22, 2006 11:40
Hey! I can't get this to work. When I'm trying to rebuild templates with your code, the rebuilding stops and displays following error:
Can't use an undefined value as a HASH reference at /home/[...]/cgi-bin/mt/plugins/FlickrPhotos/FlickrPhotosLib.pm line 413.
Any ideas?
Posted by Andreas Rolfer | May 26, 2006 4:33 AM
Posted on May 26, 2006 04:33
Andreas,
Are you upgrading from version 0.5?
If so, this is what is causing the problem. To fix, you need to clear the cache. Simply loading the Plugin settings page should do this automatically (go Settings, then Plugins tab). If the problem persists after doing this, please let me know.
Posted by Mark Carey
|
May 26, 2006 5:56 AM
Posted on May 26, 2006 05:56
Nope, this is the first time I'm using it. I installed a clean copy of MT yesterday, and your version 0.8 today.
Posted by Andreas Rolfer | May 26, 2006 5:59 AM
Posted on May 26, 2006 05:59
Hmmmm. In that case, I need some more details -- what does your plugin code look like, what arguments and tags are you using? I assume you installed MT 3.2. What OS and database are you using?
Posted by Mark Carey
|
May 26, 2006 6:34 AM
Posted on May 26, 2006 06:34
I was just testing with your sample-code between the body-tags in MT:s default template, but with my own flickr-name.
I installed MT 3.2 on a Unix server with Berkeley DB.
Posted by Andreas Rolfer | May 26, 2006 10:31 AM
Posted on May 26, 2006 10:31
hi
please tell me how Can i add borders to the photos
Posted by tony | May 30, 2006 5:37 AM
Posted on May 30, 2006 05:37
Is there anywhere we can check out this plugin working, in action?
Posted by Angela | June 6, 2006 1:14 AM
Posted on June 6, 2006 01:14
Hei i've installed the plugin yesterday and everything worked fine. But then today i made sme changes and the flickr thumbnails didn't show antmore. I reverted everything as it was before, but the images still don't appear. On the source code of the page i get a img tag attributes widht="0" height="0". The plugin settings are restored to factory default and i'm only using the basic code you provided.
I've tried to override the plugin settings with the argument size="s" but doesn't seem to work.
Any suggestions? Thanks.
ps: the page that uses this code is www.biscaclothing.com
Posted by simone Magurno | June 24, 2006 3:15 PM
Posted on June 24, 2006 15:15
ok, maybe i've found a workaround: now my code is the following:
">
It seems to work as it did before (and is i wanted to).
i'm just wondering what was wrong with
Posted by simone Magurno | June 24, 2006 3:22 PM
Posted on June 24, 2006 15:22
Thanks for the great plugin, but is there a way to use it in an actual entry's context as oppossed to just in layouts?
In layouts (both static or dynamic) it loads perfectly fine, but inside of entries (ie: the body is the MTFlickrPhotos username="John Smith" etc) it doesn't convert the tags.
Posted by Doug | July 15, 2006 9:22 PM
Posted on July 15, 2006 21:22
Doug, yes this is possible.
I do this myself, using the Process Tags plugin. This plugin enables you to use MT Template tags within your entries (including Flickr Photos tags). Works well.
Posted by Mark | July 16, 2006 7:38 AM
Posted on July 16, 2006 07:38
Hmm, I've got Process Tags installed, but it doesn't seem to be co-operating. I've recently upgraded to MT 3.31, so I don't know if there's an issue- it doesn't seem to be processing any MT tags. I'll keep playing around with it.
Posted by Doug | July 16, 2006 5:46 PM
Posted on July 16, 2006 17:46
I think this now may just be a problem with how this one blog is set up- I already had Process Tags installed (but didn't remember it), and it seems to work with one blog but not another. Thanks for the reminder about Process Tags! I should be able to hammer it out now.
Posted by Doug | July 16, 2006 5:56 PM
Posted on July 16, 2006 17:56
First, I apologize for all the replies.
Second, things are generally okay now, but I've hit some definite oddness:
The example: http://www.dougstewart.org/gallery/hdr/
The code used is (angles changed to square brackets):
[MTFlickrPhotos username="Douglas Dollars" set="http://flickr.com/photos/douglasdollars/sets/72157594201617076/" size="med"]
[MTFlickrPhotoTitle]
[MTFlickrPhotoLink]
[MTFlickrPhotoDescription]
[/MTFlickrPhotos]
and the code is working fine for other sets, but for this one it displays one image correctly, but the URLs for the others are somehow missing my username (douglasdollars)
http://www.flickr.com/photos//164499704/in/set-72157594201617076/
instead of
http://www.flickr.com/photos/douglasdollars/164499704/in/set-72157594201617076/
Is this a bug, some Flickr goof-up, or something that I can fix on my end? All other sets seem perfectly fine.
Posted by Doug
|
July 16, 2006 10:40 PM
Posted on July 16, 2006 22:40
I suppose Flickr is the best ways to share, sort , search and store the photos online. It
aims to take photo storage beyond the "album"
concept. :D
Posted by Nick Wilson | July 24, 2006 3:43 AM
Posted on July 24, 2006 03:43
I'm confused - when I open the zip file there are no folders, only the files. Your instructions say to:
Expand the zip file and upload the contents of the 'plugins' folder to the 'plugins' directory of your MT installation and the contents of the 'extlib' folder to the 'extlib' folder of your MT installation.
When I upload all files to only the FlickrPhotos folder in the Plugins folder, I get errors when I try to use the plugin features.
Posted by Kevnc
|
July 24, 2006 4:44 PM
Posted on July 24, 2006 16:44
Top notch plug-in but I believe I have a couple of bugs to report:
1) MTFlickrPhotoWidth and MTFlickrPhotoHeight do not seem to provide the correct height and width if the size of the thumbnail is amended using size="s".
2) I am displaying three images. With the first image the content of MTFlickrPhotoDescription is displayed. This isn't the case with the second and third image.
3) The first image uses the friendly version of my flickr url for MTFlickrPhotoURL. The second and third images do not.
Also, it seems odd that the username (Flickr screen name) seems to being used as I assume this isn't unique?
All the best,
--
Ian
Posted by Ian Fenn
|
July 24, 2006 5:26 PM
Posted on July 24, 2006 17:26
Kevnc, the zip archive does indeed include folders (I just tested, to make sure). When you expand the zip, you may need to choose and option to use/maintain folder names. In the version of WinZip that I use, this option is called "use folder names".
Posted by Mark Carey | July 24, 2006 5:33 PM
Posted on July 24, 2006 17:33
Ian,
1) You are correct. Those tags won't work if the size argument is used with the MTFlickrThumb tag. There seems to be no way to get this to work (at least that I can see). I think that the using "size=" in this way should be deprecated. The reason is that you can specify the "size=" argument as part of the MTFlickrPhotos (container) tag, such as <MTFlickrPhotos username="Joe Smith" size="s" lastn="3">. I think this should meet your needs. Please let me know if this works, or if there is a need to get it to work in the actual Thumb tag.
2) I was not able to reproduce this issue. See my test page here. I am just speculating here, but I wonder if the issue is a cache problem. For example, the older photos (2 and 3) may have been cached without description, or before the description was added in Flickr. To test this theory, add refresh_details="1" to you MTFlickrPhotos tag (but don't forget to turn this off later, for perfomance reasons). Let me know if you continue to experience the issue after refreshing your cache.
3) Sounds like the same cache issue. Let me know if you continue to experience the issue after refreshing your cache.
Regarding the username comment, Flickr screen names are indeed unique.
Posted by Mark Carey | July 24, 2006 6:29 PM
Posted on July 24, 2006 18:29
Hi Mark,
Thanks for the reply. You're a star.
1) I've moved the size="s" to the container tag. All seems well.
2+3) You're spot on - once I refreshed the cache using your additional code, both descriptions and friendly link details appeared. Not sure why they weren't in the cache in the first place, but I'm glad they are there now.
I'm sorry but pleased that I was wrong about usernames. Thank you very much.
Posted by Ian Fenn
|
July 24, 2006 8:19 PM
Posted on July 24, 2006 20:19
This rocks. But any idea how to make this baby work like a "flickr badge" ?
THe wordpress version is really rockstar looking:
http://tantannoodles.com/toolkit/wp-flickr-dhtml-badge/
Can anything like that be scraped out of this plugin?
Posted by Nick Aster
|
July 25, 2006 12:20 AM
Posted on July 25, 2006 00:20
Nick, thanks for that link. I played with it a bit and .... it works! Take a look at my test badge here. Pretty cool.
I will publish the instructions soon, and will package this into the next release as an "easy-to-install" Widget for MT.
Posted by Mark Carey
|
July 25, 2006 7:06 AM
Posted on July 25, 2006 07:06
Hi!
Please suggest some ways to add borders to the photos so as to make them much more presentable on the site............and Flickr with added features is simply amazing!!!
Posted by Ben Bicais | August 8, 2006 6:23 AM
Posted on August 8, 2006 06:23
I've just upgraded to MT 3.31 and I having trouble getting my Flickr thumbs to show up. Is the plugin not compatible with this version of MT yet or perhaps my coding is incorrect.
This is what I have entered in my index page:
<div class="module-archives module"> <h2 class="module-header">Flickr <div class="module-content">
<ul class="module-list">
<MTFlickrPhotos username="astromonkey" lastn="9" size="s"> &;t;MTFlickrPhotoLink><br />
<br />
</MTFlickrPhotos>
</ul>
</div>
</div>
Posted by Karl
|
August 13, 2006 7:50 PM
Posted on August 13, 2006 19:50
Karl,
Yes, Flickr Photos does work with MT 3.31.
Your template code looks fine. When I look at the HTML source on your home page I see that the flickr thumbs are being set to zero length and width (width="0" height="0").
There are 2 things you should try:
1. Clear your cache by temporarily altering your settings, or by temporarily adding refresh=1 and refresh_details=1 to your MTFlickrPhotos tags, then rebuild.
2. Download FlickrPhotos version 0.82, which addresses are rare case that exhibits these symptoms.
If these don't fix the problem, please let me know.
Posted by Mark ? | August 14, 2006 8:08 AM
Posted on August 14, 2006 08:08
I just added Flickr Photos to a new MT install. The last few photos (.jpg format) that I had previously saved in my photostream showed up just fine. However, when I added a few new images, screenshots saved in .gif format, I got the Flickr "This photo is currently unavailable" image instead.
I think I see what's going on now; when resizing my .gif images, Flickr saves the thumbnails in .jpg format. If I look at the thumbnail on Flickr itself, it looks fine, and has a .jpg extension. The "unavailable" image shown on my weblog has a .gif extension instead. I can repost the same images converted to .jpg format to Flickr, and they show up just fine; I'll do that for now as a workaround. Am I correct in guessing that your plugin assumes that resized images use the same file extension as the original?
If I can help answer any questions, or help you with any additional troubleshooting, please let me know.
Posted by harmfulguy
|
August 21, 2006 4:26 PM
Posted on August 21, 2006 16:26
harmfulguy, thank you for this report.
I did not realize that all Flickr thumbnail images are in .jpg format. The only version they keep as the orginal file format is the "original size" version. I will make a few tweaks to the code to adjust for this.
Posted by Mark Carey
|
August 22, 2006 7:40 AM
Posted on August 22, 2006 07:40
Hi, I want to integrate this plugin with flashrelief. So I need the name of the image file. for example: sunshine.jpg Is it possible with this plugin?
Posted by Eric
|
September 9, 2006 4:12 PM
Posted on September 9, 2006 16:12
Eric,
Flickr image names are weird one like "233210670_659bedb659.jpg". The current version of the plugin does not include a tag that just outputs this image filename. The <MTFlickrPhotoThumb> and <MTFlickrPhotoLink< can output a full path to the image, including the http://www.flickr.com/photos/, etc. If you need a tag that only outputs the filename portion, I can add that. A few questions: is the the filename of the thumbnail image that you need, or the file name of the linked image? I guess my question is, how the "233210670_659bedb659.jpg" be used?
Posted by Mark Carey
|
September 9, 2006 5:37 PM
Posted on September 9, 2006 17:37
Hi again and thanks for reply. In flashRelief xml file you have to write this information:
<item>
<img>image.jpg</img>
<thumb>timage.jpg</thumb>
</item>
as you see, one needs both the filename of the image and the filename of thumbnail.
I hope it is all you need to know. I really appreciate if you add this to the plugin.
Posted by Eric
|
September 10, 2006 7:02 AM
Posted on September 10, 2006 07:02
Eric,
The lasted version, v0.84, has two new tags:
<FlickrPhotoThumbFileName> - thumbnail filename
<FlickrPhotoURLFileName> - linked image file name
You can get the new version here. I have not yet announced this version.
Please keep in the loop with the flashrelief integration, I woul love to see an example when you are done.
Posted by Mark Carey
|
September 13, 2006 4:56 PM
Posted on September 13, 2006 16:56
Is there any way to use the plugin to format the images taken from Flickr into tables so that instead of just a list of images it can be a CSS formated table of the images? This would make the plugin much more Template friendly...instead of just a plain list of images. Any ideas as how to do this? Thanks much...great plugin!
Posted by AJ
|
September 30, 2006 9:40 AM
Posted on September 30, 2006 09:40
AJ, the plugin does support CSS styling in a few ways:
-the <MTFlickrPhotoLink> tag includes the following CSS "class" attributes. The link <a href tag has class="mt-flickr-photo-link" and the <img tag has class="mt-flickr-photo-image". You can do a lot with these styles to chnage the appearance of the photos.
-for further customization, don't use MTFlickrPhotoLink. Instead use MTFlickrPhotoThumb and MTFlickrPhotoURL (as described above) to craft your own HTML to display each photo. This could include table tags, of course. That said, the one thing that the plugin does not directly support, is an easy way to specify the "number of photos per row" of a table -- specifically, when to insert </tr> and <tr> tags.
Posted by Mark Carey
|
October 1, 2006 8:39 AM
Posted on October 1, 2006 08:39
Hi there - I'm probably asking a similar question to Doug, but not sure on implementation of MT tags within other tags.
The MT code piece below is what I want to achieve, using the tags I assign to a posting (MTTagName) to create the Flickr tag filter (
It doesn't work, so what am I doing wrong? I'm sure the quotation marks for glue = ", " are contributing to the non-functioning.
Thanks
Simon
Posted by Simon de Haast
|
October 6, 2006 4:50 AM
Posted on October 6, 2006 04:50
Simon, what error are you getting? Or is is just that no photos are displayed?
Posted by Mark Carey
|
October 6, 2006 8:05 AM
Posted on October 6, 2006 08:05
Hi Mark
No error, just doesn't render the code. Works perfectly if I hard code the tags= parameter.
Posted by Simon de Haast
|
October 6, 2006 10:19 AM
Posted on October 6, 2006 10:19
Simon, I should have asked this my first reply, but have you looked at the HTML source of the page? Does show nothing where the photos should be or some mangled template tag code?
Oh, and just to make sure, do you have the Expressions.pm file in /path/to/mt/extlib/MTPlugins?
Finally, have you tried this without the glue=, for an entry that has only one tag? Maybe try single quotes for the glue?
Posted by Mark Carey
|
October 6, 2006 10:52 AM
Posted on October 6, 2006 10:52
Ok, in the source I have a start and end comment line [!--flickr photos start --] etc. When I try to render the MTTagName code portion, HTML only renders the comment start and end pieces, nothing in between.
Expressions.pm is present in my extlib/MTPlugins dir.
Taking away glue= or using single quotes renders the code, but fetches all photos in my flickr account, as the tags parm isn't rendered. Specifically, a [/MTEntryTags]" ] fragment for each pic is left in the final HTML which appears on my posting as " ].
(replace all square with angle brackets).
It may be that I'm missing some basic MT template coding practice? Eg. What's with using $Tag$ sometimes eg. $MTTagName$.
Posted by Simon de Haast
|
October 6, 2006 11:42 AM
Posted on October 6, 2006 11:42
Simon, I am not sure why your method doesn't work. I tested it myself, and it doesn't work.
With some help from the MT Pronet email list, I have a solution that works:
<MTSetVarBlock name="tags"><MTEntryTags glue=", "><$MTTagName$></MTEntryTags></MTSetVarBlock>
<MTFlickrPhotos username="User Name" tags="[MTGetVar name='tags']">
<MTFlickrPhotoLink>
</MTFlickrPhotos>
Posted by Mark Carey
|
October 6, 2006 5:25 PM
Posted on October 6, 2006 17:25
Cool bananas...Mark you rock.
Works perfectly, thanks for the coding help. Was wondering how to set variables, didn't even consider going to look inside the MT tags template guide.
Posted by Simon de Haast![[TypeKey Profile Page]](http://mt-hacks.com/nav-commenters.gif)