Movable Typeユーザー・マニュアル: PRE-INSTALLED PLUGINS

« Table of Contents


PRE-INSTALLED PLUGINS

Nofollow

Starting with Movable Type 3.16, the "Nofollow" plugin is included by default in the application. This plugin automatically asserts a "nofollow" link relationship for third-party hyperlinks in comments and TrackBacks.

For more information about the nofollow link relationship, see the "Introduction to nofollow" at http://www.sixapart.com/pronet/weblog/2005/01/introduction_to.html

Plugin operation

The plugin alters the behavior of the following Movable Type tags:<$MTCommentAuthorLink$>, <$MTCommentBody$> and <MTPings>.

In each case, Nofollow will intercept the content produced by these tags and alter any hyperlinks it finds, adding a "nofollow" relation ("rel") attribute to them. In the event that a hyperlink already has a "rel" attribute, the "nofollow" relation is added to the front of the list.

For example the following submitted in comment or TrackBack:

<a href="http://sixapart.com">
<a href="http://movabletype.org" rel="software">

would become:

<a href="http://sixapart.com" rel="nofollow">
<a href="http://movabletype.org" rel="nofollow software">

You can also use a new global tag attribute provided with this plugin. The attribute is named "nofollowfy". You can apply it to any Movable Type tag to achieve the same effect described above. For example, if you had a plugin which displayed your site referrer information, you could use it as such:

<MTReferers nofollowfy="1">

Installation

The following files are installed by default in Movable Type 3.16 and higher:

plugins/nofollow/nofollow.pl
plugins/nofollow/mt-nofollow.cgi
plugins/nofollow/tmpl/nofollow.tmpl
php/plugins/init.nofollow.php

For Movable Type 3.x, upon proper installation, you will see a new "Nofollow" plugin listed on the Main Menu of your Movable Type installation. If you click on the link and get an error, you may have to set the permissions of the mt-nofollow.cgi script to 755. See the section in the Installation manual entitled Uploading Files for information about setting permissions.

Note that if you are upgrading from the first release of this plugin, you should remove the old version first to avoid having two copies installed that may conflict with one another. If you're installing the PHP version of the plugin and you're using dynamic publishing, you may have to clear your weblog's "templates_c" directory.

Uninstallation

To remove this plugin, just remove the files above. Then, rebuild your site so that your links published normally.

License

The Nofollow plugin is released under the Artistic License. The text of this license can be found in the LICENSE.txt file included with this archive. It is also available here: http://www.opensource.org/licenses/artistic-license.php


Copyright © 2001-2005 Six Apart, Ltd. All Rights Reserved.