Download Now

FormatList v1.4

Membership required, please sign-in or register:

This is a minor update to FormatList that provides no new functionality. Version 1.4 includes updated button images ( and ) that match the new buttons in Movable Type 3.31. (Thank you to demonsurfer for help with these images!)

Requirements: Movable Type 3.3 or higher

For more information about FormatList, click here.

Previous versions of FormatList will not work with Movable Type 3.3 (or later). The new version (1.2) will only work with MT 3.3 or later.

FormatList no longer requires the BigPAPI plugin.

Download Now

FormatListv1.2.zip

Membership required, please sign-in or register:

If you want to use FormatList with MT 3.2, please download:

FormatList1.1forMT3.2.zip

Membership required, please sign-in or register:

FormatList adds list buttons to the toolbar, in the MT admin entry screens. For more information, click here.

Note: with this version, I have not updated the button images to reflect the new sizes that are used by MT 3.3, so you may notice a slight difference in size, compared to the new 3.3 toolbar buttons.

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!

New Features and Bug Fixes

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.
    • 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:

    • 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">

  • 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

FlickrPhotos.zip

Membership required, please sign-in or register:

Installation

  1. 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.
  2. Adjust the plugin settings if desired (see above)
  3. 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.

Update: This plugin addresses a bug seems to affect only some people who upgraded to Movable Type 3.2 from previous versions. I don't know what leads to the problem, but if you get a "You must define a Comment Pending Template" error message, this plugin can help. I previously thought (incorrectly) that the problem was due to a design flaw in Movable Type 3.2. In MT 3.2, a new feature was introduced that enabled blog authors to have comments held for moderation, or place in a junk folder, depending on settings and other criteria. In such cases, a message is shown to the commenter, notifying them that the comment is being held for moderation. This message is displayed via a new "Comment Pending Template". When you create new blogs with MT 3.2, it automatically creates this system template.

The problem, which affects only certain installations (not sure why or how many), is that the upgrade process for MT 3.2 does not create a "Comment Pending Template" for existing blogs on the system, as it should ( blogs that were created with previous versions of MT). If you are affected by this issue, when comments get held for moderation, commeters get an ugly MT error screen, with the cryptic error message "You must define a Comment Pending template". This means nothing to commenters, of course, who cannot create such a template. Another challenge, it turns out that even blog owners/admins cannot define a "Comment Pending Template" from the MT admin interface. When you browse to System templates, there are no options to create this template. Googling for a solution, a found a message from a SixAparter saying that the only way to add this template is to use the TemplateRefresh plugin on the entire blog. This is BAD IDEA if you have many customized templates! While it does back up your customized templates, it creates a mess by replacing all your templates with the default ones, making a big mess for you to clean up later.

Hence, the reason for this plugin.

What this plugin does

DefineCommentPending does exactly what it says, it defines a Comment Pending Template for a particular blog. The plugin creates a "Define Comment Pending Template" plugin action that will appear at the bottom of your template listing screens (when you click "Templates" from the MT menu). A single click of this link will create the Comment Pending Template and enable you to customize it, if desired.

Installation:

1. Download Now:

DefineCommentPending.zip

Membership required, please sign-in or register:

2. Expand the zip file and upload to the "plugins" directory within your MT directory.

3. In the MT admin interface, browse to the blog you want, then choose "Templates" from the menu.

4. Click the "Define Comment Pending Template" link that appears below the list of templates.

5. Repeat for each blog, as desired.

This plugin acts as a "connector" between MT-Blacklist and Movable Type 3.2. The most recent (and final) version of MT-Blacklist was not designed to work with Movable Type 3.2. The reason for this is because MT3.2 included SpamLookup, a new spam filtering plugin. While SpamLookup may be effective for many users of Movable Type, some people (including myself) found that MT-Blacklist was more effective on their systems. It is for this reason that I have created this "connector" plugin.

The connector is not for everyone -- some systems will benefit more than others. In my opinion, systems with the following characteristics may be ideal candidates:

  • systems with many blogs
  • systems with a large number of entries
  • systems that had accumulated a large Blacklist before upgrading to MT3.2

