MT3.0専用 MT-Blacklist v2.0e のインストール

昨日MT3.0のために緊急リリースされたMT-Blacklist 2.0eは渡りに舟!
ということで早速インストールしました。

まずは以前のバージョンのMT-Blacklistをアンインストールします。

PenPenPalm: MT-blacklist とMovableType 3.01との相性

weblogのコメント投稿の設定をどんな風に変えても、自動認証の処理を解除できなかったのは、古いMT-blacklistプラグインがMT/pluginディレクトリに残っていたためだった模様

まさにこれではまっていました。コメント承認の設定を外しても必ず承認が必要になっていたのは
MT/pluginディレクトリに残っていたせいでした。

・ダウンロード
MT-Blacklist v2.0e released

MTBv2.0e.tar.gz

をダウンロードします。これを適当なディレクトリに展開します。

以下MTB_READMEより

* INSTALLATION

Unpack the archive and upload to proper locations as laid out in the archive. Y
ou will be creating (or uploading) a 'Blacklist' directory into each of the foll
owing directories:

plugins/
extlib/
tmpl/
images/ (found in your MT static directory)

mt-blacklist-styles.css and mt-blacklist.js should go in the root of your MT sta
tic directory. The three blacklist database schema files (found in schema/ in t
his archive) go inside of your MT/schemas directory

The contents of the EXTRAS directory is optional and will be explained below.

Permissions: Chmod 755 all files in the plugins/Blacklist directory. Make sure
that the others are readable (i.e. usually 644 but 755 won't hurt)

展開したファイルのうち、
plugins/
extlib/
tmpl/
mt-blacklist-styles.css
mt-blacklist.js
schemas/
をmtが動作しているディレクトリにコピーします。
cssとjsはStaticWebPathのように書いてありますが、違うようでした。

images/

はStaticWebPath/imagesへコピーします。

EXTRAS はオプションで後で説明します。

chmodでreadパーミッションがすべてたっていること、cgi, plは755になっていることを確認してください。

* INITIALIZATION

First of all, you should back up your database if you know how. The MT-Blacklis
t initialization routines modify your MT database by adding a few extra tables.
With the exception of the addition of one row to the mt_plugindata table, your
current MT tables are not modified at all. However, it is always better to be s
afe than sorry.

To start the initialization, run mt-bl-load.cgi:

http://YOURDOMAIN.COM/path/to/mt/plugins/Blacklist/mt-bl-load.cgi

You should now remove mt-bl-load.cgi. Failure to do so introduces a major secur
ity risk.

http://YOURDOMAIN.COM/path/to/mt/plugins/Blacklist/mt-bl-load.cgi
へアクセスし、成功したらmt-bl-load.cgiを消去します。

mtb2.0e.jpg

その後、表示されるリンク先をクリックしてconfigします。

* CONFIGURATION

Once you've initialized and removed mt-bl-load, click on the link on the resulti
ng page to configure your setup. There are help links near most options in the
configuration and elsewhere throughout the program. Unfortunately, not all of t
he help documentation has been written yet, so be patient. Most things are self
-explanatory.

最初はactiveになってないので、activeにします。これでMT-Blacklistが動作しはじめます。

mtb2.0e2.jpg

* EXTRAS

Accessing MT-Blacklist via the MT admin interface normally requires you to go to
the main menu and then scroll down to the bottom of the screen where the MTB li
nk can be found. When you are in blog view, going up to go back down is -- to m
e at least -- just plain annoying. It is for this reason that I have created a
totally optional MT header file replacement with an MT-Blacklist button on the l
eft-side nav bar. By using this header file, you can access MT-Blacklist from j
ust about any page within the MT admin interface.

In the downloaded archive, you will find a directory names EXTRAS. This directo
ry contains two directories -- one for MT 3.0D and one for MT 3.01D. Pick the a
ppropriate version directory and upload the header.tmpl file to your tmpl/cms di
rectory in your server's main MT directory. This will overwrite the default hea
der.tmpl file so you may want to make a backup first.

テンプレートを入れ替えると MT adminと連携するようになるようです。ただテンプレートを上書きしてしまうのでバックアップをとることと、当然英語版だと思われるので日本語メニューが消えてしまうのではないかという危惧から私はやっていません。

以上で安心してコメントをオープンに出来ます。

関連リンク:
3.01不具合まとめ