2010.9.20 11:36 by e3

MovableTypeで携帯電話用のレイアウトに対応のための手順のメモです。

幸い、ロリポップには、公式に手順の解説ページがあります!

MovableTypeの携帯対応
http://lolipop.jp/manual/blog/blog-mobile/#p-mt-plugin

ほとんど同じ内容になっちゃいそうですが、
自分用のメモとして、まとめてみました。

1.MT4iのダウンロード

ここから、MT4iをダウンロードします。
今回は、MT5を使っているので、その対応版は、2010/9/20現在、”3.1 alpha4”になっています。

MT4i
http://www.hazama.nu/pukiwiki/index.php?MT4i
3.1 alpha4
http://www.hazama.nu/pukiwiki/index.php?MT4i%2F3.1%2Falpha

2.アップロード

アップロードするディレクトリは、MovableType本体を設置した
ところでなくても良いらしい。

今回は「m」というフォルダを作成して、解凍した、
下記ファイルを全て、アップロードします。 属性の設定も忘れずに。

  • mt4i.cgi →パーミッション(属性):700
  • mt4imgr.cgi →パーミッション(属性):700
  • tmpl フォルダ
  • lib フォルダ

次に、MovableType本体側の設定で、下記のように、
mt4i”、”cache”、”tmpl”のフォルダを新規作成します。

/MTOS :MovableType本体(mt.cgiのあるところ)
 └  mt4i
    └ cache
       └ tmpl  

解凍したファイル内にある”plugins”フォルダ内にある”mt4i-purge-cashe.pl”を
MovableType本体の”plugins”フォルダにアップロードします。

/MTOS :MovableType本体(mt.cgiのあるところ)
 └  plugins
    └ mt4i-purge-cashe.pl

3.MT4i Managerにログイン

http://****.com/m/mt4imgr.cgi
(赤文字部分は、自分のサーバのURLを入れます)

201009202328.jpg
  1. ログインするためのパスワードを設定します。
  2. 先ほど、設定したパスワードでログイン。
  3. 設定を編集する。で「ENTER」ボタンを押します。

次で、細かい初期設定をしておきます。

4.ディレクトリパスの設定

MT41 Managerページのメニュー一覧から、

必須設定項目 > MTホームディレクトリ をクリック。

201009202346.jpg

MT_DIR - MTホームディレクトリを入力します。

ロリポップユーザーの場合、

ユーザー専用ページ >アカウント情報 >フルパス

で確認したパスにMovableType本体の置いてるフォルダまでのパスを
追加して入れます。こんな感じになるはずです。

/home/users/0/lolipop.jp-dp00000000/web/MTOS/
(赤文字部分は、各自のサーバ環境にあわせて書き換え必要です。)

最後に「/(スラッシュ)」を入れるのを忘れずに

5.ブログIDの設定

携帯用のサイトのURLは、下記のようになり、複数のブログを運営してる場合は、このURLにアクセスした際に、どのブログを表示するのかを設定しなくてはいけません。

http://h*****.com/m/mt4i.cgi
(赤文字部分は、環境にあわせて書き換えてください。)

ブログIDの確認方法は、MovableTypeのダッシュボードにアクセスした際の
URLから確認できます。

http://*****.com/MTOS/mt.cgi?__mode=dashboard&redirect=1&blog_id=1
(赤文字部分は、環境にあわせて書き換えてください。)

最後の「_id=1 」の数字がブログIDです。

Blog_ID - MovableType上で使用しているBlog固有のIDにブログIDを入力します。

入力が終わったら、「保存」ボタンを押すのも忘れずに

201009202331.jpg

なお、携帯電話で直接、「http://h*****.com/m/mt4i.cgi」へアクセスして、
ブログIDの設定も可能らしいですが、なぜか、うちの環境だと、
下記エラーが出て、できませんでした。

Software error:Wide character in subroutine entry at /usr/lib/perl5/5.8.8/i686-linux-thread-multi/Encode.pm line 166. MTOS5.02

アルファ版なので、バグかもしれません、何か分かり次第、ここで報告しようと思います。

6.携帯用ページへのアクセスURL

これで、あとは、

http://*****.com/m/mt4i.cgi?id=0
(赤文字部分は、環境にあわせて書き換えてください。)

最後の「?id=0」で、数字部分が、ブログIDになります。
見たい、ブログのIDを入力して開けば、携帯用のページで閲覧できるようになります。

+ 1クリックで応援してください +
にほんブログ村 Webデザイン
[ click ]

