Thursday, January 05, 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.
- Fixed date bug
- Fixed bug where mood was set as NONE
- Added new field – allow comments
- Changed documentation and one of the module tags
- Fixed allow comments bug
- Added new field – location
- Changed documentation
- Fixed language typo
- Added support for formatting text before it is sent to LiveJournal
Thread in the forums