The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Embedding tweets would be cool

DusdaDusda is ashamed of this postSLC, UTRegistered User regular
edited January 2013 in H.Q. Reception Desk
People post tweets in quotes or just link to them directly quite a bit, especially in newsy threads. It would be cool if they could just be embedded directly, like YouTube. If a users posts a link to a tweet like so:



Twitter has simple embedding markup Vanilla could use that looks like this:
<blockquote class="twitter-tweet">
    <p>Limiting the sim city beta to one hour sessions is fucking evil.</p>
    &mdash; cwgabriel (@cwgabriel) <a href="https://twitter.com/cwgabriel/status/295332059986145280">January 27, 2013</a>
</blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>

Or you can use their JSON api to get the tweet like this: https://api.twitter.com/1/statuses/oembed.json?id=295332059986145280&omit_script=true.

Which makes an iframe that looks like this:

DYOkNL5.png

Widget.js accommodates for desktop and mobile browsers, and is responsive to it's container. There's more stuff about it here.

and this sig. and this twitch stream.
Dusda on

Posts

  • IcyLiquidIcyLiquid Two Steaks Montreal, QuebecAdministrator, Vanilla Staff vanilla
    Love this idea. You can bet we will be adding it.

  • AntimatterAntimatter Devo Was Right Gates of SteelRegistered User regular
    I believe @Smart Hero suggested this at one point, and will be happy to see this.

  • AbracadanielAbracadaniel Registered User regular
    YUSSSSSS

  • AbracadanielAbracadaniel Registered User regular
    edited September 2013

    Abracadaniel on
  • DusdaDusda is ashamed of this post SLC, UTRegistered User regular
    @IcyLiquid yay, you guys implemented it! Thank you!

    and this sig. and this twitch stream.
  • IcyLiquidIcyLiquid Two Steaks Montreal, QuebecAdministrator, Vanilla Staff vanilla
    Better late than never right

  • The Dude With HerpesThe Dude With Herpes Lehi, UTRegistered User regular
    Is there something special you need to do for it to work?



    Doesn't work. What am I missing?

    Steam: Galedrid - XBL: Galedrid - PSN: Galedrid
    Origin: Galedrid - Nintendo: Galedrid/3222-6858-1045
    Blizzard: Galedrid#1367 - FFXIV: Galedrid Kingshand

  • EndEnd Registered User regular
    looks like it worked to me

    it may help to try clearing your cache?

    I wish that someway, somehow, that I could save every one of us
    zaleiria-by-lexxy-sig.jpg
  • The Dude With HerpesThe Dude With Herpes Lehi, UTRegistered User regular
    edited August 2013
    Oh wait, now it worked, I didn't do anything. Weird.

    EDIT: yeah there's some weirdness with it. Like...when I first post, it just shows the link, if I reload it shows the tweet.

    If I edit a post with the tweet in it, it just shows up as a link again when I save the edit, but if I reload again, it will show the tweet.

    The Dude With Herpes on
    Steam: Galedrid - XBL: Galedrid - PSN: Galedrid
    Origin: Galedrid - Nintendo: Galedrid/3222-6858-1045
    Blizzard: Galedrid#1367 - FFXIV: Galedrid Kingshand

  • DusdaDusda is ashamed of this post SLC, UTRegistered User regular
    Yea, it only kicks in during page load, not when you first post it; it basically scours the page for twitter links. No worries though, everyone that sees your post will see it proper every time.

    and this sig. and this twitch stream.
  • The Dude With HerpesThe Dude With Herpes Lehi, UTRegistered User regular
    That makes sense.

    Steam: Galedrid - XBL: Galedrid - PSN: Galedrid
    Origin: Galedrid - Nintendo: Galedrid/3222-6858-1045
    Blizzard: Galedrid#1367 - FFXIV: Galedrid Kingshand

  • crwthcrwth THAT'S IT Registered User regular
    hey i just did a little vine integration and the video autoplays, albeit with no sound

    dunno if there's a way to not have it autoplay

    EzUAYcn.png
  • IcyLiquidIcyLiquid Two Steaks Montreal, QuebecAdministrator, Vanilla Staff vanilla
    I think its good how it is. Having the video autoplay with no sound is kinda like having a gif.

  • crwthcrwth THAT'S IT Registered User regular
    oh ok we were just concerned cause we didn't know if it would sap bandwidth

    EzUAYcn.png
  • agilemaniaagilemania Lyon EstatesRegistered User regular
    FYI if you are using any kind of extension that blocks external requests (such as Disconnect for Chrome) then this won't work. You have to whitelist the site or disable the extension to get it to work.

    Obviously this is working as intended all around, just wanted to give a heads-up.

Sign In or Register to comment.