XF 2.2 GIPHY integration, image proxy bypass and audio uploads

GIPHYBrandGuide.jpgHave you been sitting there thinking "I just wish XenForo 2.2 had a little bit more awesome"? Yeah so did we. So here's a few extra features that we're introducing in XenForo 2.2 Beta 2.

Noice Thats Nice GIF

GIPHY integration​

Everybody loves GIFs, right? Well, maybe not everybody but personally we love them... ok ok... maybe it's just @Chris D that loves them. Every day is a GIF (with a hard G) day for Chris.

excited happy birthday GIF
happy dance GIF by SpongeBob SquarePants
carlton dance GIF

So in XF 2.2 Beta 2 we're introducing GIPHY support. It can be enabled from this option in your Admin control panel by populating it with an API key you can obtain from GIPHY.

xenforo.com_community_admin.php_options_groups_messageOptions_.png

Once enabled, we add a handy new GIF button to the rich text editor. When you click the button you will get a list of the latest trending GIFs. But you can also search. As you scroll through the list of GIFs we automatically load more results in. We have an element of lazy loading here too whereby there is initially a still thumbnail version of the GIF loaded in first until just before the GIF scrolls into view then we load the animated version in.


That feeling when you find the perfect GIF:

Male GIF

But... wait... most of you have the image proxy enabled, right? Won't all these GIFs be cached locally and use up your precious disk space?

married with children wow GIF

Well, not necessarily...

Image proxy bypass​

For the most part, the image proxy is most useful for its ability to ensure that content served from non-HTTPS sites do not generate "insecure content warnings" when they are loaded on your (hopefully) HTTPS secured site.

Or, such as the GIPHY example above, you may simply want to avoid caching images from specific sites due to concerns about the disk space required or concerns that they may exceed the image proxy limits.

So we're also adding an option to bypass the image proxy either for all HTTPS-requests - where the effects of proxying are somewhat mooted - or specific domains.

proxy_bypass_01.png

If you choose to bypass specific domains, any domain - and its subdomains - will be bypassed. If you need a bit more control, you can write the domain as a regular expression.

danny devito wow GIF by QuickBooks

Audio uploads​

In XF 2.1 we added video upload support and so it seems only reasonable that we should consider adding audio upload support at some point.

It might just be a small coincidence that it helps us solve a little issue arising from the fact that XFMG supports audio uploads and our attachment mirroring feature was struggling to mirror audio attachments from the attachment system into the media gallery.

Coincidence Reaction GIF

If you already have video uploads enabled you do not have to do anything extra. Rather than adding extra options and permissions we made it so that the options and permissions related to video uploading now also include audio attachments by default.

Whatever sounds you decide to upload to your forum, we hope you enjoy this new feature. Here's a montage of some of our favourite sounds:



lionel richie hello GIF

Speaking of favourites, why don't you give the new GIPHY integration a whirl and post your favourite GIFs below!

Thats Nice Reaction GIF by MOODMAN


Most GIFs joyously curated by Lily Deeming, aged 7 (nearly 8)
 

Kevin

Well-known member
There is no drive space concerns. Or any relevant user limits.

They are hot linked from GIPHY and not uploaded to your server.

There is potential for some disk usage if you have the image proxy enabled but that’s basically why we added the image proxy bypass option.

We have the image proxy enabled here, and allow giphy.com to bypass it - all these GIFs today - not a single byte stored on our server.

Part of this HYS includes a change that lets you bypass the image proxy for certain domains, so disk usage shouldn't be an issue

michael richards yes GIF
 

sbj

Well-known member
Probably not a lot of work no but we’re not going to do it unless the majority of browsers support it.

There is a suggestion opened already by @sbj if you want to add some thoughts there.
Of course in the priority list this might be not the most important one. Just, in those cases where the browser support is not there, can't it fallback to a safe way and display them as attachments? Just an idea.

Here is the suggestion btw. for people who want to vote for it: https://xenforo.com/community/threa...s-of-audio-files-to-aac-webm-wma-flac.183731/

Also, based on the link of aivaras it seems to me that 3 out of the 4 suggested extentions are well supported across all platforms. Only wma seems to be not relevant at all. So, maybe a partial implementation? :)

Also, here is the other suggestion for people who do want to enable support for audio files but not for video files. Right now it is not possible to differentiate them. https://xenforo.com/community/threads/separate-video-and-audio-options-and-permissions.183745/
 

Serpius

Member
Of course in the priority list this might be not the most important one. Just, in those cases where the browser support is not there, can't it fallback to a safe way and display them as attachments? Just an idea.

Here is the suggestion btw. for people who want to vote for it: https://xenforo.com/community/threa...s-of-audio-files-to-aac-webm-wma-flac.183731/

Also, based on the link of aivaras it seems to me that 3 out of the 4 suggested extentions are well supported across all platforms. Only wma seems to be not relevant at all. So, maybe a partial implementation? :)

Also, here is the other suggestion for people who do want to enable support for audio files but not for video files. Right now it is not possible to differentiate them. https://xenforo.com/community/threads/separate-video-and-audio-options-and-permissions.183745/

Why not use the 'Insert Media' option if there is a lack of browser support?

You can clearly see Giphy listed in the Approved sites. (#6)

 

sbj

Well-known member
Why not use the 'Insert Media' option if there is a lack of browser support?

You can clearly see Giphy listed in the Approved sites. (#6)

I'm confused. I think you misunderstood. I was talking about the new audio uploads, not about Giphy.
 

sbj

Well-known member
Exactly, that was so annoying. Yet it was endurable for the time being. I would not have guessed we get this nice feature which solved that problem and gives us instant gif reactions.


Expeditie Robinson Thank You GIF by RTL
 
Top