The LiveJournal Crosspost Module/Extension

Friday, January 06, 2006

The module/extension I mentioned earlier is now ready! Introducing: the LiveJournal Crosspost Module and the LiveJournal Crosspost Form Extension.

The LiveJournal Crosspost Module/Extension allows you to crosspost entries from ExpressionEngine into LiveJournal.

Why write this?

A while ago, Rob1 on the pMachine forums posted some code on how to crosspost entries to LiveJournal. It worked fine, but it involved 3 steps. I had to write an entry in the Control Panel, then access a template on my site, and then submit a form to post it to LiveJournal. With this Module/Extension, all I have to do is write an entry in the Control Panel, press the “Submit” button, and the entry is automatically posted!


  • Crosspost entries to LiveJournal.
  • Edited entries will also be posted to LiveJournal.
  • Support for public, friends-only, and private entries – managed using custom statuses.
  • Setup can be basic or advanced.
    • With a basic setup, you crosspost the entry title and the entry body.
    • With an advanced setup, you can set up custom fields in your weblog for specifying userpics, friends groups, journal, current mood, current music and tags. You can also control the backdate settings, comment notification settings, and comment screening settings on an individual or global basis.
  • Ability to retrieve a list of userpic keywords, allowed journals, and friends groups from LiveJournal. This is so that you can keep your userpic keywords etc. up to date.
  • Ability to add a link back to your original EE entry.
  • Ability to link to your LiveJournal entry from EE.
  • Ability to convert LiveJournal specific tags into HTML, for use in EE. This code is straight from the LiveJournal Formatting Plugin, I figured I’d put it in here.
  • If you have userpics set up, the userpic will be displayed in the control panel, and it’ll automatically update when you choose another userpic.


Download Version 1.3 Here (see below for the changelog)

There’s a readme file included in the zip file which you have to read. Then when you install the module there’s even more documentation to read.


This is the module control panel interface:

The Documentation link is on the top right tab.

If you click on the “Settings” link, you’ll see something like this:

Here you specify things like your LiveJournal username and password, and the custom fields that hold the related information.

Now here’s a screenshot when editing an entry:

Once I submit the entry and it is successful, I see this:

The last 2 links are from another extension.

And lastly, here it is on my LiveJournal:


  • As of this time, you can only post from one weblog to one LiveJournal account. It’s possible to extend it so that you can post to an LJ account from multiple weblogs, or post to more than one LJ account. If you need the extra functionality, it’s better to use rob1’s code. The one weblog/one LJ account setup is all I need, so I don’t plan on taking it further than this.
  • The extension doesn’t work with the EE 1.2.1 Publish Form Extension!
  • You can’t delete entries, for that you’ll have to go to LiveJournal and delete them there.


  • When making a new entry in EE, if the crosspost to LiveJournal fails, a blank page will be displayed with an error message. Do not hit the back button and press submit again to try again. The original entry will have been successfully made in ExpressionEngine. If you hit the submit button, it’ll create an identical new entry in EE, which you don’t want. Instead, when you hit the back button, go back to the edit page and edit the original entry.

If you spot any other bugs, let me know by emailing me at yvonne (at) this domain.


Version 1.0

  • Initial release

Version 1.1

  • Fixed date bug
  • Fixed bug where mood was set as NONE
  • Added new field – allow comments
  • Changed documentation and one of the module tags

Version 1.2

  • Fixed allow comments bug
  • Added new field – location
  • Changed documentation

*Version 1.3”:

  • Fixed language typo
  • Added support for formatting text before it is sent to LiveJournal


Thread in the forums

Comments & Trackbacks

Post a comment.

The trackback URL for this entry is:

Gravatar for Shannon

1. Shannon Canada said:

on Jan 18 2006 @ 08:44 PM

Omg I’ve been looking for something like this!!!! I can’t really tell, but it won’t post certain member group entries on there if I don’t want it to, right? Because I post a lot of private (me only) and closed entries, and I’d hate for them to be posted on my LJ.

Gravatar for Robert

2. Robert United States said:

on Jan 19 2006 @ 12:21 AM

