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.
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:
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:
Плагин не работает =(
Пароль и логин правильно вбиты, при нажатии Sync now пишет, что все ок. Установку взамен старого делал по инструкции.
Андрей, а ты в файл sync_lj_comments.php вписал параметры доступа к БД?
define(‘DB_NAME’, »); // Имя БД
define(‘DB_USER’, »); // Имя пользователя
define(‘DB_PASSWORD’, »); // Пароль
define(‘DB_HOST’, ‘localhost’); // Хост с БД
Забыл: в mysql базу новые комментарии не добавляются – по прежнему только те, что были, когда старый плагин работал.
Думаю проблема описана выше.
Нет, даже при введённых данных про БД всё равно ничего не происходит
А LJ-XP установлен?
На cookie.txt поставь chmod 777 для теста.
Стукнись в icq 7539575.
Всё, заработало.
Я как последний п… ээээ… ламо не выставил перфикс таблицы в базе данных.
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!
)
Erk! That mangled my formatting. I hope it’s still reasonably clear.