Announcement

Collapse
No announcement yet.

Embed Tweet

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Embed Tweet

    How do you go about embedding tweets into posts.?

  • #2
    There is no way to do this at this time as far as I am aware. Maybe the Link content type works but I haven't tested it.

    Other option would be a custom BBCode, adding it to the Video BBCode (not really a proper solution) with custom XML, or using a third-party addon.

    I don't see a feature request to add Twitter Embed within the bug tracker.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API - Full / Mobile
    Vote for your favorite feature requests and the bugs you want to see fixed.

    Comment


    • #3
      Doesn't appear to work.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API - Full / Mobile
      Vote for your favorite feature requests and the bugs you want to see fixed.

      Comment


      • #4
        I found a bbcode but it does not appear to work on newer versions of 5.

        Comment


        • #5
          What is the BBCode?
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API - Full / Mobile
          Vote for your favorite feature requests and the bugs you want to see fixed.

          Comment


          • #6
            Log into your Admin CP go to Custom BB Codes on the side menu, expand it, and choose Add New Bb Code.

            On the next page enter the following:

            Title: Tweet
            BB Code Tag Name: tweet
            Replacement:

            Code:

            <blockquote class="twitter-tweet" lang="en"><p lang="en" dir="ltr"><a href="https://twitter.com/abc/status/{param}"></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
            Example: [tweet]642036152850083841[/tweet]
            Description: Embeds a Tweet
            Use Option: No
            Button Image: (Leave blank or find your own icon image)
            Remove Tag If Empty: YES
            All remaining Yes/No questions - also YES.

            And save the BB Code.

            Now in a post you can post something like

            [tweet]642036152850083841[/tweet]

            to embed a tweet.

            You find the number by finding the link to the tweet on twitter and taking the number from the link.

            For example the link to a tweet might be:

            Code:

            https://twitter.com/fox5ny/status/642037356162256896
            So in this case use:

            [tweet]642037356162256896[/tweet]

            To embed the tweet.

            Comment


            • #7
              This works for me

              Code:
              <blockquote class="twitter-tweet" data-lang="en"><p lang="en" dir="ltr"><a href="https://twitter.com/twt/status/{param}">Embedded Tweet</a></blockquote>
              <script src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
              Example:
              https://www.talknewsuk.com/forum/mis...502-tweet-test
              MARK.B | vBULLETIN SUPPORT

              TalkNewsUK - My vBulletin 5.6.3 Demo
              AdminAmmo - My Cloud Demo

              Comment


              • #8
                The above code works for me without modification as well.
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API - Full / Mobile
                Vote for your favorite feature requests and the bugs you want to see fixed.

                Comment


                • #9
                  The following BBcode works into the posts too. Tested on FireFox with Enhanced Tracking Protection at OFF.

                  https://www.vbulletin.org/forum/showthread.php?t=328058
                  Last edited by lange; Tue 9 Jun '20, 3:02am.

                  Comment


                  • #10
                    Originally posted by spiderweb View Post
                    Log into your Admin CP go to Custom BB Codes on the side menu, expand it, and choose Add New Bb Code.

                    On the next page enter the following:

                    Title: Tweet
                    BB Code Tag Name: tweet
                    Replacement:

                    Code:

                    <blockquote class="twitter-tweet" lang="en"><p lang="en" dir="ltr"><a href="https://twitter.com/abc/status/{param}"></blockquote> <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
                    Example: [tweet]642036152850083841[/tweet]
                    Description: Embeds a Tweet
                    Use Option: No
                    Button Image: (Leave blank or find your own icon image)
                    Remove Tag If Empty: YES
                    All remaining Yes/No questions - also YES.

                    And save the BB Code.

                    Now in a post you can post something like

                    [tweet]642036152850083841[/tweet]

                    to embed a tweet.

                    You find the number by finding the link to the tweet on twitter and taking the number from the link.

                    For example the link to a tweet might be:

                    Code:

                    https://twitter.com/fox5ny/status/642037356162256896
                    So in this case use:

                    [tweet]642037356162256896[/tweet]

                    To embed the tweet.
                    This works for me, but with a slight hiccup: The rest of the post, including the Edit button below the post, gets linked to the Twitter post. This means I cannot as a moderator edit the post afterwards, since it just sends me to Twitter. Sounds like something isn't properly terminated.

                    Comment

                    Related Topics

                    Collapse

                    Working...
                    X