This holiday weekend finally let me get some active stuff done.
I made changes to WordPress’s import-livejournal.php script to allow importing all your comments from Livejournal.
Previously, this script (shipped with WordPress v1.2.2 that I use) only allowed you to read in the Livejournal entries into your WordPress site. With my changes, it now reads in all comments from your Livejournal too.
Features:
1) Extends existing functionality, to read in all comments from Livejournal posts.
2) All commenting user URLs are auto-redirected to
http://www.livejournal.com/users/whatever_comment_username
3) Anonymous livejournal comment URL is left blank (otherwise, LJ user anonymous was getting all the hits)
4) Shows number of comments imported per post.
5) At the end of the import, shows stats on total posts and total comments imported in current session.
(We could extend this to show average comments per post, posts with highest, lowest and median number of comments).
This script is available at http://www.bhansalimail.com/wordpress_import-livejournal.php
10 Jul 2005 at 4:29 am
HELP! I am having trouble completing the import of my LJ posts & comments. When I click on the link on your website for instructions it simply brings me back to the same page.
All goes well until it looks for the xml file. It is in the same directory as the import-livejournal.php file so the coding looks like this: define(‘XMLFILE’, ‘LJ4WP.xml’);
Why does it say it cannot find the xml file?
Jackie
10 Jul 2005 at 4:31 am
I could really use some instructions for this. I can’t get it to work and the link on your site for instructions doesn’t work.
28 Mar 2010 at 11:09 am
Hi there – Are you still supporting this?
I thought I had http://gnodal.protension.com/journal/ working using the default import functions but it looks like WP code choked: at least a few of the LJ posts are missing.
I have the XML from LJArchive uploaded and put that filename into the php.
But then the script couldn’t find itself: the “Let’s go” link pointed to /wp-admin/lj-import.php instead of /wp-admin/import/lj-import.php … not hard to fix, so I fixed that.
But now it can’t find wp-config! I tried adding ../ to its 2 occurences, which should have fixed it, but no joy. Originally it was ../wp-confing so I made it ../../wp-config and even tried ../../../wp-config (which is silly) but that didn’t work either.
I’m stuck, and this matters: a once in a lifetime thing.
TIA
ben
ab006 AT chebucto.ns.ca
29 Mar 2010 at 5:00 am
Hey Ben,
I stopped supporting this script because at some point along the way, WordPress and some plugins started doing a better job.
Have you tried this tool?
http://wordpress.org/extend/plugins/lj-comments-import/
It has worked for quiet a few people already.
Let me know if it works.
I can try to help you individually, of course. But it’s always better to go with a more current/recently-tested script.