HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Salmon: Cross-site commenting.

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#67459 (In Topic #14381)
Avatar

Community saint

Experimental addon.


Hi everyone. You're probably wondering why the flurry of activity I showed on the site earlier has died down a bit. Well, the reason is that I've got another addon in the works which I started hacking on just before Christmas. As of a couple of days ago it's actually working, so I thought I'd announce it here, although it's still experimental at this stage (see below). What is this addon? It gives ocPortal support for accepting Salmon.

Salmon is a new standard (only finalised in January!) which defines a way for sites to send data to each other. Specifically, it allows consumers of ATOM news feeds to send their own ATOM entries back to the producer. This means that if site A publishes an ATOM news feed and site B shows this on their own pages, any comments made on B can get sent back to A and shown along with the original source. This stops conversations being fragmented, and allows users to see everyone's thoughts on a story, regardless of what site they happened to read it on. It is also one of the building blocks of the OStatus protocol, which is the primary implementation of the federated social web which I posted about earlier.

So what have I made thus far? I have built an experimental addon which allows ocPortal to act as "site A" in the above example, receiving comments from other sites and publishing them on the original content. We do a little bit of cheating here; rather than checking what each incoming comment says it's replying to, we simply change the URL of the Salmon service for every feed entry, and work out what we're commenting on via this URL. Here's the result of my initial testing, using a modified version of the example given in the specification:



The process of testing is a little involved, but if you want to have a go then take a look at the TESTING file in the repository :)

The files for this addon can be found on Gitorious. The code is heavily based on the Wordpress plugin "salmonpress", but extended (via hooks) to support all of ocPortal's content types that allow comments and ATOM feeds. This is currently news/blogs, calendar events, catalogue entries, galleries, downloads, polls and image of the day. I've only tested news thus far. Unfortunately neither salmonpress or my Salmon plugin currently support Salmon's built-in security features, which is why this is still experimental (unless you like comment spam ;) ). Thus this should *NOT* be used on a production site, and this is also the reason I have not published an addon yet. I've joined the Salmon mailing lists to see how I can get the cross-site authentication going :)

Any thoughts?
Back to the top
 
Posted
Rating:
#67461
Avatar

Community saint

Ouch! ChrisW.

I was contemplating the content when it occurred to me that, with my level of comprehension, it would be tantamount to using this …

=Ouch!

But I will give it my sincerest attention!

 :lol:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#67466
Avatar

Community saint

Heh, I realise that I've been a little jargon-heavy. Maybe the presentation from salmon-protocol.org will make things easier to understand (although it mentions "PUbSubHubbub" for sending updates, which I've not added support for yet):

Back to the top
 
Posted
Rating:
#67481
Avatar

Community saint

Thanks for sharing this interesting concept, ChrisW!

I will certainly give it some time, and hope I don't have to use Fletch's battroom implement in the process!:o:thumbs:

Cheers!
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: