Instapaper in River2?

50 views
Skip to first unread message

ctaloi

unread,
May 29, 2012, 10:47:35 PM5/29/12
to river2
Hello -

Just setup River2 and am unable to find anything in the web UI about
enabling Instapaper. I've searched around and found a few broken
links about enabling it. Has the feature been removed or is it no
longer exposed in the web UI ?

Looking at these links:

http://river2blog.wordpress.com/2010/03/22/instapaper-in-river2/
http://river2.org/2010/03/22/instapaper-in-river2/

Dave Jones

unread,
May 30, 2012, 12:26:05 AM5/30/12
to river2...@googlegroups.com
Do you normally read your news river from the UI or from a static river?  If you read from a static generated river then it'd be pretty trivial to add a "send to instapaper" link to each item using the onGetRiverStream callback.

DJ

ctaloi

unread,
May 31, 2012, 10:36:20 AM5/31/12
to river2
Just getting starting using OPML and a river, but I assume I will
settle on the static river. It seemed the Instapaper functionality
was once baked in - that's what I was looking for. When you say
adding the link should be trivial - are you referring to modifying the
template (copy http://static.opml.org/river2/defaultTemplate.opml and
edit / host)? I think I see where I'd add it - just trying to wrap my
head around all this. Thanks -

ctaloi

unread,
May 31, 2012, 12:22:25 PM5/31/12
to river2
Added the following under the RT section of the default template...

<li><iframe border="0" scrolling="no" width="78" height="17"
allowtransparency="true" frameborder="0" style="margin-bottom: -3px; z-
index: 1338; border: 0px; background-color: transparent; overflow:
hidden;" src="http://www.instapaper.com/e2?url={{if item.permaLink}}$
{item.permaLink}{{else}}${item.link}{{/if}}&title={{if item.title}}$
{item.title}{{else}}${item.body}{{/if}}"></a></iframe></li>

Got the job done!

Thanks,

- Chris

Dave Jones

unread,
May 31, 2012, 2:39:27 PM5/31/12
to river2...@googlegroups.com
You could also do it in the static river template like this:

</body>
<script>
function onGetRiverStream() {
	$.getScript('http://dl.dropbox.com/u/1028851/River2/instapaper.js'); /* Add Instapaper link */
}
</script>
</html> 

DJ

Dave Winer

unread,
May 31, 2012, 3:41:15 PM5/31/12
to river2...@googlegroups.com
This is so ideal. 

If you guys ever want to take custody of the default river template, let me know.

Dave
Reply all
Reply to author
Forward
0 new messages