• I’ve done all kinds of gymnastics trying to get this plugin to work, but as I’ve searched for a solution all I’ve seen are posts saying that it won’t work unless your blog is installed in the root folder. This isn’t an option for a lot of people, and it’s a shame, because this seems to be the only game in town for cross-posting Livejournal comments. I’ve seen threads and threads filled with complaints that this doesn’t work, so if someone could come up with one that does, I’m sure it would be a popular plug-in. At this point I’d even be willing to pay a premium rate for a good one.

    http://wordpress.org/extend/plugins/lj-comments-import-reloaded/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Are you still interested in paying to fix this plugin to work in subfolder? I would do that work for you.

    Thread Starter TaskWrangler

    (@taskwrangler)

    Thanks. I don’t really have the budget to hire someone to fix it for me. But if somebody created a premium plugin to perform this function (one that actually works) I’d be willing to pay up to $25 to use it, and I’m sure I’m not the only one.

    Oh, I got the idea now. Didn’t realize that WP have premium (paid) plugins. Will investigate in this direction and do the fix.

    As you are updated to this thread, I will update it when I have done anything worth seeing.

    Thanks for your response!

    Seems like WordPress.org is not the place for premium plugins. Where do you often go for them? WpPlugins.com?

    Thread Starter TaskWrangler

    (@taskwrangler)

    I don’t know about a central location for premium plugins, but I’ve seen developers selling them independently through their own sites. Gravityforms.com is a good example. There’s also Code Canyon, which is the script and plugin equivalent of Theme Forest.

    Good luck!

    Any news about that project? I’d be interested, too.

    > Any news about that project? I’d be interested, too.

    Not yet. Finding motivation 🙂

    Do you have only the problem with root folder?

    I haven’t even tried the plugin yet because my blog is very definitely not in the root folder. *g* I hope that will be the only problem, though … The LJXP plugin that has to be used in connection with this plugin works very well for me, at least. 🙂

    filklore

    (@filklore)

    I only came across this plugin today, and was disappointed about it not working if the blog is not in the root folder.

    However, I seem to have come up with a fix, in that it is importing comments for me. It is an inelegent hard-coded fix, but very simple. It may be that it can be tidied up by someone else.

    The problem is entirely in the lj_comments_import_js.php file, and in the last two functions.

    The last function, lj_comments_adminpage_sync(), has a reference in it to

    document.getElementById(“lj_sync_progress”).innerHTML = \'<img src=”/wp-content/plugins/lj-comments-import-reloaded/ajax-loader.gif” alt=”loading…” />\’;

    Edit the img src to include your blog directory – for instance, my blog is in a directory labelled wordpress, so that would become:

    document.getElementById(“lj_sync_progress”).innerHTML = \'<img src=”/wordpress/wp-content/plugins/lj-comments-import-reloaded/ajax-loader.gif” alt=”loading…” />\’;

    Similarly the function before that, lj_comments_call_sync(need_to_handle_response) has two lines starting:

    lj_comments_ajax_get(“http://&#8217;.$_SERVER[“HTTP_HOST”].’/wp-content….

    again change that to include the name of the directory – in my case:

    lj_comments_ajax_get(“http://&#8217;.$_SERVER[“HTTP_HOST”].’/wordpress/wp-content

    This will get the plugin working.

    I think you could probably improve my fix by using $_SERVER[“DOCUMENT_ROOT”] instead of $_SERVER[“HTTP_HOST”], and then it wouldn’t need the blog directory added. But I’ve got comments working, so I don’t think I want to play with it too much – I’ll leave that to others.

    filklore

    (@filklore)

    Subsequent to my last reply, there are other things that need to be tweaked in a similar manner – i.e. to point to the right place for avatars.

    But the above does actually get the comments into WordPress, which I think is a good start. If I find time to do any more playing with it, I will post an update.

    Meanwhile if you look through the code for similar incidences to those I mentioned, you should be able to plug further holes yourself. Just don’t do a global cut and paste!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘[Plugin: LJ comments import: reloaded] Useless if your blog isn't in the root folder’ is closed to new replies.