MT 3.33 至MT3.34

升级的好处 我就不多说了,这里介绍一点升级过程中的tips。 比较文件 将程序解压、解包之后放入与上一版本同级的目录,取名mt3.34 ./mt ./mt3.34 上一版本因为额外安装有插件以及个别hack文件,不能完整替换,先比较两个目录,使用-q 参数忽略具体文件差异,-r 递归子目录。 $ diff -qyr mt3.34 mt |grep...

升级的好处 我就不多说了,这里介绍一点升级过程中的tips。

比较文件

将程序解压、解包之后放入与上一版本同级的目录,取名mt3.34

./mt
./mt3.34

上一版本因为额外安装有插件以及个别hack文件,不能完整替换,先比较两个目录,使用-q 参数忽略具体文件差异,-r 递归子目录。

$ diff -qyr mt3.34 mt |grep Only 

Only in mt: mt-config.cgi
Only in mt3.34: mt-config.cgi-original
Only in mt/php/extlib/smarty: .cvsignore
Only in mt/php/plugins: block.MTBlogrollCategories.php
Only in mt/php/plugins: block.MTBlogrollLinkCategories.php
Only in mt/php/plugins: block.MTBlogrollLinkIfTagged.php
Only in mt/php/plugins: block.MTBlogrollLinkIfUpdated.php
Only in mt/php/plugins: block.MTBlogrollLinkTags.php
Only in mt/php/plugins: block.MTBlogrollLinks.php
Only in mt/php/plugins: block.MTBlogrollTags.php
Only in mt/php/plugins: function.MTBlogrollCategoryCount.php
Only in mt/php/plugins: function.MTBlogrollCategoryDesc.php
Only in mt/php/plugins: function.MTBlogrollCategoryDescription.php
Only in mt/php/plugins: function.MTBlogrollCategoryID.php
Only in mt/php/plugins: function.MTBlogrollCategoryLabel.php
Only in mt/php/plugins: function.MTBlogrollLinkBlogAuthor.php
Only in mt/php/plugins: function.MTBlogrollLinkCategory.php
Only in mt/php/plugins: function.MTBlogrollLinkDate.php
Only in mt/php/plugins: function.MTBlogrollLinkDesc.php
Only in mt/php/plugins: function.MTBlogrollLinkDescription.php
Only in mt/php/plugins: function.MTBlogrollLinkID.php
Only in mt/php/plugins: function.MTBlogrollLinkModifiedDate.php
Only in mt/php/plugins: function.MTBlogrollLinkName.php
Only in mt/php/plugins: function.MTBlogrollLinkPriority.php
Only in mt/php/plugins: function.MTBlogrollLinkRel.php
Only in mt/php/plugins: function.MTBlogrollLinkTarget.php
Only in mt/php/plugins: function.MTBlogrollLinkURI.php
Only in mt/php/plugins: function.MTBlogrollLinkURL.php
Only in mt/php/plugins: function.MTBlogrollLinkUpdated.php
Only in mt/php/plugins: function.MTBlogrollTagCount.php
Only in mt/php/plugins: function.MTBlogrollTagID.php
Only in mt/php/plugins: function.MTBlogrollTagName.php
Only in mt/php/plugins: function.MTBlogrollTagRank.php
Only in mt/php/plugins: plugins
Only in mt/plugins: Ajaxify
Only in mt/plugins: Blogroll
Only in mt/plugins: CheckLinks
Only in mt/plugins: Collect
Only in mt/plugins: FlickrPhotos
Only in mt/plugins: TagSupplementals.pl
Only in mt/plugins: mt-archive-dateheader.pl
Only in mt/plugins: mt-varz.pl

合并文件 

然后将上一版本多出或者更新日期更新的文件copy 到新版本,为了保险起见,使用-i 参数确认任何文件覆盖。

