As was foretold, we've added advertisements to the forums! If you have questions, or if you encounter any bugs, please visit this thread: https://forums.penny-arcade.com/discussion/240191/forum-advertisement-faq-and-reports-thread/
We're funding a new Acquisitions Incorporated series on Kickstarter right now! Check it out at https://www.kickstarter.com/projects/pennyarcade/acquisitions-incorporated-the-series-2

Embedding tweets would be cool

DusdaDusda is ashamed of this postSLC, UTRegistered User regular
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
AbracadanielTychoCelchuuu

Posts

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

    AbracadanielDusdacaptainkT4CT
  • 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.

    Abracadaniel
  • AbracadanielAbracadaniel Registered User regular
    YUSSSSSS

  • AbracadanielAbracadaniel Registered User regular
    edited September 2013

    Abracadaniel on
    Antimatter
  • 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.
    T4CT
  • IcyLiquidIcyLiquid Two Steaks Montreal, QuebecAdministrator, Vanilla Staff vanilla
    Better late than never right

    DusdaT4CTcaptaink
  • 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.jpgsteam~tinythumb.png
  • 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.

    Zilla360
  • 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.