Home > Geek Stuff > Better Crossposting Plugin

Better Crossposting Plugin

November 4th, 2003 Leave a comment Go to comments

Okay, so after a bit of trial and error with yesterday’s crossposing plugin, I’ve redesigned it’s interface to MT so that it no longer relies on a ping to trigger the LJ updates, but instead uses a template tag. This results in more reliable operation, better error reporting, and easier configuration, so all around I’m happier with it.

To use this new lj-crosspost plugin, just drop the lj-crosspost.pl file into your MT plugins directory, then add a <$MTLJCrosspost user="lj-user" pass="pwhash" $> tag to your archive template. Now, whenever you post a new article, it’ll get posted to LJ as well, and if you edit an existing article, the LJ counterpart will also be updated.

I’ve also written a couple of script that go along with the plugin. The first, pwhash.pl, it just a simple helper script to do the MD5 hash of your LJ password. The second is sync.pl, which downloads all your existing LJ entries and attempts to match them the existing MT entries. This will help prevent double-posting when you first rebuild after inserting the tag into your template. It’s not 100% foolproof, but it worked pretty well for me. It matches on subject line, and prompts you if it finds multiple matches. Not sure how well it does with no subject line though. I should add date matching to it, but I’m lazy.

If you want to try it out, grab the plugin here.

Categories: Geek Stuff Tags:
  1. Scott
    June 3rd, 2005 at 00:00 | #1

    Hey Chip,

    Wow! I seem to recall you had a replicator/synchronizer before, but this one sounds much better — especially given that I often update a new entry several times in the first day. I may have to brush off the lint settling on my livejournal account.

    You GeoURL neighbor,
    Scott

  2. Christopher Troup
    June 3rd, 2005 at 00:00 | #2

    Hey
    I tried your plugin today, but i keep getting a message that its “out of context”. Does this sound like a common problem?

    I dropped in my tag to the Master Archive Index page right under the tag. Is this the wrong place for it?

    Thanks!

    PS — feel free to email me with an answer!

  3. Matthew Baya
    June 3rd, 2005 at 00:00 | #3

    I have the same question as the person above, which Archive Template and where exactly should I put it?

  1. No trackbacks yet.

Performance Optimization WordPress Plugins by W3 EDGE