Allow "post this to my LJ" option when creating nodes

javanaut - March 12, 2005 - 21:24
Project:LiveJournal
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:javanaut
Status:active
Description

This feature would reside as a checkbox on the node/add/$type form page and would use one of LJ's APIs to post the rendered node to LJ. Relative URLs would have to be xlated so that they were fully qualified.

There could even be a "blog this to my LJ" link on nodes that haven't been posted there yet. I figure if you're going to have authentication credentials when a user logs in, you might as well use it to allow them to post content.

I am very interested in this feature and would be willing to implement it if nobody else will. Developer docs for LJ client API are here:
http://www.livejournal.com/doc/server/ljp.csp.protocol.html

It looks as though they're deprecating their support for BloggerAPI, so XMLRPC looks most promising. I've started on this in the past, but didn't have a pressing need, so I never finished it (besides, I was using the outgoing BloggerAPI protocol).

#1

javanaut - March 15, 2005 - 06:25
Assigned to:Anonymous» javanaut

I'm making quite a bit of progress on this module. It will be in my sandbox shortly, as a patch would be ridiculous at this point.

Basically, users who authenticated via livejournal.com (or whatever LJ site you allow) that also have the 'post to livejournal' privilege will have a form option when viewing a node to post it to their livejournal account. There are a few details to work out, like making all URLs absolute. I don't know an easy way round this one (except for the 2 lines in common.inc that would need to be modified).

It's working, but I'm still messing with it. I'd also like to figure out cookie-based authentication so that md5 password hashes aren't used more than necessary. I'm making 2 versions that work on 4.5.2 and 4.6.

#2

javanaut - March 15, 2005 - 22:42

Seems to be mostly functional at this point. Still some strangeness with friends filters to work out. I'll get to that soon.

http://cvs.drupal.org/viewcvs/drupal/contributions/sandbox/javanaut/live...

#3

zhasper - May 21, 2005 - 02:55

How difficult would it be to modify this so that a user registered with the site could get the same "Post to LJ" options, along with some way of entering username/password (either in DB, or in a form on the node creation page)?

#4

javanaut - May 21, 2005 - 03:29

GRRr....
I just responded to this in a pleasant and verbose way, but drupal.org ate my posting.

To summarize,

1. it would not be trivial
2. LJ just implemented a new authentication scheme (http://www.danga.com/openid/) and that will hopefully become the authentication method of choice, thus suggesting a rewrite of much of this module anyways.

#5

zhasper - May 22, 2005 - 08:02

The bad: well that sucks, I was hoping it was fairly easy so I could give it a crack..

The good: openID looks interesting and fairly well thought out..

thanks :)

 
 

Drupal is a registered trademark of Dries Buytaert.