$ cp -iur  mt/plugins/* mt3.34/plugins 

 然后手动编辑合并曾经hack 过的文件,在这里我曾经修改了mysql.pm 以及批量编辑basename 所需的相关文件。

$ diff  mt3.34/lib/MT/ObjectDriver/DBI/mysql.pm mt/lib/MT/ObjectDriver/DBI/mysql.pm

1c1
< # Copyright 2001-2007 Six Apart. This code cannot be redistributed without
---
> # Copyright 2001-2006 Six Apart. This code cannot be redistributed without
5c5
< # $Id: mysql.pm 1003 2007-01-05 23:46:47Z gboggs $
---
> # $Id: mysql.pm 653 2006-08-04 19:33:48Z bchoate $
63c63
<             $driver->{dbh}->do("SET NAMES " . $c) or
---
>             $driver->{dbh}->do("SET NAMES " . $c) or
99a100
>     $driver->{dbh}->do("SET NAMES 'utf8'");

 

可以使用vi 同时编辑多个文件,使用:n 与:N 命令进行切换,剪贴板缓冲区是共享的,方便copy 代码行。

$ vi   mt3.34/lib/MT/ObjectDriver/DBI/mysql.pm   mt/lib/MT/ObjectDriver/DBI/mysql.pm

批量编辑basename 一般在大规模迁移时才会用到,这次就不修改了。

cgi-bin 目录的所有升级就完成了,把mt-statics copy 到相应目录,重复以上步骤。

版本切换 

全部完成后,把两组新旧目录名称迅速交换,再打开MT控制台,发现升级已经生效,没遇到任何错误,算是无缝切换。 

upgrade to TinyMCE 2.09

TinyMCE new version 2.09 came. What's the new feature? Let's have a compare with the 2.02....
TinyMCE new version 2.09 came.

What's the new feature?

Let's have a compare with the 2.02.

The interface with full features of 2.02

TinyMCE 2.02 full feature Interface

The interface with full features of 2.09 

TinyMCE 2.09 full feature interface

Lots of changes, include: (I only list the changes which are most important for me. I didn't check the change logs, this info just for reference. )

  • New fullscreen mode, I'm editing on this mode, like it very much!
  • New tags supported
    • cite
    • abbr
    • del
    • ins
    • acronym
  • New development kit, powerful and helpfule!
  • Some tiny changes, such as:
    • nicer formating on HTML source window.
    • won't link the followed text after a link new generated.

Development kit interface

TinyMCE Development kit interface

This kit interface is able to collsape and expand.

Download and Upgrade in MT

Donwload the package file at here. Unpackage it and prepare to upgrade. Here's the steps:

  • Backup the old directory and files.
mt-static\plugins\Ajaxify\tinymce\
\cgi-bin\mt\plugins\Ajaxify\EnhancedEntryEditing.pl (You won't have and don't need to backup this file if you don't use the plugin EnhancedEntryEditing.) 
  • Replace all things in mt-static\plugins\Ajaxify\tinymce\ with the new version.
  • Open \cgi-bin\mt\plugins\Ajaxify\EnhancedEntryEditing.pl to edit. (no need do this if you don't have.)
  • Comment out all old settings from last installation within:
    settings => new MT::PluginSettings([
        ['tinymce_config', { Default => q{
        old setttings here
        }}]
    ]),

 

  • Copy new settings from the source(View->Page Source) of mt-static/plugins/Ajaxify/tinymce/examples/example_full.htm to the place of old settings.

    settings => new MT::PluginSettings([
        ['tinymce_config', { Default => q{
        /* old settings here */
        new setttings here
        }}]
    ]),
  • Make some neccesory changes on the new settings.
mode : "textareas",
mode : "exact"
elements : "text,text_more",
content_css : "example_full.css",
content_css : "/css/extend.css",

  • Save changes, then logon MT management to new an entry(might need a refresh here, F5), the new interface will take effect.
  • Done!

Here's the new interface in MT, a little fat for MT got overflow, but not a big problem. Enjoy it!

TinyMCE 2.09 interface in MT

