Page 1 of 1

Import from b2evo v0.86

Posted: Tue Apr 11, 2006 6:44 pm
by wizian
Hi,
I tried using the import facility for b2evo (version 0.9..) but the entry dates haven't been imported.
The b2evo database which I have is v0.86. I tried upgrading b2evo to a newer version but gave up in the end.
Is there a trick, a modified import routine or a place in the serendipity code which I can change so that I can do a clean import?

Re: Import from b2evo v0.86

Posted: Tue Apr 11, 2006 8:16 pm
by garvinhicking
Hi!

Did you try to use the import with your current b2evo import?

If you know some PHP, you could easily edit the importer files in include/admin/importers/. Sadly we have to develop s9y further, so we cannot offer help on importers for outdated versions of other blog systems...

But maybe b2evo 0.8 and 0.9 don't differ that much in their database versions?

Regards,
Garvin

Changed line in file to import

Posted: Wed Apr 12, 2006 10:34 pm
by wizian
Hallo,
changed line 146 in file \include\admin\importers\b2evolution.inc.php


from

'timestamp' => strtotime($entries[$x]['post_issue_date']),

to:
'timestamp' => strtotime($entries[$x]['post_date']),

Worked like a charm.

Imported entries, users with passwords, categories, links to files and comments.

Note: If you are importing, the screen hangs. Don't worry.

Re: Changed line in file to import

Posted: Thu Apr 13, 2006 12:59 pm
by garvinhicking
Hi!

Many thanks! I committed your patch to our SVN!

Regards,
Garvin