Note that this connector plugin is not an alternative to SpamLookup. With Blacklist32 installed, comments and trackbacks will be scanned by both SpamLookup and Blacklist32. In some cases, each plugin may assign a junk score to the same comment -- keep this in mind when adjusting your spam score settings.

Requirements:

  • MT-Blacklist 2.04b (may work with prior versions, but I have not tested them) - MT-Blacklist does all the heavy lifting, Blacklist32 just hooks into it to make it work nicely with MT3.2. Download MT-Blacklist 2.04b
  • Movable Type 3.2
.

Features:

Blacklist32 includes the following 'hooks':

  • New comments and trackbacks will be checked for matches against your local MT-Blacklist. If a match is found, a junk score is assigned, and a feedback log message is added.
  • A "Despam Comment(s)" action has been added to the Comment Listing screen. Simply check the comments that you want to despam, and choose this action from the dropdown. MT-Blacklist will then despam the comments, extracting any domains for optional inclusion in the blacklist. Note that items are junked, not deleted.
  • A similar plugin action has been added to the Edit Comment screen, enabling you to despam a single comment from that screen.

Download Now

Blacklist32 v0.75

Membership required, please sign-in or register:

Installation:

  • Upload to the 'plugins' directory of your MT installation.
  • Adjust the junk score weight via Settings > Plugins, if desired (default is 1)

As always, questions, comments, bug reports are appreciated.

New in version 1.1: I fixed a bug that was preventing the list buttons from working in the "Extended Entry" field. The features remain the same, as described below.

FormatList is a plugin for Movable Type that makes it easy to create bulleted or numbered lists when creating or editing entries.

FormatList adds the following two button to the formatting toolbar that appears just above the "Entry Body" and "Extended Entry" fields:

To create a bulleted list:

  • Enter the list of items, hitting enter after each line (you can leave blank lines in between list items if desired)
  • Select (highlight) the list
  • Click the button

To create a numbered list:

  1. Enter the list of items, hitting enter after each line (you can leave blank lines in between list items if desired)
  2. Select (highlight) the list
  3. Click the button

Requirements:

  • BigPAPI Plugin (For convenience, I have included this plugin in the FormatList download) (more about BigPAPI)
  • Movable Type 3.16 and higher (I think....currently tested with MT 3.2 only)

Download Now

New in version 1.1: I fixed a bug that was preventing the list buttons from working in the "Extended Entry" field. The features remain the same, as described below.

FormatList is a plugin for Movable Type that makes it easy to create bulleted or numbered lists when creating or editing entries.

FormatList adds the following two button to the formatting toolbar that appears just above the "Entry Body" and "Extended Entry" fields:

To create a bulleted list:

  • Enter the list of items, hitting enter after each line (you can leave blank lines in between list items if desired)
  • Select (highlight) the list
  • Click the button

To create a numbered list:

  1. Enter the list of items, hitting enter after each line (you can leave blank lines in between list items if desired)
  2. Select (highlight) the list
  3. Click the button

Requirements:

  • BigPAPI Plugin (For convenience, I have included this plugin in the FormatList download) (more about BigPAPI)
  • Movable Type 3.16 and higher (I think....currently tested with MT 3.2 only)

Download Now

FormatList.zip

Installation Instructions:

  1. Download and expand the zip file
  2. Upload the contents of the 'plugins' folder to the 'plugins' folder of you MT installation (there are two files, FormatList.pl and BigPAPI.pl)
  3. Upload the contents of the' images' folder to the 'images' folder within the 'mt-static' folder. This is the location of the images and docs for MT, for most people it will likely be in '/mt-static/images' (outside your cgi-bin).

I hope others find this as helpful as I do. I created this plugin becuase it was quite tedious to create list manually, and this plugin makes it really quick and easy.

Note: As you would expect, each of the lists above was created using FormatList ;)

Flickr photos is a plugin that enables you to display thumbnail links of Flickr photos in your Movable Type blog. The new version, 0.75, has many more features than the previous version. Flickr Photos focuses on displaying lists of photos, in many possible ways.

New Features