The full code section in \cgi-bin\mt\plugins\Ajaxify\EnhancedEntryEditing.pl

settings => new MT::PluginSettings([
['tinymce_config', { Default => q{
/** This section was used by TinyMCE v2.01
mode : "exact",
elements : "text,text_more,excerpt",
theme : "advanced",
plugins : "iespell, emotions, inlinepopups",
theme_advanced_blockformats : "p,h1,h2,h3,h4,h5,h6",
theme_advanced_buttons1 : "formatselect,bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,undo,redo,separator,link,unlink,separator,image,emotions,iespell,help",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],span[class|align|style]",
force_p_newlines : true,
relative_urls : false,
remove_script_host : false,
button_tile_map : true,
ask : false,
auto_cleanup_word : true,
theme_advanced_path_location : "bottom",
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
safari_warning: false,
oninit: "quicktagsHide"
**/
/** This section was used by TinyMCE v2.02
//mode : "textareas",
mode : "exact",
elements : "text,text_more",
//editor_selector : "mceEditor",
theme : "advanced",
//plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu",
plugins : "table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu",
//theme_advanced_buttons1_add_before : "save,separator",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
external_link_list_url : "example_data/example_link_list.js",
external_image_list_url : "example_data/example_image_list.js",
flash_external_list_url : "example_data/example_flash_list.js",
content_css : "/css/extend.css",
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
oninit: "quicktagsHide"
**/
/** This section was used by Tiny MCE v2.09 **/
//mode : "textareas",
mode : "exact",
elements : "text,text_more",
theme : "advanced",
plugins : "devkit,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras",
theme_advanced_buttons1_add_before : "save,newdocument,separator",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,separator,forecolor,backcolor,advsearchreplace",
theme_advanced_buttons2_add_before: "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "emotions,iespell,media,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,|,visualchars,nonbreaking",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
content_css : "/css/extend.css",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
external_link_list_url : "example_link_list.js",
external_image_list_url : "example_image_list.js",
flash_external_list_url : "example_flash_list.js",
media_external_list_url : "example_media_list.js",
file_browser_callback : "fileBrowserCallBack",
theme_advanced_resize_horizontal : false,
theme_advanced_resizing : true,
nonbreaking_force_tab : true,
apply_source_formatting : true
}}]
]), 

 

Refine and add new features to my web site

This site disappeared on Internet from the early of this year because of the server...

This site disappeared on Internet from the early of this year because of the server problem. Since then it's running on my thinkpad locally for 1 year. Now it's more like my personal blog. I have to have some refine work on my blog since I decided to publish it again. Also I added some new features.

Here's a work log.

upgrade MT to version 3.3 

changed to plugined tinymce


changed title appearance

There are 3 level Titles.

  1. site title
  2. category and monthly title
  3. entry title

Each pages have this title structure for search engine friendly, but only display the related title. Others are hided.

In the 2nd level pages, the site title is hided. Also in the 3rd level pages, both 1st level and 2nd level titles are hided.

Using style:

.subindex-container .index-logo,
.individual-container .index-logo,
.individual-container .subindex-logo {
display: none;
}

gave tags to each entry

Give one or more meaningful tags to each entry. The old keywords field is abandoned. 

neater monthly archive list

added keywords.js

I used keyword.js to hilight keywords which visitor used in search engine for linking in this page in my old site. I did some simple configure and add it into my blog.

I had following settings. 

// Configuration:
Keyword = {
hilite: true,
index: false,
refill1: true,
refill2: false,
element1: 'search',
element2: 'w', 
style_name: 'hilite',
style_name_suffix: true,
debug_referrer: '',
debug_meta: ''
};

added edit link to individual archive

Simply to add an edit link to individual entry view, that makes editing entries quicker without going to MT management first.

Add following code to individual template:

<a href="<$MTCGIPath$>mt.cgi?__mode=view&_type=entry&id=<$MTEntryID$>&blog_id=<$MTBlogID$>" title="edit this entry, only for admin">Edit</a> 

