Skip to main content

View Diary: Embedding Tweets in 5 easy steps (83 comments)

Comment Preferences

  •  The front pagers have a special form (7+ / 0-)

    that makes our own DK format for tweets.

    The reason for this is that the twitter-embedded ones have created some problems for users on certain browsers and devices. When we use the native twitter format on the front page, it breaks the whole site for those users. :-(

    It's not such a big problem if it happens in comments, but it will be interesting to see if those issues still exist with the current browser editions.

    Anyone with a problem, let me know with a reply to this comment (with browser info) or with a message at helpdesk.

    Fry, don't be a hero! It's not covered by our health plan!

    by elfling on Tue Apr 23, 2013 at 10:52:04 AM PDT

    [ Parent ]

    •  Thank you, mystery solved (2+ / 0-)
      Recommended by:
      Angie in WA State, DeadHead

      This is just a test from - view source to see if it this is the format

      I guess buying up a dying industry is cheap next to buying up a dying political political party, Kochs.

      @LOLGOP via TweetDeck
      I hope there are no    rules against using the smaller format or if will cause problems  - if this works (is smaller) that is
      •  looks like you'll want to insert that code (3+ / 0-)
        Recommended by:
        Eric Nelson, Kombema, DeadHead

        into a text box, blockquote or table to get the border effect.


        "I like paying taxes...with them, I buy Civilization"

        by Angie in WA State on Tue Apr 23, 2013 at 11:48:55 AM PDT

        [ Parent ]

        •  Trying to replicate the front-pager (2+ / 0-)
          Recommended by:
          nomandates, Eric Nelson

          format, by copying the exact html used does not work. Inline blockquote styles that would result in that fp style being duplicated exactly are non-functional for us.

          I was obsessed with this awhile back. MB finally told me it was a special deal for the front pagers.




          Somebody has to do something, and it's just incredibly pathetic that it has to be us.
          ~ Jerry Garcia

          by DeadHead on Tue Apr 23, 2013 at 01:32:50 PM PDT

          [ Parent ]

          •  It should work if you have all the code (3+ / 0-)
            AP finally scooped the NY Post.
            @AndyCobb via web
            Of course I haz all the perms.

            <div style="margin:14px auto; width:400px; font-size:12px;background-color: #eeeeee; border: 1px solid #999999;padding:5px;"><a href="https://twitter.com/#!/AndyCobb/status/326745313891196928"><img src="http:/ / a0.twimg.com/profile_images/422769864/Photo_9_normal .jpg" style="float:left;padding:0px;margin: 0px 5px 5px 0px; width:48px; height:48px;"><a>AP finally scooped the NY Post.<br><span style="color:#555555;font-style:italic;">— <a href="https://twitter.com/#!/AndyCobb/status/326745313891196928"> @AndyCobb </a> via web</span><div style="clear:both;"></div></div>

            Try me in helpdesk if that doesn't work.

            Fry, don't be a hero! It's not covered by our health plan!

            by elfling on Tue Apr 23, 2013 at 05:40:04 PM PDT

            [ Parent ]

            •  I based my statement above on... (1+ / 0-)
              Recommended by:
              Eric Nelson

              Actually lifting the code out of a night owls thread awhile back. I couldn't get it to work then.

              But, I now see your "evil twin" Zachary's comment below. So... ;)




              Somebody has to do something, and it's just incredibly pathetic that it has to be us.
              ~ Jerry Garcia

              by DeadHead on Tue Apr 23, 2013 at 09:22:02 PM PDT

              [ Parent ]

            •  Also, elfling (1+ / 0-)
              Recommended by:
              Eric Nelson

              I had created a helpdesk topic on this awhile back, but closed it after MB had confirmed the special nature of this type of tweet embedding.

              I don't recall off hand how informative it would in fact be for your purposes, but I just wanted to let you know there was indeed one made by me regarding this issue.




              Somebody has to do something, and it's just incredibly pathetic that it has to be us.
              ~ Jerry Garcia

              by DeadHead on Tue Apr 23, 2013 at 09:35:01 PM PDT

              [ Parent ]

              •  Thanks (2+ / 0-)
                Recommended by:
                Eric Nelson, DeadHead

                Sometimes they get lost in the crush.

                We are working on a new comment editor now, so I'll bring up the option of making something in this format accessible to y'all.

                Fry, don't be a hero! It's not covered by our health plan!

                by elfling on Tue Apr 23, 2013 at 09:48:05 PM PDT

                [ Parent ]

                •  Thanks... (1+ / 0-)
                  Recommended by:
                  elfling

                  It's only because the DK style is so damn SUPERIOR to the native Twitter embed style that many of us want it.

                  The Twitter ones seem to add a lot of load time to pages, from what I can tell, as they have to go and pull a bunch of the extra functions/retweet counts and whatnot from Twitter itself via the scripts, I guess.

                  Not so with DK version...lean, concise, and pretty.

                  What more could you want in an embed? :)




                  Somebody has to do something, and it's just incredibly pathetic that it has to be us.
                  ~ Jerry Garcia

                  by DeadHead on Wed Apr 24, 2013 at 02:56:09 AM PDT

                  [ Parent ]

          •  Let's give this a whirl (3+ / 0-)

            Interesting. You're correct, it gets eaten without the special sparkly magic.

            I'll see about making this accessible more generally.

            (elfling's evil twin)

    •  What I would give to be able to do the same (3+ / 0-)

      Thing.

      I love the fp style embedded tweets. They're lean and efficient.

      When writing diaries that focus on a series of tweets, the Twitter style becomes cumbersome. No real control over size.

      Please consider creating a special blockquote style, if possible, that would be usable for us common folk. :)




      Somebody has to do something, and it's just incredibly pathetic that it has to be us.
      ~ Jerry Garcia

      by DeadHead on Tue Apr 23, 2013 at 01:40:24 PM PDT

      [ Parent ]

Subscribe or Donate to support Daily Kos.

Click here for the mobile view of the site