Help??? I think I’ve followed instructions exactly but I’m not getting any crossposts?? Any suggestions?? I’ve checked everything again but no luck…

Avatar for Yvonne

3. Yvonne Canada said:

on Jan 19 2006 @ 05:23 AM

Shannon, you can set up a custom field dropdown with two values – Yes or No. If you select yes, then the post will go to LJ, and if you select no, then it won’t. You’ll have to do that for every entry but that way you can control what gets posted. Closed entries aren’t posted at all.

Plus, the way the module is set up, you need to have an Open (Public), Closed, Friends, and Private status, which matches the ones on LJ. So if you post private entries that are only for yourself, and set the status to Private, then it’ll post to LiveJournal and it’ll still be visible only to you.

I haven’t really thought about member groups – how many ones do you have? Do you restrict access to your entries using a custom status?

Avatar for Yvonne

4. Yvonne Canada said:

on Jan 19 2006 @ 05:30 AM

Robert – are you getting any error messages at all? Also, do trackbacks and/or pings work for you? I ask because the module uses the same code used to send trackbacks and pings.

Gravatar for Robert

5. Robert United States said:

on Jan 19 2006 @ 06:30 AM

I’m just crazy… I followed all of your instructions EXCEPT for #4 in the Readme file. After seeing #3 that said follow the documentation, I failed to go back to the Readme and finish it.

Although I do have another question: Is there a way to go back and update ALL of your entries so that they will be posted to LJ or do I have to do each one individually?? Thanks…

Avatar for Yvonne

6. Yvonne Canada said:

on Jan 20 2006 @ 06:26 AM

OK, good to know you’ve got it working. I will put #4 in the module documentation instead or something, so other people won’t miss it too. smile

There’s no way to update all your entries, you’ll have to do each one individually.

Gravatar for Robert

7. Robert United States said:

on Jan 20 2006 @ 03:02 PM

Ok, I promise this is the last question (I hope)…

I’ve been going through individually and updating entries so they will show up in LJ. Not a problem although cumbersome that it is.

I’m wondering now, why are my entries not showing up on my friends pages if I’m listed as a friend. I changed the status of the most recent entry directly through LJ and it still didn’t show up??? Any ideas on this now?? I’ve been testing it through my own friends page (as I have myself as a friend)…

Thanks again for the awesome module.


Avatar for Yvonne

8. Yvonne Canada said:

on Jan 22 2006 @ 03:13 AM

Are your entries backdated Robert? If it’s set to no then the entry won’t show up on your friend’s list.

Gravatar for Luka

9. Luka United States said:

on May 22 2006 @ 08:38 PM

I installed this today. Nice being able to go directly to the entry I just wrote, or edited, rather than having to go look for it. Thanks :-)

Gravatar for NightVixen

10. NightVixen New Zealand (Aotearoa) said:

on Jun 05 2006 @ 03:27 AM

I installed this module however I’ve discovered a issue I dunno How to deal with due to Mysql I was hoping you could help me explain what this Means?


Error Number: 1054

Description: Unknown column ‘field_id_0’ in ‘field list’

Query: SELECT field_id_12 AS anum_field, field_id_2 AS body_field, field_ft_2 AS fmt_body_field, field_id_0 AS friendgroups_field, field_id_11 AS id_field, field_id_15 AS journal_field, field_id_19 AS location_field, field_id_16 AS mood_field, field_id_17 AS music_field, field_id_20 AS post_field, field_id_0 AS tags_field, field_id_13 AS userpic_field FROM exp_weblog_data WHERE entry_id = 34

Avatar for Yvonne

11. Yvonne Canada said:

on Jun 05 2006 @ 03:45 AM

Hmm it looks like the Friends group field and the Tags field aren’t updated properly. Could you go to the Module Settings and check to see if you have put anything in those fields and if you have if they’re correct? Also try save the settings again and see what happens.

Gravatar for NightVixen

12. NightVixen New Zealand (Aotearoa) said:

on Jun 05 2006 @ 04:14 AM

It now works After I noticed I did over look something..Thank you!!!

BTW Totally am very so greatful for this Module!!! Thank you Muchly!

