Lifeblogging to Movable Type (Updated)
Posted by Martin on Mar 8, 2005 in LifeblogAs a user of Movable Type I always found it frustrating that Nokia's Lifeblog posted to Typepad but not Movable Type.
I now have a modified AtomServer.pm script that lets me do this. I'm happy for people to download and use this (at their own risk). To install:- Download this file and replace the standard Moveable Type version found in lib/MT.
- Create a directory lifeblog with the normal 755 permissions in the root directory of your blog.
- Add the following entries (to be customised as you wish) to your style sheet template and rebuild it.
.lifeblogsms { font-family:'Monaco',courier,monospace; font-size:small; color:#000; background-color: AliceBlue; border:#EEE 1px solid; padding:0 5px 0 5px; width:50% } .lifeblognote { font-family:'Verdana', arial,sans-serif; font-size:small; background-color:LightYellow; border:#EEE 1px solid; padding:0 5px 0 5px; width:50% } .lifeblogimage { border:#000 2px solid; width:480px; padding:5px 5px 5px 5px; } .lifeblogimage img{ width:100% } .lifeblogvideo{ } - Configure the Lifeblog client with your username and Atom Authentication Token (not password). This can be found on your Author Details page. The server address to use is http://yourwebaddress/cgi-bin/mt-atom.cgi/weblog/
- Post an entry from your phone. I'd recommend enabling the Lifeblog Optimise images setting.
Note: If you use any other Atom client that needs to authenticate itself, it may no longer work due to changes I had to make to allow the Lifeblog client to do so. If you need this other client DO NOT use this version of the script.
Updated: 08-Mar-05I have fixed a problem with the script that prevent the correct display of uploaded 3gp video. The video clip has its own Stylesheet entry too.

Comments
Hmm, I can't get it to work. Lifeblog keeps giving me the unhelpful 'there was a problem registering your account' message...
Posted by: Frankie Roberto | March 8, 2005 06:13 PM
The client error reporting is worse than useless. Things to check
1. You are using Lifeblog 1.5 & MT 3
2. The AtomServer.pm file has the correct permissions (700)
3. The Lifeblog client server address ends with /weblog/
4. The client username is the correct username and the password is set to the Atom Authentication Token (making sure the case is correct)
5. Check the Apache error log
Does it fail before or after it retrieves the blog list?
I have discovered an error in posting Videos that I hope to fix later this week.
Posted by: Martin
|
March 8, 2005 06:32 PM
I've done all that you said, it retrieved the list of blogs fine... but when trying to post it gives me an error on the phone "Posting failed, please try again."
I have checked my Apache logs and this is what I found.
quack.planetquack.net: [12/Mar/2005:11:57:05 +0000] 212.183.128.185 - - "POST /cgi-bin/mt-atom.cgi/weblog/blog_id=1 HTTP/1.0" - 666 "-" "-"
[Sat Mar 12 11:57:05 2005] [error] [client 212.183.128.185] malformed header from script. Bad header=image: [snipped]/cgi-bin/mt-atom.cgi
Posted by: quack
|
March 12, 2005 12:16 PM
Sorry, I forgot to encode part of the error.
It should say "Bad header=<title>image</title>:"
Posted by: quack
|
March 12, 2005 12:19 PM
Ok, you're really going to hate me... but I tried posting the same message again... and it worked that time.
I guess it's not a permanent error then.
Posted by: quack
|
March 12, 2005 12:29 PM
Don't you just hate when that happens. Let me know if it comes back.
One other thing to look for it it does: Is the file in the lifblog directory.
Posted by: Martin
|
March 12, 2005 01:58 PM
man, you make it look easy. and I like how you format your stuff. have you managed to do a multi-part post? what phone do you have?
tchau,
charlie
ps what's with the authentication that seems to trip everyone up? is it not 'standard' Atom?
pps also, it's nice to see everyone beating on it (in more ways than one). i hope all the folks involved in the process from our side (both the lifeblog team and six apart) are paying attention and can make any necessary tweaks to the posting method.
ppps what do you think of the video posting?
Posted by: charlie
|
March 23, 2005 04:59 PM
I've not tried a multi-part post. I don't see a reason it shouldn't work excepting nothing else did first time.
I'm using a Nokia 6670 (the 7610 with a boring keyboard and no games). I have no idea why Nokia thought that business customer don't want games on their phones.
I'm not happy with video posting. I don't like embedding the video in the page to be loaded on every page impression. I think that Typepad post processes the video to create a still and displays that, only displaying the video on request. This is clearly the right thing to do but I stalled when I got to looking at ffmpeg. If that happened on the phone then it would be much better. It's too much effort to configure and install it on a hosted server.
Posted by: Martin
|
March 23, 2005 05:33 PM
I'm glad to be able to post with Lifeblog and MT. Thank you!
I have a question. I made 2 blogs in one MT. There is one AtomServer.pm in my main blog and photoes are posted to the main one. Is it possible to post photoes to another blog in another directory ? There is no AtomServer in the directory.
(Sorry for my poor English.)
Posted by: foliage
|
April 6, 2005 02:14 PM
When there is more than one blog being served from one installation Lifeblog should give you a choice of blogs to post to.
Martin
Posted by: Martin | April 14, 2005 03:44 PM
Oh, just I didn't understand how to change a blog to post to. Now I can make a choice. Thank you!
Posted by: foliage
|
April 15, 2005 10:49 AM
Does this work with the new version (1.60.6.0) ? AtomServer.pm tells me 'X-WSSE PasswordDigest is incorrect'
Posted by: richmartin
|
April 15, 2005 04:45 PM
Is that the version for the 6630? I don't have one of those phones at the moment. Are you absolutely sure that you entered that Atom authentication token correctly?
Posted by: Martin
|
April 18, 2005 10:16 AM
I don't have a phone to test with yet. I have downloaded LifeBlog for PC v1.60.6.0 from Nokia's website. I DID manage to get authentication to succeed by uncommenting line 177 of your AtomServer.pm (Nonce needed to be base64_decoded prior to PasswordDigest creation). But the posting of entries is not working properly.
Posted by: richmartin
|
April 18, 2005 05:09 PM
The changes I made were to enable direct posting from the phone. You might want to take a look a Lifeblogger - http://www.thauvin.net/erik/lifeblogger for posting to MT from a PC.
Posted by: Martin
|
April 18, 2005 08:31 PM
Hi,
What a great sample for me ! I ended porting the bit of your code to java that does the parsing of the W3CDTF and it seems to me that the line:
return unless $ts =~ /^(\d{4})(?:-?(\d{2})(?:-?(\d\d?)(?:T(\d{2}):(\d{2}):(\d{2})(?:\.\d+)?(?:(Z)|([+-]\d{2}:\d{2}))?)?)?)?/;
should include parentheses around the 'Z' as I did here because if not you will never get a group matching on that 'Z' and the test that comes up immediately after:
if ($zone && $zone ne 'Z') {
is misleading becase $zone will never be equal to 'Z'. But I think it works because you test $zone before, you could probably just remove the $zone ne Z' part right ? Or am I missing something here ?
Posted by: Luis Arias | April 19, 2005 03:27 PM
That part of the code is a straight lift from the original MT source. I wouldn't be suprised if there was a bug since posting quite often failed when I included the time check code which is why I don't call it. I may try your suggstion and see if it is more reliable.
Posted by: Martin
|
April 19, 2005 05:27 PM
thanks for putting this together martin! i was excited to see an MT implementation for lifeblog...just got a Nokia 7610 and installed lifeblog 1.51.
so...i tried posting a photo, and almost everything seems to work fine. the photo is uploaded to my lifeblog directory, the phone indicates success, no errors are registered in my apache log. so what's the problem?
no entry got created in my blog!!
very weird. i'm assuming that AtomServer.pm should just create a new entry that shows up on my index page?
any ideas? is there something stupid i'm doing? does this sound related to an Atom authentication token issue? i checked that twice.
Posted by: Ryan | April 20, 2005 01:55 AM
Thank you for very usefull information.
Posted by: Andrius Kokiančiks | April 27, 2005 08:47 AM
Can anyone who got this working confirm that it is working and provide a link to their blog?
Posted by: mark | May 23, 2005 07:16 AM
works just fine
Posted by: tero | May 30, 2005 11:17 AM
Thanks for writing this guide, though I can't for the life of me get it to work.
Is there any reason for Lifeblog version 1.60 not to work with the updated AtomServer?
Posted by: Scaryfast | June 3, 2005 05:18 PM
Ignore my last comment - I missed a few from above, most importantly the one about uncommenting line 177 when using Lifeblog version 1.60.
I did that and it worked a treat - thanks!
Posted by: Scaryfast | June 3, 2005 06:00 PM
How do I make a template similar to those lifeblog posts in TypePad (especifically the thumbnails).
Posted by: Mark | July 18, 2005 05:56 AM
Thats something I keep wanting to find time for. I'd suggest investigating the articles on creating image galleries with MT. I think the best way will be to create a side blog for your image posts and then incorporate a view into that from your main blog
Posted by: Martin
|
July 18, 2005 07:22 AM
Is there any way you could make this work with MovableType 3.2?
Posted by: Guest | August 26, 2005 03:01 PM
Now 3.2 is official I will be looking into this. Maybe its built in?
Posted by: Martin
|
August 26, 2005 03:53 PM
Any progress? I don´t seem to get it working with 3.2 at all.
Posted by: Guest | September 1, 2005 02:34 PM
I too would like to see an updated version for MT 3.2. I took a look at the source code and compared it to the 3.1x version that was working before I upgraded and I couldn't see what exactly I would have to do to make the 3.2 version work. Perl is most definitely beyond me.
Posted by: quack
|
September 14, 2005 05:52 PM
3.2 support now added - http://www.ocasta.co.uk/mt/archives/2005/10/mt32_lifeblog.html
Posted by: Martin
|
October 27, 2005 08:37 AM
I have found two interesting sources and would like to give the benefit of my experience to you.
I am tuning my pc by the best software for free, with the file search engine http://fileshunt.com and http://filesfinds.com May be you have your own experience and could give some useful sites too. Because this two social sites help me much.
Posted by: tatianahunt download
|
May 11, 2008 06:13 PM