How to Get Livejournal Crossposter working in WP 2.5

One of the plugins I use on a regular basis is LiveJournal Crossposter, since I have several friends who are on LJ. However, ever since WP 2.3 or so, I've had to go into to the wp_options table and manually update the settings for this plugin after upgrading WordPress. I decided to do a clean install when I upgraded to WP 2.5 and discovered that this plugin will not activate without a small change to the code.

To get this plugin working in WP 2.3 or greater, manually update ljxp_username and ljxp_password in the wp_options table. I have found that just entering my username does the trick, and I can enter my password from the LiveJournal Settings tab in the WP Admin Panel. If that doesn't work for you, manually update ljxp_password by generating an MD5 hash and pasting the result into ljxp_password.

To resolve the WP 2.5 activation error, open lj_crosspost.php and replace:

if(version_compare($wp_version, "2.1", "<")) {
require_once(ABSPATH . '/wp-includes/template-functions-links.php');
}

with

if(version_compare($wp_version, "2.3", "<")) {
require_once(ABSPATH . '/wp-includes/link-template.php');
}

The author hasn't updated this plugin for awhile now, but the Google Code LJXp issues list is a good place to look if you're having other problems with this plugin.

Shortstat for WP 2.01 and other stat miscellany

One of the reasons I've hesitated to upgrade my main two blogs to WP 2.01 is that I discovered it breaks the current version of Shortstat. But Markus Kämmerer fixed a version that works with WP 2.01. Read more »

MySQL query error