JavaScript is required to use Bungie.net

Group Avatar

BungieNetPlatform

"Updates, discussions, and documentation of the BungieNetPlatform API."

Request Join
originally posted in:BungieNetPlatform
Edited by dazarobbo: 8/15/2014 2:30:49 PM
11

Wanted: Post Widget

I'm currently building a new userscript which extends the current BBCode formatting of the site. So far I've got things like strikethrough, code, imgur album embedding, lists, and so on. One of the other things I'm currently adding is a [post] tag, which lets you specify a post id and embeds the remote post within your own post. What I would like to have is a little widget, something similar to [url=http://support.twitter.com/articles/20169559-embedding-a-tweet-on-your-website-or-blog]what Twitter has for Tweets[/url]. So given [url=http://www.bungie.net/Platform/Forum/GetPostAndParent/59939429/?showbanned=]a response for GetPostAndParent[/url], it should display at the very least: 1. The author and a link to their profile 2. The post body 3. The post date (creation date) 4. A link to the post in context Anything else would probably be superfluous. It might be a good idea to make it collapsible to only show x lines of body text until it's interacted with. The widget should be a component created with Javascript (ie. a function) so I can put it in a userscript, and it should take, at the very least, the post id of the post to be embedded. It should immediately return a string of HTML/jQuery object which has some uniqueness (ie. a div with a data-embedded-post-id attribute) to be inserted into the page, make the request to the bungienetplatform for the post, and then update the unique element on the page using the data from the response once it arrives. And be fault tolerant. Full credit to the author of the widget of course.

Posting in language:

 

Play nice. Take a minute to review our Code of Conduct before submitting your post. Cancel Edit Create Fireteam Post

You are not allowed to view this content.
;
preload icon
preload icon
preload icon