Announcement

Collapse
No announcement yet.

Mastodon embed BBCode

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Mastodon embed BBCode

    Now that Mastodon is gaining a little traction as a Twitter alternative, does anyone have a BBCode for embeds?

    #2
    Do they provide embed code? Can you post a sample embed code?
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      Code:
      <iframe src="https://mstdn.party/@Amishsupermodel/109558960661948020/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe>

      Comment


        #4
        Their embed code is not Responsive. So you'd have to explicitly set the desired width and height of the iframe. Due to this, the embedded post may display scrollbars.

        Here's the Replacement code:

        HTML Code:
        <iframe src="{param}/embed" class="mastodon-embed" style="max-width: 100%; border: 0" width="400" allowfullscreen="allowfullscreen"></iframe>
        Usage:

        [mastodon]https://mstdn.party/@Amishsupermodel/109558960661948020[/mastodon]

        You basically just put the post URL (not embed URL) inside the BBCode tag. And the BBCode tag will just append /embed in the URL and use it in the iframe tag.
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        Comment


          #5
          Thanks, Glenn. Enjoy the coffee.

          Comment


            #6
            Thanks!

            National Coffee Day GIF
            Helpful? Donate. Thanks!
            Buy me a coffeePayPal QR Code
            Fast VPS Host for vBulletin:
            A2 Hosting & IONOS

            Comment

            Users Viewing This Page

            Collapse

            There is 1 user viewing this forum topic.

            • Guest Guest

            Latest Posts

            Collapse

            Working...
            X
            Searching...Please wait.
            An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

            Please push the back button and reload the previous window.'
            An unexpected error was returned: 'Your submission could not be processed because the token has expired.

            Please push the back button and reload the previous window.'
            An internal error has occurred and the module cannot be displayed.
            There are no results that meet this criteria.
            Search Result for "|||"