Category Archives: MovableType

mt防止垃圾评论

本blog开放评论了,可担心垃圾评论的问题。
上网看了看,都推荐MT-Blacklist。
到MT-Blacklist的官方网站看看,结果发现。。。
 
MT-Blacklist was once an indispensible part of any Movable Type installation. For years, it kept us sane and did a better job than any other solution in keeping spammers at bay.
But then, came Movable Type 3.2. Movable Type 3.2 includes a sophisticated pluggable feedback rating framework that provides for a completely customized spam-fighting solution and a Junk folder that catches everything marked as Junk. What’s more, Brad Choate’s SpamLookup has been enhanced to work with the framework, had a number of new features added and is bundled with Movable Type 3.2.
Here’s what to do:
 
Get Movable Type 3.2
Remove ALL traces of MT-Blacklist from your plugins folder
Spend more time blogging and less time worrying about spam and server load
With these tools in place, the burden of spam has been completely eliminated from the Movable Type experience. You receive the comments and TrackBacks that you want, and the spam flows entirely into MT 3.2’s Junk folder and is auto-deleted after a short time.
For this reason, MT-Blacklist is no longer needed. I know that many of you spam-weary MT users can’t imagine living without MT-Blacklist, but believe me, you don’t need it. It takes infinitely more effort to maintain your blacklist, it’s less accurate and effective and with Movable Type 3.2’s plugin API, it’s nothing more than a poor hack.
I thank you all for your support over this time and it’s my honor to have helped all of you keep your sanity and your blogs spam-free(ish).
 
希望真的像她说的那样,,不然。。

安装mt的可选组件

重新配置了系统。发现mt的缩略图功能不能用。
运行mt-check.cgi。发现HTML::Entities和Image::Magick以及XML::Atom没有安装。
 
配置了n长时间,自己也重新编译了n次。始终不成功。。。
 
后来偶然发现ubuntu有了包搜索引擎,搜索。
 
然后,发现安装
perlmagick
libxml-atom-perl
这2个包就可以了:)

给blog增加了个tag

首先下载:Tagwire
安装很简单,解压后上传tagwire.pl文件到你MT的plugin目录就行了。
现在登录到MT后台,在plugin中应该可以看到这个插件了,现在我们来修改单篇文章模板使用这个插件。
编辑Individual Entry Archive模板,找到
 

<div id="more" class="entry-more">
<$MTEntryMore$>

 
在下面加上以下代码
 

<p>Tags:  <MTEntryTags>
<a href="http://www.technorati.com/tag/<$MTTag glue="," case_sensitive="1" encode_urlplus="1" $>" rel="TAG" title="TAG:<$MTTag$>"><$MTTag$></a>
</MTEntryTags>
</p>

保存并重建,好了,我们现在可以使用这个插件了。
 
关于Tag的输入格式,多Tag推荐使用逗号隔开
 
ps: 顺便可以在页面上加上,当然是为了方便搜索引擎了:)

<meta name="keywords" content="<$MTEntryKeywords$>" />

修改了下引用的格式

修改了下引用的样式
 

blockquote { border: 1px solid #d8e8c0;background: #e7f1d9;padding: 5px;overflow: auto;width: 92%;margin: 0px auto; }

 
同时也发现了可以在我修改的编辑器下使用引用的方法,嘿嘿,爽 不过刚刚发现一个问题。在不使用fck之前,blockquote是在<p>标签之外的,可以通过验证。而当我使用了fck之后,导致了blockquote在<p>标签之内,也就通不过验证了。晕。。看来2者只能选择其一阿