Monthly Archives: December 2005

MT分页的另类解决方法

网上关于mt的分页,也是一直在讨论。似乎也没有什么好的方法。
有一个相关的就是使用php来替代。但使用php,不如直接用wp了。今天作了一个测试,已经可以完美的把mt转换的wp了。
但还是不甘心放弃mt。
 
mt唯一让我不爽的就是不能分页。导致了分类归档的页面实在太长,太长
 
另类解决方法,也就是分页的一个变态解决方法
 
在分类归档的页面里面,找到
 <MTEntries>
修改为
 <MTEntries lastn="X">
其中,x为你想要分类归档显示的数目,就可以了。
如果想要看全部的,就search 和Archives

垃圾邮件也越来越有水平了。。

下班前收到一封垃圾邮件,真是有水平阿。有理有据,写得还很吸引人。
贴上来,大家看看了
 
Hi my Dear!
 
I want to start my first letter from a question: "Is it possible to be happy without LOVE?"
I think that you will agree with me if the answer will be "NO WAY". Love is the most beautiful and exciting thing that may happen between man and woman! It inspires us only for doing positive things towards each other.
One very famous writer said: "The beauty will rescue the world" i agree with his words but still i would add :
" LOVE and Beauty will rescure the world".
I hope you agree with me that Love is a big notion.
There’s love to  God, to Mother, to a child to the country where you were born, and there’s love that joins a man and woman for all their life. That is the LOVE i’m looking for! And i’m seeking for the man who is also eager to have this life long adventure full of surprises and new experience we can share together! Will you join me for this trip?
I do realise that it should be very difficult to say "Yes" from the first letter having no idea about me.
That’s why i just offer to get to know each other better though correspondence that will help us to reveal many things about each other whether we mach perfectly or not. In addition you can look at my pictures and read some info about me here http://miXSAHB.i-looking-for-you.com/
I hope you’ll like what you see and read there.
Well closing my first letter to you i just want to thank you for reading it and i really hope that you’ll share my point of view on what i said above. I do really hope that you’ll answer me soon.
 
good-bye,
Bibi M.

安装了scode生成验证码

为了防止评论,还是给mt安装上评论需要输入验证码的scode吧。
网上关于scode的安装还没有比较完全的,这里写一下自己安装笔记
 
1. 下载SCode1.0
2. 将压缩包中plugins目录下的SCode解压到MT的插件目录plugins中;
3. 登录MT3.2管理后台,在主菜单右键点击plugins,进入插件管理;
4. 在插件管理列表中找到SCode,点击Show Settings,设置SCode参数:
Temp Directory:临时目录。这里要写服务器上的绝对路径
Length:验证码长度,默认是6位
Max Temp File:临时文件夹中最多允许多少个临时文件
Action:当验证码出错时怎么处理评论
5. 切换到Blog的Setting目录,选择Plugins,在插件列表中找到SCode,点击Show Settings,勾选“Enable Security Code (CAPTCHA) checking on this blog.”以打开验证码服务;
 
然后修改单篇归档模版,在合适位置添加

   <label for="scode">Security Code:</label><br />
   <input type="hidden" id="code" name="code" value="<$MTSecurityCode$>" />
   <img border="0" src="<$MTCGIPath$><$MTSecurityImage$>?code=<$MTSecurityCode$>"><br />
   <input id="scode" name="scode" />

然后生成,提示没有这种方法。察看scode的说明(http://www.movalog.com/plugins/wiki/SCode
需要安装GD库和GD Perl库。
安装把,没有选择。。。
cpan
install gb
失败
tar -xzvf gd-2.0.33.tar.gz
cd gd-2.0.33
./configure
make
make install
tar -xzvf GD-2.30.tar.gz
cd GD-2.30
perl Makefile.PL
make
make install
页面重建正常。但验证码无法显示
再看看编译,原来编译gd的时候,发现原来png没有被编译。只能
 
重新编译gd了。。
首先apt-get install libpng-dev
重新执行./configure
make
make install
 
然后重新生成,生成正常。看看页面,验证码的地方打个叉。再看看刚才设置的存放临时文件的位置,的确是有了。不解。
查看图片的地址,有错误提示,原来是没有解析png图片的方法
重新执行编译,看看问题出在什么地方
 

cd gd-2.0.33
./configure

这个地方显示了png support no。。。
原来编译的时候就没有编译png的支持。。。

apt-get install libpng-dev

然后重新执行上面的编译,注意,2个东西都要重新编译,就ok了

 
查看现在的页面,验证码可以正常显示了:)
这里把文中需要的几个软件放上来
 

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).
 
希望真的像她说的那样,,不然。。