Recently in Notes of MovableType Category
It is a Movable Type Security Update.
Today we are releasing Movable Type 4.01b and Movable Type 4.12. These are free mandatory security updates for all Movable Type 4.x users.via
Action now, upgrade your MT installation. It is a Security update.
I have some MT 4.1 installation on Dreamhost. I update them just two minutes ago.
It is simply and easy to update.
1) SSH to server.
2) wget http://www.movabletype.com/download/personal/MTP-4.12-en.tar.gz
3) tar -xvzf MTP-4.12-en.tar.gz
4) cp -r -f . ~/sitedir/mtcgi/
5) login MovableTyep and done.
Just got the news about MT 4.2 rc release.
It looks like a small upgrade for new features.
Let us have a close look about it.
- A faster and more efficient user experience
- More design options and our simplest and most powerful templates yet
- The best, most effective anti-spam solution
In the first feature, the most important is described as below:
Completely Rewritten Search - Movable Type's venerable built-in search system has been rewritten from the ground up to be modernized, much more flexible, and lightning-fast. Now it's easy to create custom-filtered views of your content.
MT-search is heavy CPU load script on my host.
If the new search can solve it, I would like to keep use it instead of Google Search.
It announced that Common tasks in Movable Type 4.2 are up to 100 times faster.
Do you believe it?
syntaxhighlighter is a Google code project.
It is easy to use and looks perfect.
The following are some examples.
1) PHP script
//
// Pull the array data from the lang pack
//
$j = 0;
$counter = 0;
$counter_2 = 0;
$faq_block = array();
$faq_block_titles = array();
for($i = 0; $i < count($faq); $i++)
{
if( $faq[$i][0] != '--' )
{
$faq_block[$j][$counter]['id'] = $counter_2;
$faq_block[$j][$counter]['question'] = $faq[$i][0];
$faq_block[$j][$counter]['answer'] = $faq[$i][1];
$counter++;
$counter_2++;
}
else
{
$j = ( $counter != 0 ) ? $j + 1 : 0;
$faq_block_titles[$j] = $faq[$i][1];
$counter = 0;
}
}
2) CSS script
.tag1{
font-size: xx-large;
color: #6588c7;
}
.tag2{
font-size: x-large;
color: #5578a7;
}
.tag3{
font-size: large;
color: #4568a7;
}
This code project covers C++ C# CSS Delphi Java Java Script PHP python Ruby Sql VB XML/HTML.Let's discuss how to use it in MovableType.
I changed the theme of this Blog.
The purpose is to make it display faster and looks clear.
I removed some gadgets on the side column. Change the color to emphasize the good stuffs I recommend.
I also add a Google search to replace the search provided by Movable Type.
I received email from my Hosting provider, Dreamhost. It said my load is over the limit.
mt-search.cgi has one of the biggest problems.
Spammer is so strong. I have to stop using mt-search.
Anyway, Google Search is good. I do like it and it is my first choice in Search Engines.
You may like it or not. If you have any comments for this theme change, just leave it below.
This blog has some error last week. Some pages were not build correctly.
I diagnosed it and found the template was broken. A bunch of codes were missing.
I want to find the backup of MySQL database.
Go to Dreamhost Web Panel > Goodies > Manage MySQL
Next to the database name, there are four links. One of them is Restore DB.