Gravatar for NightVixen

13. NightVixen New Zealand (Aotearoa) said:

on Jun 05 2006 @ 07:29 AM

I’ve came across another brick wall with this, The usepic I have it up but If I try To haev it like I haev it on my LJ (See User: NightVixen) Where i have teh user pic right side wraped with teh entryI seem to get a error with the data base. However I dunno CSS to well and I’m Presuming that is whatI’d need to pull That off right?

Any Ideas could i can do that

My code is this: {exp:lj_crosspost:userpic weblog_id= For that and I tried to add a Align=“right” on the end But ditto.. stuffed up.

Any Ideas? Greatly appreciate it.

Avatar for Yvonne

14. Yvonne Canada said:

on Jun 06 2006 @ 12:49 AM

Nightvixen, you do need to use CSS. Try something like this in your template:

<img src="{exp:lj_crosspost:userpic weblog_id="{weblog_id}" keyword="{lj_userpic}"}" alt="{lj_userpic}" style="float: right;" />

You can find more about floating images here.

Gravatar for Sasha

15. Sasha Great Britain (UK) said:

on Jul 15 2006 @ 09:43 AM

I absolutely love this plugin! It works perfectly for me. biggrin I have one question about it, however. I use the Markdown plugin to format the text in my entries, and this is (obviously) not working on the ones posted to LJ, they just show up with the raw Markdown formatting in it, without it having been converted to HTML. Is there any way for the LJ Crosspost Module to run Markdown on the entries before sending them on to LiveJournal? If not, then no worries lol…but I was just wondering if this would be possible. smile

Thanks for this awesome module!

Avatar for Yvonne

16. Yvonne Canada said:

on Jul 17 2006 @ 11:57 AM

Yes, it’s possible. I can add in an option perhaps to choose to format it in Markdown, or Textile or some other plugin. Give me a day or two. smile

Gravatar for Sasha

17. Sasha Great Britain (UK) said:

on Jul 17 2006 @ 12:02 PM

Yvonne: That would be so awesome! Thank you in advance!!

Avatar for Yvonne

18. Yvonne Canada said:

on Jul 23 2006 @ 09:21 PM

OK, I’ve managed to update it. Let me know if there are any problems!

Gravatar for Stephanie

19. Stephanie United States said:

on Aug 05 2006 @ 03:14 AM

You’re incredible; every time I find a plugin/extension/module I need, it’s yours!

Any way you can make it possible to post from more than one weblog? We’re using three to make up our site, but it’d be nice to have all of those feed into the LJ….

Gravatar for Stephanie

20. Stephanie United States said:

on Aug 05 2006 @ 03:18 AM

… and it would probably help if I’d read the “Limitations” section…

Gravatar for JL

21. JL United States said:

on Sep 26 2006 @ 01:19 AM


I love the module and extension! It almost works perfectly and I’m not sure if this is something with it or with the fact I’m utterly new to EE, but I’m hoping you can help.

I have the backdated field set to ‘yes’, but it still returns the error that I need to set the backdate option in order to post to LJ:

Error Posting to LiveJournal: 153 : Incorrect time value: Your most recent journal entry is dated 2006-09-25 17:44, but you’re trying to post one at 2006-09-25 10:12 without the backdate option turned on. Please check your computer’s clock. Or, if you really mean to post in the past, use the backdate option.

Thanks in advance for any help you can provide.

Gravatar for bestann

22. bestann Russia said:

on Oct 25 2006 @ 11:58 AM

It doesn’t work in EE 1.4.2

Gravatar for bestann

23. bestann Russia said:

on Oct 27 2006 @ 01:04 PM

The touble is with Russian UTF8 encode (in site options I use UTF8). In EE site everything looks pretty, but in LJ it looks awfully! Help me!

Gravatar for bestann

24. bestann Russia said:

on Oct 30 2006 @ 12:49 PM

It seems to me that I must add
$data[‘ver’]= 1;
But Where?

Post a Comment

Commenting is not available in this weblog entry.

Live Preview


Comment Author

Apr 24 2014 @ 05:40 AM