This version has many new features, including:

  • display photos from a specific photo set
  • display photos from a specific group pool
  • display photos of the contacts of a specific user
  • display the favorite photos of a specific user
  • display recent photos from all Flickr users
  • display photos based on search text
  • display recent interestingness photos
  • display detailed information about each photo (description, date taken, date uploaded, owner name, owner location, number of comments, and tags)
  • display photos within a specified date range
  • sort photo displays in various ways
  • caching features for photo list and photo details to speed rebuilds
  • install Sidebar Manager widget setting, displays recent photos in your sidebar

Here are few examples:

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 Flick 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.
    • 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.
    • 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:

    • 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">

  • 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">">
  • 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

Download the plugin by clicking here.

Membership required, please sign-in or register:

Installation

  1. 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.
  2. Adjust the plugin settings if desired (see above)
  3. 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>

As always, please let me know if you find any bugs, or if you have any suggestions or comments.

Flickr photos is a plugin that enables you to display thumbnail links of Flickr photos in your Movable Type blog.

You can 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 Flick 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>

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. Required if a tags argument is not included.
    • tags - retricts photos to those with the specified tags. Multiple tags can be specified, separated by comma. Required if a username argument is not included.
    • 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').
    • lastn - determines the number of photos to display. Optional (default is 10 photos).
    Example tag with all arguments included: <MTFlickrPhotos username="John Smith" tags="movabletype,hacks" tag_mode="all" lastn="5">
  • MTFlickrPhotoThumb outputs the URL to the thumbnail image. The size of thumbnail is determined by the FlickrPhotos plugin settings (see below). Example usage: <img src="<MTFlickrPhotoThumb>">
  • 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). Example usage: <a href="<MTFlickrPhotoURL>">
  • 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.

FlickrPhotos Plugin Settings

There are two settings which you can set on a pe-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 two 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.
  • 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.

Requirements:

  • MT 3.2 (it may work with earlier versions, but I have not tried)
  • Flickr::API Perl Module (included in download for convenience)
  • XML:: Parser::Lite and XML:: Parser::Lite::Tree (included for convenience)

Download Now

Download the plugin by clicking here.

Membership required, please sign-in or register:

Installation

  1. 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.
  2. Adjust the plugun settings if desired (see above)
  3. Start using the above template tags in your templates.

As always, please let me know if you find any bugs, or if you have any suggestions or comments.

FormatList is a plugin for Movable Type that makes it easy to create bulleted or numbered lists when creating or editing entries.

FormatList adds the following two button to the formatting toolbar that appears just above the "Entry Body" and "Extended Entry" fields:

To create a bulleted list:

  • Enter the list of items, hitting enter after each line (you can leave blank lines in between list items if desired)
  • Select (highlight) the list
  • Click the button

To create a numbered list:

  1. Enter the list of items, hitting enter after each line (you can leave blank lines in between list items if desired)
  2. Select (highlight) the list
  3. Click the button

Requirements:

  • BigPAPI Plugin (For convenience, I have included this plugin in the FormatList download) (more about BigPAPI)
  • Movable Type 3.16 and higher (I think....currently tested with MT 3.2 only)

Download Now

FormatList.zip

Membership required, please sign-in or register:

Installation Instructions:

  1. Download and expand the zip file
  2. Upload the contents of the 'plugins' folder to the 'plugins' folder of you MT installation (there are two files, FormatList.pl and BigPAPI.pl)
  3. Upload the contents of the' images' folder to the 'images' folder within the 'mt-static' folder. This is the location of the images and docs for MT, for most people it will likely be in '/mt-static/images' (outside your cgi-bin).

I hope others find this as helpful as I do. I created this plugin becuase it was quite tedious to create list manually, and this plugin makes it really quick and easy.

Note: As you would expect, each of the lists above was created using FormatList ;)

Finally, Six Apart has launched an affiliate program for Movable Type and other products. Details about the program can be found here. Unfortunately, the program using Commission Junction, which is unfortunate, since they don't make it easy for affiliates to promote their programs and earn money. People are already having problems signing up with CJ. The Movable Type affiliate program could be a lot better, but at least its here. It has been a long time coming.

And if you would like to order Movable Type, please click here. ;)