コメント(83)

My sister bookmarked this internet site for me and I have been going through it for the past couple hrs. This is really going to help out me and my classmates for our class project. By the way, I like the way you write.

Wow in truth a huge post. I like this.I just passed this onto a colleague who was doing a little research on that. And he actually bought me lunch because I found it for him. Overall, Lots of great information and inspiration, both of which we all need!

Hi. I just noticed that your webpage looks like it has a few code errors at the very top of your content’s page. I’m not sure if everybody is getting this same bugginess when browsing your blog? I am employing a totally different browser than most people, referred to as Opera, so that is what might be causing it? I just wanted to make sure you know. Thank you for posting some huge postings and I’ll try to return back with a completely different browser to check things out!

Thank you for the sensible critique. Me & my neighbour were preparing to do some research about that. We got a decent book on that matter from our local library and most books where not as influensive as your information. I am very glad to see such information which I was searching for a long time.This made very glad

Stumbled into this article by chance but I’m sure glad I clicked on that link. You undeniably answered all the questions I have been dying to answer for some time now. Will unquestionably come back for more of this. Thank you so much

I was browsing over the internet for some information since yesterday night and I at last found this! This is a good web site by the way, but it looks a slight difficult to see in my smart phone.

My hubby and I arrived here simply because this specific webpage had been tweeted by a woman I had been following and am pleased I made it here.

I really enjoy this theme you have got going on on your site. What is the name of the template by the way? I was thinking of using this style for the web page I am going to construct for my school project.

Thank you for the fascinating check out, its not a subject I usually give much attention too but this caught my attention.

Nicely done! - I looked at the Wiki on this and it did not have as detailed info - thank you!

I am going to go ahead and save this content for my sister for a study project for school. This is a good-looking website by the way. Where do you obtain the template for this webpage?

Took me time for you to read all of the critiques, but I really enjoyed the content. It proved to be very useful to me and I’m certain to all the commenters here! It’s always great when you are able to not only be informed, but also engaged! I’m certain you had enjoyable writing this write-up.

I think that is an attention-grabbing point, it made me think a bit. Thank you for sparking my thinking cap. Sometimes I get so much in a rut that I just think like a record.

The style that you write make it especially simple to read. And the template you use, wow. This is a really decent combination. And I am wondering what's the name of the template you use?

This is some nice stuff. It took me a while to locate this web page but it was worth the time. I noticed this post was hidden in yahoo and not the first spot. This webpage has a ton of good quality stuff and it doesn't deserve to be burried in the search engines like that. By the way I am going to add this site to my favorites.

This is a attention-grabbing article by the way. I am going to go ahead and save this article for my sister to read later on tonight. Keep up the excellent work.

Approaching from the standpoint of a fellow member within this engineering, I in fact enjoy your write-up. I’ve frequently been in in actuality like with this industry all my life so I have developed a conversation board for marketplace specialists to come together and thrash out all things in this business. You gave me some brilliant thoughts for my own web site.

I really enjoy this theme you have got going on in your site. What is the name of the design by the way? I was thinking of using this style for the site I am going to create for my class project.

You have actually created some excellent points here. I specifically appreciate the way you’ve been able to stick so much thought into a relatively short post (comparitively) which creates it an thoughtful publish on your subject. In my opinion, you’ve presented the topic in a quite thorough yet concise manner, that is genuinely useful when somebody wants to get the facts without spending too a lot time searching the world-wide-web and sifting out the noise to discover the answers to their questions. I usually get so frustrated with so many in the final results inside the major SE’s due to the fact they normally seem to mostly be filled with filler content that often isn’t extremely sensible. If you don’t mind I’m going to add this post and your website to my delicious favorites so I can share it with my family. I appear forward to approaching back to check out your future posts as well.

My bro bookmarked this webpage for me and I have been reading through it for the past several hrs. This is really going to help me and my classmates for our class project. By the way, I enjoy the way you write.

Stumbled across your post while searching through bing. I study the beginning and its huge! I don’t have time for you to finish it now, but I have saved your page and will read the rest later. : )

This is some high-quality stuff. It took me a while to find this web page but it was worth the time. I noticed this page was buried in yahoo and not the number one spot. This web site has a ton of high-quality material and it doesn't deserve to be burried in the searches like that. By the way I'm going to save this site to my list of favorites.

Thank you for the sensible critique. Me & my neighbour were preparing to do some research about that. We got a respectable book on that matter from our local library and most books where not as influensive as your information. I am very glad to see such information which I was searching for a long time.This made very glad