Click Restore DB, and go the following page.
![]()
reCAPTCHA is better than MT native captcha image. reCAPTCHA is not only the a program that can tell whether its user is a human or a computer, but also let users help to recognize the scanned document. More details about the theory of reCAPTCHA.
MovableType 4.1 has an native CAPTCHA tool. It also has an extra plugin of reCAPTCHA.
Let me show you how to install and enable it.
1) Register an account at reCAPTCHA.
2) Add domain, all sub-domain will works under it.
3) Get public key and private key.
4) Copy the reCaptcha folder from /your MT folder/extras/examples/plugins/ to /your MT folder/plugins/ directory
5) Choose reCaptcha as the blog's captcha provider
Blog name > preferences > blog settings > comment
6) Save public key and private key into settings.
Blog name > preferences > plugins
7) Edit Comment Form template, so it renders MTCaptchaFields unconditionally. In practice, this means replacing these lines
<MTIfNonEmpty tag="MTCaptchaFields">
<MTIfCommentsAccepted><MTIfRegistrationAllowed><MTElse><$MTCaptchaFields$></MTIfRegistrationAllowed></MTIfCommentsAccepted>
<div id="comments-open-captcha">
</div>
</MTIfNonEmpty>
to these lines:
<MTIfNonEmpty tag="MTCaptchaFields">
<div id="comments-open-captcha">
<$MTCaptchaFields$>
</div>
</MTIfNonEmpty>
8) Edit Javascipt index template, to remove these lines of code which calls delayShowCaptcha:
<MTIfNonEmpty tag="MTCaptchaFields">
captcha_timer = setInterval('delayShowCaptcha()', 1000);
</MTIfNonEmpty>
9) Rebuild index and individual entry archive and page archive.
Six Apart own the one of the most popular Blog software, Movable Type.
The latest version is 4.1, which released on Jan 24, 2008
Now MovableType has three distributions under different license.
1) MTOS (Movable Type Open Source) is a distribution of MT available under the GPL (v2).
It is Open Source license. Free to download, use, and modify. The restriction is keep Open Source, if you want to re-distribute it.
2) Movable Type for Personal Use is a distribution of Movable Type that is 100% identical to MTOS from a code perspective, however it is only available under a proprietary (closed source) license.
This is a free version for personal use. I also use this distribution.
3) Movable Type for Commercial Use is a distribution of Movable Type that includes the commercially-licensed equivalent of the core open source product and includes the Movable Type Professional Pack that contains features exclusive to our paid customers.
The advantage is the Professional Pack. The features are not included into the MTOS and personal license.
I have tested the upgrade on the MT unofficial blog. It is smooth.
Now I recorded the detailed upgrade procedures of David Yin's Blog.
Backup
1) Login the MovableType system, Backup all blogs of this system, by tab system > tools > backup
2) Use Export feature of the system, by tab system > tools > export
Export every individual blog.
3) SSH to the Dreamhost.
Use tar command to backup all related files.
tar czvf backup.tar.gz ~/yinfor.com/
4) Go to control panel of Dreamhost, Goodies > Manage MySQL > phpMyAdmin
Export the whole database.
Now I have the full backups on different levels. I am safe even the following upgrade fails.
Upgrade
1) SSH to Dreamhost
cd ~/temp/
wget http://www.movabletype.com/download/personal/MTP-4.1-en.tar.gz
2) Decompress the package
tar xvzf MTP-4.1-en.tar.gz
3) Copy the decompressed files into the mt cgi folder. I use mtcgi as the system folder.
cd ~/temp/MTP-4.1-en/
cp -r -f . ~/yinfor.com/mtcgi/
4) Now launch Firefox.
Enter http://www.yinfor.com/mtcgi/

Click "Begin Upgrade" to continue.
Just found that Movable Type 4.1 and Movable Type Open Source 4.1 are released.
Download:
Movable Type OpenSource 4.1
Movable Type 4.1 personal
New features:
- A smarter posting screen
- New asset editing system
- Author Avatars
- Shared global templates
- Performance enhancement
I will upgrade my MovableType unofficial blog first to see its new stuff.
Sixapart released MovableType 4.1 RC1 yesterday. I updated my test bed at MovableType Beta Unofficial Blog.
The important changes are listed below
- a clean upgrade path for user's of the Custom Fields plugin wishing to move to Movable Type 4.1
- a fix that addresses a vulnerability posted about previously
- userpics are now embedded by default in Movable Type's default templates
- a change to Movable Type search results template has sped up search results considerably
It looks not big change between Beta2 and RC1. The database is also updated when I upgrade my testing bed.
There is one more Release Candidate. The final MovableType 4.1 will release soon.
Sixapart released Movable Type 4.01a today. It is a Security Update.
No matter MT 3.2, MT 3.3x or MT4.01, upgrade is required.
For MT4.01, just download the gz package and decompress it. Overwrite the MovableType 4.01 installation is OK.
No database upgrade this time.
It said, "Security Release. The potential vulnerability has not yet been exploited in the wild.This is a mandatory update for all users of Movable Type."
So I did it as it said.
I used five steps to upgrade it.
1) Fully Backup
Backup database through PhpMySQL, Tar and compress all files into one file, and export all entries by build-in function.
2) Get package
SSH to Server, wget the file.
3) Decompress package
tar xvzf MT-4.01a-eb.tar.gz
4) Copy and overwrite the installation
5) Login the system and click upgrade if asked.
The SSH is provided by Dreamhost.
Movabletype 4.01 has the internal upload facility, which can upload images to the assets manager.
My blog is always runing well on my Windows 2003, until I moved it to the Linux server.
The photo is not displayed on the sidebar. Only the file name is shown there.
After researching over 2 hours, I found the problem is the path.
Windows uses "\" as the path symbol. Linux uses "/" as the path symbol.
The path saved in the database is something like, "\images\photo-1.jpg"
It can not be displayed correctly in Linux server. Movabletype has not have the tool to change the path. I have to use PhpMyAdmin to change the path manually. It is saved in mt_asset table. Change the asset_file_path and asset_url to match Linux rule.
Then the photo widget shown properly and the page of manage assets can display image asset and preview popup can shown the correct image.
It is not the end. I have to check all my blog use the thumb image, which has some URL use the old Windows path. Manually change them again.
After these changes, all images use the MT4.01's inclusive asset manager can be displayed perfectly.
Please be reminded thant when you move your MT blog from Windows to Linux. And also I think if the MT blog moves from Linux to Windows has same problems.





