Several people wanted to know how I’ve been cross-posting my WordPress moods and avatars to LiveJournal, InsaneJournal, and Journalfen. So here ya go. :)
You need a WordPress blog, obviously; read my full “How to Migrate Your Blog from LiveJournal to WordPress” tutorial if you’re just starting. This is for users who are already set up.
I hacked the LiveJournal Crossposter plugin to pull in my moods (from the Cricket Moods plugin) and my avatars (from the Post Avatar plugin). This works on WordPress 2.3.3 (and probably others).
This doesn’t actually update your moods and avatars in LiveJournal’s system; it just includes your own moods and avatars, from your own site, in the body of your post. This might make your posts look funny on your friends list (your icon will be aligned left; others may be aligned right depending on the journal style). You can tweak the display options by editing the code below, but there’s no way to make it match every possible journal style. On the plus side, you can have as many moods and avatars as you can fit on your own server, without having to worry about LiveJournal’s limits.
This has an obvious bug: it doesn’t crosspost moods and avatars unless you’ve already saved a version of your post. The easiest way to do this is to click “Save and Continue Editing” first, then click “Publish.”
I’m not releasing a complete plugin, because I’ve also hacked my LiveJournal Crossposter script a million other ways. It’s easier to just give you the snippet of code you need, and you can paste it in. I’m attaching it in a file; all you have to do is find a certain line in your LJXP code and paste all this right before it.
To use this code, open LiveJournal Crossposter and find the lines that say:
$the_event .= $postHeader;
$the_event = $postHeader.$the_event;
Found them? Okay, now just paste the code in the file directly above the code you just found.
Click here for the plain-text code or click here to download it as a PHP file. The instructions are repeated in a comment at the top of the code, in case anyone gets linked directly to it.
This also works for InsaneJournal Crossposter and Journalfen Crossposter.
Let me know if you have questions. And if you figure out a way to improve it, please share. :)
Originally published at rusty-halo.com. Please click here to comment.