changed download files location 

I organized all download files by date instead of by categories. That reduces the length of the file list in a same directory.

Current directory structure rule is /ref/year/month/files, exam:

/ref/2006/12/simple.zip

fixed new line problem for entries 

recheck the broken links

I have been using Xenu to check broken site links. It's still a good solution up to now. Recently, I got another solution that could play part of role of Xenu, CheckLinks. It's a plugin for MT that only check the links they are within entries. The reason I picked it up is that It's easier to have the edit link in the bad links report by CheckLinks. Here's a report from my site.  For having this feature, I use below Template. This template is used for checking all entries(maximum 9999 here) in your blog and printing only the entries with bad links. But rebuilding this template is as slow as when you check through your blog links with other tool. So better to uncheck the "Rebuild this template automatically when rebuilding index templates" at template setting if you are using it in Indexes Template. 

<MTEntries lastn="9999">
<MTCheckLinks include_local="1">
<MTCheckLinksHere>
<$MTEntryBody$>
<$MTEntryExtended$>
</MTCheckLinksHere>
<MTIfBadLinks>
<dl class="badlinks">
<dt><a href="<$MTEntryLink$>"><$MTEntryTitle$></a> (<a href="<$MTCGIPath$>mt.cgi?__mode=view&_type=entry&id=<$MTEntryID$>&blog_id=<$MTBlogID$>" title="in <$MTCatetoryTitle$>">edit</a>) Have bad links:</dt>
<MTBadLinks load_entries="1">
<dd><$MTBadLinkStatus trim_to="3"$>: <$MTBadLinkURL$> [<a href="<$MTBadLinkURL$>"><$MTBadLinkText$></a>]</dd>
</MTBadLinks>
</dl>
</MTIfBadLinks>
</MTCheckLinks>
</MTEntries> 

A note: If you are refering any Entries Tag like "MTEntryTitle" within CheckLinks Tag <MTBadLinks>, you must specify load_entries="1" otherwise there's error raising during rebuilding this template.

 

set up category rss feeds and links

managed external links by blogroll

I downloaded a new plugin Blogroll for managing my links. 

Use Blogroll I could manage and group my links, and publish them in template.

Using following code in template: 

<MTBlogrollCategories>   
<h3><$MTBlogrollCategoryLabel$></h3> 
<ul><MTBlogrollLinks> 
<li><a href="<$MTBlogrollLinkURI$>" title="<MTBlogrollLinkDesc>"<MTIfNonEmpty tag="BlogrollLinkRel"> rel="<MTBlogrollLinkRel>"</MTIfNonEmpty> <MTIfNonEmpty tag="BlogrollLinkTarget">target="<MTBlogrollLinkTarget>"</MTIfNonEmpty>><$MTBlogrollLinkName$></a></li> 
</MTBlogrollLinks></ul> 
</MTBlogrollCategories> 

related tags on tag search 

I downloaded a new plugin TagSupplymentals that brings much features on tags. I use MTRelatedEntries and MTRelatedTags.

Using following code in template:

<ul>
<h3>Related Entries</h3>
<MTRelatedEntries lastn="5">
<li><$MTInclude module="Entry Link"$></li>
</MTRelatedEntries>
</ul> 
 
<ul>
<h3>Related Tags</h3>
<MTEntryTags>
<MTRelatedTags>
<li><a xhref="<$MTTagSearchLink$>"><$MTTagName$></a> (<$MTTagCount$>)</li>
</MTRelatedTags>
</MTEntryTags>
</ul>

 

related entries by tags

See above. 

more clear search result

On the search result list, as default only show the entry title and entry summary. So the searcher could have an overview on all search result. If he wants more info about the entry there's a link to expand the entry area to show entry body.

Template:

<MTEntriesHeader>
<!--start #top-alpha-->
<div id="top-alpha">
<label id="hidebodybar" class="hidbodybar"></label>
<!--end #top-alpha-->
</div>
</MTEntriesHeader>
<!--start #entry~-->
<div class="entry" id="entry<$MTEntryID pad="1"$>">
<a name="a<$MTEntryID pad="1"$>" />

