import into s9y, movable type structure

Discussion corner for Developers of Serendipity.
Post Reply
jules

import into s9y, movable type structure

Post by jules »

Hi I once hat a blog at blogger.com, then swithced to to twoday.net and they use movbable type, or at least say so. Now I am about to switch to s9y and love it, but have problems getting all my comments with it. Could someone please tell me what I have to change in my .txt file where my data is in, so it will be nicely imported into s9y? Right now it has this structure which I think doesn't quite fit because s9y doen't import all the comments und stuff....:

TITLE: That day when I ...
CATEGORY: TestCategory
SHOWONFRONT: yes
EDITABLEBY: subscribers
DISCUSSIONS: yes
DATE: 12/01/2005 01:46:31 PM
AUTHOR: me
EMAIL: http://me.twoday.net
-----
BODY:
Just some text I wrote when I needed something to do....
-----
COMMENT:
TITLE:
AUTHOR: wise_guy (anonym)
EMAIL:
DATE: 12/06/2005 01:10:24 PM
woa! don't you dare..<br />
could't help writing this
-----
COMMENT:
REPLY:
TITLE:
AUTHOR: dattlebee (anonym)
EMAIL:
DATE: 12/06/2005 01:11:00 PM
what happend?
-----
--------
TITLE: 5. anny-day
CATEGORY: CoolStuff
SHOWONFRONT: yes
EDITABLEBY: subscribers
DISCUSSIONS: yes
DATE: 12/05/2005 06:57:22 PM
AUTHOR: me
EMAIL: http://me.twoday.net
-----
BODY:
So much to do so little time. Whish I had known this much earlier.<br />
<br />
What's that mirror about?
-----
--------
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: import into s9y, movable type structure

Post by garvinhicking »

What s9y version are you using? Basically that MT import structure looks good to me, if you use serendipity 0.9.1.

Can you offer that file to download somewhere? Then I could check to see if I can import it, and if not, make the necessary changes?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Jules

Post by Jules »

Hi,
I use Version 0.9.1, but the import doen't quite work because only "some" comments are importet. If really all the entrys are importet allright, I can't tell yet.

Surely, your offer is nice. Thank you.
You can download the file here: http://julestagebuch.de/2005-12-08-export-full-txt.txt

By the way, we could't have talked german as well, ... :-)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Okay, you are absolutely right, your comments of the MT file do not properly import.

The importer code is quite hard to code, so it'll take me a couple of days to get to the core problem. Can you send me a mail so that I can get in touch with you once I've have a patch for you to try? I'm pretty sure we'll get it to work this weekend.

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
mbirth

Post by mbirth »

For some "date languages" in MT, my MT 3.2 exported file contains "FM" and "EM" instead of "AM" and "PM". So you might want to add some lines to the importer to recognize them ... (FM = AM / EM = PM)

Cheers,
-mARKUS
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi markus! Thanks a lot, I've just committed that.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply