I installed movable Type 4.2 on my Server, because i hoped to use it with Nokia Lifeblog and my Nokia N95.
I got a working connection using this tutorial: http://www.movabletype4.eu/movabletype/usi...ble-type-4.html
Unfortanly i have problems with SMS and Text items. All i get is an link to an textfile.
I had hoped, i would be able to write an Text item and post it as a normal Blogentry.
Insted of an Textfile link i want the text form inside to be includet in my post.
After a little research, i found a tutorial who to get it to work with movable type 3.2/3.3
http://www.ocasta.co.uk/mt/archives/lifeblog/
I the tutorial there is a modified AtomServer.pm, so i tried to compare both versions.
In the 3.2 Version i found a text part which reads the text from a file, while in the 4.2 there is only an upload.
I'm not a programmer, and i don't now how to include the read textfile part into the new AtomServer.pm
I tried it with including
CODE
if ( ($item->get('type') eq "text/html") || ($item->get('type') eq "text/plain")) {
## need to read file contents and include it in entry
my $file = $blog->site_path . substr($tag, rindex($tag, ":")+1);
my $buffer;
my $bodytext = "";
open(INFILE, $file);
# read in each line from the file
while (<INFILE>)
{
# $_ is the line that <INFILE> has set.
$bodytext .= $_;
}
close(INFILE);
}
## need to read file contents and include it in entry
my $file = $blog->site_path . substr($tag, rindex($tag, ":")+1);
my $buffer;
my $bodytext = "";
open(INFILE, $file);
# read in each line from the file
while (<INFILE>)
{
# $_ is the line that <INFILE> has set.
$bodytext .= $_;
}
close(INFILE);
}
But that didn't work. I think, the file could not be read.
The next problem is, that even if it read the file, it would be in the $bodytext variable, but i can't find the matching variable, so it would apear someware in my entry..
I hope someone can help me.
Thanks Eismaus