<!--start #top-entry~-->
<div class="top-entry" id="top-entry<$MTEntryID pad="1"$>">
<label class="hidebodybar" id="hidebodybar<$MTEntryID pad="1"$>"></label>
<!--end #top-entry~-->
</div>
<h3 class="entryheader" id="a<$MTEntryID pad="1"$>"><a href="<$MTEntryPermalink$>"><$MTEntryTitle$></a></h3>
<!--start #entryinfo~-->
<div class="entryinfo" id="entryinfo<$MTEntryID pad="1"$>">
<MTIfOne name="Category Archive">
<p class="subtitle"><$MTEntryDate format="%x"$></p>
<MTElse>
<p class="subtitle">In <a href="<$MTEntryLink archive_type="Category"$>"><$MTEntryCategory$></a>, <$MTEntryDate format="%x"$></p>
</MTElse>
</MTIfOne>
<!--end #entryinfo~-->
</div>
<!--start #entrysummary~-->
<div class="entrysummary" id="entrysummary<$MTEntryID pad="1"$>">
<$MTEntryBody convert_breaks="0" words="16"$>...
<!--end #entrysummary~-->
</div>
<!--start #entrybody~-->
<div class="entrybody" id="entrybody<$MTEntryID pad="1"$>">
<$MTEntryBody convert_breaks="0"$>
<MTEntryIfExtended><p>继续阅读 "<a href="<$MTEntryPermalink$>#more"><$MTEntryTitle$></a>" 的剩余内容</p></MTEntryIfExtended>
<!--end #entrybody~-->
</div>
<!--start #entryfooter~-->
<div class="entryfooter" id="entryfooter<$MTEntryID pad="1"$>">
<MTEntryIfTagged><p>标签 Tags: 其它与<MTEntryTags glue=", "><a href="<$MTTagSearchLink$>"><$MTTagName$></a> (<$MTTagCount$>)</MTEntryTags> 相关的话题</p></MTEntryIfTagged>
<p class="posted">
Posted by <$MTEntryAuthorUsername$> at <$MTEntryDate format="%X"$>
<MTEntryIfAllowComments> | <a href="<$MTEntryPermalink archive_type="Individual"$>#comments">Comments (<$MTEntryCommentCount$>)</a></MTEntryIfAllowComments>
<MTEntryIfAllowPings> | <a href="<$MTEntryPermalink archive_type="Individual"$>#trackbacks">TrackBack (<$MTEntryTrackbackCount$>)</a></MTEntryIfAllowPings>
| <a href="<$MTCGIPath$>mt.cgi?__mode=view&_type=entry&id=<$MTEntryID$>&blog_id=<$MTBlogID$>" title="edit this entry, only for admin">Edit</a>
</p>
<!--end #entryfooter~-->
</div>
<!--end #entry-->
</div>

Javascript: hide-body.js

flexible style sheet

I had this new bar on the top of page.

text bar for changing style

It makes possible to switch different style sheet on current page by one click.

For doing this, needs switch-css.js, and the defination in the head.

<link rel="stylesheet" type="text/css" href="<$MTBlogURL$>css/screen.css" media="screen" title="BlockStyle" />
<link rel="alternate stylesheet" type="text/css" href="<$MTBlogURL$>css/screen-clearstyle.css" media="screen" title="ClearStyle" />
<script type="text/javascript" language="javascript" src="<$MTBlogURL$>switch-css.js"></script>
And the label tag with ID definition in the page. The css links would be generated by the .js above dynamically.
<label id="switchcssbar"></label>

The code refer to:

tested none-css appearance 

To see what my blog is like without style sheet, click below link. If you want to change it back, choose the block Style links on the top of any page. I'm ready to change this site as None Style

tested printable view

