JavaScript is required to use Bungie.net

서비스 알림
정기 점검으로 내일 데스티니 가디언즈를 일시적으로 플레이할 수 없습니다. 여기를 클릭해 최신 데스티니 서버 및 업데이트 상태를 확인하시기 바랍니다.

#Community

원본 게시물 출처:BungieNetPlatform
작성자: 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.

게시물 작성 언어:

 

다른 사용자들을 존중해주세요. 게시물을 제출하기 전에 한 숨 돌리고 운영 정책을 검토하세요. 취소 수정 화력팀 생성하기 게시

회원님은 해당 콘텐츠를 볼 수 없습니다.
;
preload icon
preload icon
preload icon