I finally found the time to take a look at mod'ing the MT3.2 AtomServer for compatibility with the Series 60 Lifeblog client. In the end it was fairly straightforward to apply the previous the changes, although I did discover one change of behaviour that may or may not be a bug in MT3.2. The MT::App function uri returns /cgi-bin/mt.cgi rather than the uri of the file invoked (in this case mt-atom.cgi). Very odd.
This file is made available subject to the usual proviso of using it at your own risk. I have only tested it with a Nokia 6630 running the latest download of Lifeblog.
To install:
- Download this file. Replace the standard Moveable Type version of AtomServer.pm (this file can be found in lib/MT) with it.
- Create a directory lifeblog with the normal 755 permissions in the root directory of your blog.
-
- Add the entries described in my original post to your style sheet template and rebuild it
- Configure the Lifeblog client with your username and API password (not the standard password). This can be found on your Author Profile 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 1: 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.
Note 2: If your mt-atom.cgi file is not in /cgi-bin then you will need to edit the AtomServer.pm file. Find the line
my $ATOM_CGI = '/cgi-bin/mt-atom.cgi';
and change it to refer to your mt-atom.cgi file.
Have fun and let me know of your successes and failures.