I really enjoy this template you have got going on on your site. What is the name of the theme by the way? I was thinking of using this style for the web site I am going to construct for my school project.

Sometimes seeing another person’s point of light enlighten my very own vision. I’m not going to going to say what everybody else has already stated, however i must say, I cant believe how a lot of this I just wasnt aware of .Thank you for publishing more info to this matter for us.

Just to let you know, this post seems a little bit weird from my smart phone. Who knows maybe it's just my phone. Great post by the way.

I had this content bookmarked a while before but my notebook crashed. I have since gotten a new one and it took me a while to find this! I also really like the template though.

This is a fascinating post by the way. I am going to go ahead and bookmark this article for my sister to check out later on tomorrow. Keep up the good work.

I really enjoy this theme you've got going on in your internet site. What is the name of the theme by the way? I was thinking of using this style for the website I am going to put together for my class room project.

Took me time for you to read all the remarks, but I truly enjoyed the post. It proved to be really helpful to me and I’m sure to all of the commenters right here! It’s usually great when you can not just be informed, but additionally engaged! I’m certain you had enjoyable writing this write-up.

The way you write make it very straightforward to read. And the template you use, wow. It really is a really good combination. And I am wondering what is the name of the template you use?

Very informative post. Thanks for taking the time to share your view with us.

Just to let you know, this content looks a little bit strange from my android phone. Who knows perhaps it's just my cell phone. Great post by the way.

Took me time for you to check out all of the reviews, but I really enjoyed the content. It proved to be very useful to me and I’m certain to all the commenters here! It’s always huge when you are able to not only be informed, but also engaged! I’m certain you had enjoyable writing this write-up.

I had this page bookmarked a while before but my laptop crashed. I have since gotten a new one and it took me a while to find this! I also in fact like the template though.

This is some agreeable material. It took me a while to unearth this website but it was worth the time. I noticed this content was buried in google and not the number one spot. This website has a lot of decent material and it doesn't deserve to be burried in the searches like that. By the way I am going to add this web page to my favorites.

I recently had my websites rebuilt and i am trying to come across new ways to make it better.Your design is quite nice and your posts are well-structured. I though that it would be nice to say that i will use some of your “know-how”.

You ought to seriously think about working on growing this webpage into a serious voice in this market. You obviously have a high-quality knowledge of the areas all of us are searching for on this website anyways and you could potentially even earn a dollar or three from some advertising. I would explore following recent news and raising the volume of weblog posts you make and I bet you’d start earning some huge traffic in the near future. Just an idea, respectable luck in whatever you do!

I really enjoy this theme you have got going on on your site. What is the name of the theme by the way? I was thinking of using this style for the web page I am going to create for my class project.

I really enjoy this theme you've got going on on your internet site. What is the name of the design by the way? I was thinking of using this style for the site I am going to put together for my school project.

This is such a terrific resource that you are providing and you give it away for free. I love seeing web sites that understand the value of providing a quality resource for free. It?s the old what goes around comes around routine. Yours truly.

This is a appealing post by the way. I am going to go ahead and save this article for my brother to read later on tonight. Keep up the high-quality work.

Stumbled into this website by chance but I’m sure glad I clicked on that link. You undeniably answered all the questions I’ve been dying to answer for some time now. Will positively come back for more of this. Thank you so much

This is a attention-grabbing post by the way. I am going to go ahead and bookmark this article for my brother to check out later on tonight. Keep up the good quality work.

I was browsing the internet for some information since yesterday night and I ultimately found this! This is a good web page by the way, except it appears a little bit off place from my i phone.

I was checking on-line for some information since yesterday night and I finally found what i was looking for! This is a excellent internet site by the way, however it is a little hard to navigate from my verison phone.

Just to let you know, this post seems a little bit funny from my android phone. Who knows maybe it is just my mobile phone. Great post by the way.

What a tremendous write-up, I didn’t sense that you may find one thing below. A pleasant shock, it occurs seldom, but the following we can speak of a real bonus value towards reader. What Irritate me about information sites usually amateurish editorial without going through great type and with errors. below I am pleasantly surprised. With a bit of luck make it to some authors, and write for their visitors and not to own anything at all on the internet access!

I am going to go ahead and save this post for my brother for the study project for class. This is a attractive blog by the way. Where do you obtain the theme for this website?

I am going to go ahead and save this content for my sister for the research project for class. This is a pretty internet site by the way. Where did you get a hold the template for this website?