Posts plugin for jQuery

184 views
Skip to first unread message

Nick

unread,
Jun 5, 2012, 11:15:39 PM6/5/12
to tumbl...@googlegroups.com
I had a need for JS/jQuery based plugin that would allow me to embed the posts from a tumblr blog on an external website, with a focus on flexibility in terms of style and post format. Drawing functional inspiration (and indeed, a good amount of code) from a similar plugin for Twitter known as Tweet! (http://tweet.seaofclouds.com/) I've built my own, which I've dubbed Tumby:

https://github.com/bicknoyle/tumby

Documentation I have for it now is pretty spartan, but basic usage is simple:

$('#posts-container').tumbly({ hostname: 'yourbloghostname.tumblr.com'});

The plugin draws much inspiration from Tweet in that it allows you to specify the layout for your posts (including layouts for each specific post type - see the source code). So far it has passed the rigorous Works For Me(tm) certification process.

I consider it pretty unfinished right now, including user-facing configuration parameters, but if anyone finds it of interest please have a look at it and feel free to weight in with comments/questions/suggestions/criticism/funny anecdotes/etc.

Right now it's using v1 of the tumblr API. I'm new to the tumblr API world, but AFAIK the only way for me to accomplish the same task with the v2 API would be requiring the user to register an app and expose their Consumer oAuth Key publicly in order to use the /posts API. If anyone has any suggestions in that regard (perhaps there's another API call I'm overlooking? or it's perfectly safe to use the consumer oauth key in javascript) I would be most interested to hear them.

Thanks!
Reply all
Reply to author
Forward
0 new messages