[personal profile] rusty_halo
rusty-halo.com

http://rusty-halo.com/wordpress/?p=2558

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:

if($header_loc) {
$the_event .= $postHeader;
}
else {
$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. :)

Current Mood: accomplished emoticon accomplished & creative emoticon creative

Originally published at rusty-halo.com. Please click here to comment.

rusty-halo.com

I blog about fannish things. Busy with work so don't update often. Mirrored at rusty-halo.com.

August 2018

S M T W T F S
   1234
56789 1011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Expand Cut Tags

No cut tags