LJ-comments-import: reloaded

This plugin automatically synchronizes comments from Your LiveJournal blog with Your stand-alone WordPress-based blog.
All imported comments are associated with Your blog entries, crossposted to LiveJournal, and shown along with comments, written in your blog.
You can choose how often do the synchronization.
Synchronization does not slow down loading of Your pages, everything is done in background.

DOWNLOAD LATEST VERSION ( 0.97 )

Notes
Supports built-in WordPress comments threading! [see notes 2 and 3]
Automatically synchronizes comments from Your LiveJournal blog with Your stand-alone WordPress-based blog.
All imported comments are associated with Your blog entries, crossposted to LiveJournal, and shown along with comments, written in You blog.
You can choose how often do the synchronization.
Synchronization does not slow down loading of Your pages, everything is done in background.
Note 1: This plugin has to be used together with LJXP (LiveJournal CrossPoster) plugin. Support of JournalPress and other crossposters will come in future versions (please feel free to post feature requests at the plugin homepage).
Note 2: Threading depth is limited by WordPress settings (Settings – Discussion).
Note 3: You should consider removing Reply link for imported comments, because they are not really a part of WordPress :) .

Installation

1. Deactivate original LJ comments import plugin first.
2. Upload archive contents to the /wp-content/plugins/ directory. You shod have /wp-content/plugins/lj-comments-import-reloaded folder after that.
3. Make file /wp-content/plugins/lj-comments-import-reloaded/cookie.txt writeable for everyone.
4. Fill nine first lines of sync_lj_comments.php with settings from Your wp-config.php.
5. Activate the plugin through the Plugins menu in WordPress.
6. Go to Settings – LJ Comments Import and enter Your LiveJournal username and password. It’s completely safe to enter Your password here – it will be neither stored nor transferred in plain text. LJ Comments Import plugin will encode Your password first using md5 algorithm.
7. Press the Sync Livejournal comments now button to do the initial comments synchronization.

Changelog

0.97 Fixed error with directory path.
0.96 LJ changes authorizathion system. We did it too.

9 Responses to “LJ-comments-import: reloaded”

  • Плагин не работает =(
    Пароль и логин правильно вбиты, при нажатии Sync now пишет, что все ок. Установку взамен старого делал по инструкции.

    • etspring

      Андрей, а ты в файл sync_lj_comments.php вписал параметры доступа к БД?

      define(‘DB_NAME’, »); // Имя БД
      define(‘DB_USER’, »); // Имя пользователя
      define(‘DB_PASSWORD’, »); // Пароль
      define(‘DB_HOST’, ‘localhost’); // Хост с БД

  • Забыл: в mysql базу новые комментарии не добавляются – по прежнему только те, что были, когда старый плагин работал.

  • Ian

    Just discovered your version five minutes after fixing my own copy of lj_comments_import 0.95 to support LJ’s new auth system – there’s half an hour wasted! :(

    We came to the same solution except for one small thing, which I would suggest for your next version.

    On the line where you set the POST fields when logging in:

    curl_setopt($ch, CURLOPT_POSTFIELDS, ‘mode=login&user=’.$login.’&password=’.$password.’&_submit=%D0%92%D1%85%D0%BE%D0%B4+’);

    This is sending the password as plaintext. LJ supports a slightly more secure method of accepting the md5 hash of the password as the «hpassword» parameter. So that line would become:

    curl_setopt($ch, CURLOPT_POSTFIELDS, ‘mode=login&user=’.$login.’&hpassword=’.md5($password).’&_submit=%D0%92%D1%85%D0%BE%D0%B4+’);

    Thanks for taking on the job of fixing this plugin!

    (and sorry, I’m afraid I don’t speak a word of Russian! :D )

Add reply