Ralkage Giphy's API docs are kind of poor in general honestly. It's the main reason when I started looking into doing this kind of thing myself many moons ago I was planning to use Tenor only.

6 months later

Love. I finally got around to installing this at my forum. FYI for everyone, this is not compatible with fof/secure-https. With that extension installed the image breaks.

Hi this looks really good. You mention it requires flarum/markdown to work, what is that extension? I clicked on the link to it but there is no description of what it does?

    MartinJD flarum/markdown is one of the extensions that comes pre-installed with Flarum. It's just called "Markdown" in the admin panel, and enables formatting in posts with the markdown syntax. It can be used in addition or in place to bbcode.

    This extension just requires that you keep it enabled. I suppose that's because it inserts the image using markdown syntax in the post and nothing would be rendered if Markdown isn't enabled.

      clarkwinkelmann Does Flarum's Markdown extension embed the images on it's own or is it like an alias to bbcode's [img][/img] tag? I could replace the current syntax ![My Image](http://lint.to/image) with [img title="My Image"]http://link.to/image[/img] if Markdown uses bbcode.

        therealsujitk They're not aliases to each other, no, if a Flarum site has Markdown or BBCode disabled then any new posts using the disabled syntax will not render the formatting or embed images.

          MartinJD It's pretty much how it looks in the main post. The settings modal lets you add a Giphy API key.

          9 days later

          v1.4.9

          • Fixed abnormal width of Search button on some devices
          • Updated Giphy attribution mark to work on both light & dark theme
          • Compiled JS in production mode. Fixed #8 (Thanks @Ralkage for bringing this up!)

          Updating

          Use Bazaar or update manually with composer:

          composer update therealsujitk/flarum-ext-gifs

          Note: Make sure to disable and re-enable the extension after the update.

          2 months later
          16 days later

          I'm a little busy at the moment so I won't be able to get to this anytime soon, I'll try working on this sometime during the mid of next month. @jordanjay29, could you add the Incompatible tag to this extension for the time being. Thanks!

          • ctml replied to this.
            22 days later

            therealsujitk

            Good news is you can skip beta 14, and go straight to 15 🙂 Looking forward to having this one available.

            a month later

            v2.0.0

            • Added compatibility for v0.1.0-beta.15

            Updating

            composer update therealsujitk/flarum-ext-gifs
            2 months later

            @therealsujitk having issue with no passing API KEY into URL paramater? Have you seen that before?
            API KEY provided in configuration.

            url