To see how it works, select "File - Print Preview" in your Internet Browser.

The format is defined in print.css .

made the old site work

Made some neccesary changes on my old site for showing it in sub folder well.

change to mysql database

power editing basename 

I think this would be helpful, lots of people want to have this feature. 

add style to preformatted tag <pre>

I used <pre> tag for several cases:

  • programming code (exam: javascripts)
  • command (exam: unix shell commands)
  • output (exam: screen output of a command)
  • refererence (exam: a short paragraph from other blog)

But they do have different requirements for showing up. So I add several class styles for the tag.

  • .code
  • .cmd
  • .output
  • .refer (with word wrap)

For the .refer class style, I referred to pre标签自动换行方案.

Update: Read an article What are semantics?, learned that I should use <blockquote> tag to wrap the resource that I refer to. So I need to use <blockquote> tag instead of class style .refer.

upgrade to TinyMCE 2.09

Refined Page structure

Refinced CSS

I split my css file as multi-level and use import keyword to link them up. I have following structure. The base.css and extend.css is used by each style sheet. The difference is that the extend.css is also refered by TinyMCE in MT. About TinyMCE please read this article .

base.css      extend.css
          \      /
           \    /
         screen.css
         screen-linestyle.css
         screen-clearstyle.css

I reset padding and margin as 0 in my base.css that makes crossing browsers development easier. Here's a style list about Firefox 1.5 default style sheet for HTML elements for reference.

I tried to have more comfortable color for pages. Here are some links would be helpful on this. The safe 216 web colors, a list of online colour tool.

 

Disable listing directory


Create a file ".htaccess" at the root path of web site and have following line:

Options All -Indexes 

Rewrite url for old site


Add below lines to /.htaccess.

