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.
GIFs
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 
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.
jordanjay29 Alright, then I'll leave it as is. Thanks!
clarkwinkelmann thanks for the explanation Clark!
Does anyone have this running on their forum so I could take a look?
MartinJD It's pretty much how it looks in the main post. The settings modal lets you add a Giphy API key.
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.
@therealsujitk Possible to update this extension for the Beta 14 please?
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!
Good news is you can skip beta 14, and go straight to 15 Looking forward to having this one available.
- Edited
v2.0.0
- Added compatibility for v0.1.0-beta.15
Updating
composer update therealsujitk/flarum-ext-gifs
So cool. Thanks for this one!
@therealsujitk having issue with no passing API KEY into URL paramater? Have you seen that before?
API KEY provided in configuration.
- Edited
Trolololodev I've submitted a PR to get this extension updated to beta 16; I use this extension on my personal forums so it's a necessity at this point
Paging @therealsujitk