RewriteEngine On
RewriteRule ^archives/([0-9]+/[0-9]+) $1
RewriteRule ^archives/(jeet_kune_do|outdoors) $1
RewriteRule ^archives/study_notes/(web|linux) $1
RewriteRule ^hobbies/(outdoors) $1
RewriteRule ^hobbies/ham/ amateur_radio
RewriteRule ^hobbies/sbenefit/ society_benefit
RewriteRule ^notes/*(db2|linux)* $1
RewriteRule ^notes/[a-z0-9\_\-]+.htm$ db2
RewriteRule ^archives/study_notes/[a-z0-9\_\-]+.html$ db2 
A little help on expression I used. 
  • ^ is maching the begin of aline.
  • $ is mathing the end of a line. 
  • $n is a reference for the expression within (), also could have $1, $2..., as I know, $0 should be the entire of $n.
  • | is the OR relationship.
  • + match at least one time.
Had this article  for reference. 

MT Upgrade from 3.2 to 3.33

Download MT 3.33 from MovableType.I didn't find the special version for upgrade,  however get it back...

Download MT 3.33 from MovableType.

I didn't find the special version for upgrade,  however get it back and unzip.

Out of my expectation, there's no any document about this release, like Readme.txt or so. Anyway I've experienced 2 times upgrade with past version.

Rename old cgi-bin directory as old, then upzip new as the original name. Make a compare by Beyond Compare, Rename mt-config.cgi-original to mt-config.cgi, and merge the old settings into it. The new configuration file remove most optional settings, only keep the required settings.

Modify the first line of all .cgi files from:

#!/usr/bin/perl -w

to

#!d:/green/perl/bin/perl -w

Rename old mt-static as mt-static_old, and move the new one to the path.

Open Firefox, address to http://blog.alex.com/cgi-bin/mt/mt.cgi, upgrade prompted automatically, Confirm to upgrade.

    * Upgrading database from version 3.2001.
    * Upgrading table for MT::Log
    * Upgrading table for MT::Category
    * Creating new template: 'Search Results Template'.
    * Assigning basename for categories... (100%)
    * Migrating any "tag" categories to new tags... (100%)
    * Setting new entry defaults for weblogs... (100%)
    * Updating user permissions for editing tags... (100%)
    * Database has been upgraded to version 3.3.

The new version works now.

Remain some work, need to restore the HTML Editor and some plugins from old version.

2006-11-20  Update

There're 3 plugins I used before update.

  • Collect
  • RelatedEntries
  • TinyMCE

Collect and RelatedEntries are easy to restore. TinyMce was intergreted via modifying tmpl files by myself more complex than a true plugin. I found there's new plugin comes,  EnhancedEntryEditing v1.11. TinyMCE v2.01 is wrapped in it. It' easy to install as well as normal plugins. See the online manual .

EnhancedEntryEditing provides less features as default setting than TinyMCE. I made change to support more features.

  1. Replace the content of below directory with the TinyMCE 2.02 to let it have the newest features.
    • EnhancedEntryEditing_1.11\EnhancedEntryEditing\mt-static\plugins\Ajaxify\tinymce
  2. Modify the plugin setting.

This step is more complex because of the version conflict. What I did is:

  • Comment out all settings from the EnhancedEntryEditing plugin(with TinyMCE 2.01)
  • Copy all settings from my old TinyMCE 2.02 as the current settings.
  • Merge the special settings in EnhancedEntryEditing to the current.
This is the last what I got.
ore,excerpt",
//theme : "advanced",
//plugins : "iespell, emotions, inlinepopups",
//theme_advanced_blockformats : "p,h1,h2,h3,h4,h5,h6",
//theme_advanced_buttons1 : "formatselect,bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,undo,redo,separator,link,unlink,separator,image,emotions,iespell,help",
//theme_advanced_buttons2 : "",
//theme_advanced_buttons3 : "",
//theme_advanced_toolbar_location : "top",
//theme_advanced_toolbar_align : "left",
//extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],span[class|align|style]",
//force_p_newlines : true,
//relative_urls : false,
//remove_script_host : false,
//button_tile_map : true,
//ask : false,
//auto_cleanup_word : true,
//theme_advanced_path_location : "bottom",
//theme_advanced_resizing : true,
//theme_advanced_resize_horizontal : false,
//safari_warning: false,
//oninit: "quicktagsHide"

//mode : "textareas",
mode : "exact",
elements : "text,text_more",
//editor_selector : "mceEditor",
theme : "advanced",
//plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu",
plugins : "table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu",
//theme_advanced_buttons1_add_before : "save,separator",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
theme_advanced_buttons3_add_before : "tablecontrols,separator",
theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
external_link_list_url : "example_data/example_link_list.js",
external_image_list_url : "example_data/example_image_list.js",
flash_external_list_url : "example_data/example_flash_list.js",
content_css : "/css/screen.css",
force_p_newlines : true,
relative_urls : false,
remove_script_host : false,
button_tile_map : true,
ask : false,
auto_cleanup_word : true,
theme_advanced_resizing : true,
theme_advanced_resize_horizontal : false,
safari_warning: false,
oninit: "quicktagsHide"

FlickrPhotos Version 0.84

Added a new plugin to MT.

Flickr photos is a plugin that enables you to display thumbnail links of Flickr photos in your Movable Type blog. Flickr Photos focuses on displaying lists of photos, in many possible ways.

mail.png


标签订阅|Tag Subscription

If you use an RSS reader, you can subscribe to a feed of all future entries tagged 'upgrade'. [What is this?]

Subscribe to feed Subscribe to feed

最近更新|Recent Entries

不定期更新|Handy Entries

其它标签|Other Tags

分类栏目|Categories

按月归档|By Month

2008
11
10
07
05
04
03
02
01
2007
12
10
07
06
05
04
03
02
01
2006
12
11
10
09
08
07
06
05
04
03
02
01
2005
11
10
09
08
07
04
03
2004
12
11
10
09
08
07
06
05
04
03
02
01
2003
12
10
09
08
06
2002
09
08
04
03
02
2001
12
09
07
06
05

站内链接|Site Links

Powered by
Movable Type 3.34