Jump to content

Problem with Giphy. can't view GIF.


pequeno

Recommended Posts

Posted

If I activate Giphy, when inserting a GIF this code is inserted in the image:
"src = "https://www.site.com/forum/applications/core/interface/js/spacer.png"

It does the same in other attached images that I insert in the message.
Can view attached images bit GIF no.

<p>
	<img alt="Menu_GIF.png" class="ipsImage ipsImage_thumbnailed" data-fileid="27061" data-loaded="true" data-ratio="14.32" data-src="https://www.site.com/forum/uploads/monthly_2020_02/Menu_GIF.png.f8fd6d35310a5671f47e05e694ace81c.png" data-unique="pb4f48te5" src="https://www.site.com/forum/applications/core/interface/js/spacer.png" style="height: auto;" width="482">
</p>

<p>
	<img alt="happy squeal GIF" data-loaded="true" data-ratio="75.47" data-src="" src="https://www.site.com/forum/applications/core/interface/js/spacer.png" style="height: auto;" title="happy squeal GIF" width="265">
</p>

952527058_captureNOGIF.png.822445e2574b91601a8c0f39eb2a8cbe.png

Posted

That's coming from lazy loading but shouldn't be an issue. What is the actual problem you are facing? Is the gif not showing in the editor when it inserts? Are you seeing any javascript errors on the page?

Posted
50 minutes ago, bfarber said:

Is the gif not showing in the editor when it inserts?

Can view GIF when insert in editor but no when save topic.

52 minutes ago, bfarber said:

Are you seeing any javascript errors on the page?

Non javascript error.

Only can view this message in the browser developers option:

advertGIF.png.d0717552c452668b5f85b01b8b8b6f62.png

But I can view this advert without having activated Giphy too.

Posted

Do you get the same issue with the default theme and with third party plugins disabled?

Do you have a link to the page? It sounds like lazy loading is not firing properly for some reason, or you may have blacklisted giphy URLs or something.

Posted
4 hours ago, bfarber said:

Do you get the same issue with the default theme and with third party plugins disabled?

Yes

 

4 hours ago, bfarber said:

Do you have a link to the page?

I will send it to you by private message

Posted

It appears the src is getting stripped when you submit the post. I would bet you have URL whitelisting enabled and don't have the giphy URL(s) in the list, or you have URL blacklisting enabled and do have the giphy URL(s) in the list, or you are not allowing remote images, or something along those lines.

Feel free to submit a ticket if you can't figure it out, but it looks like some sort of configuration issue.

Posted
3 hours ago, bfarber said:

you are not allowing remote images

Thank you. Allow remote images solve the problem, but... Is it not possible to display GIFs without allowing remote images to be loaded in posts?

Posted
3 hours ago, bfarber said:

Giphy images are remote images, so...no. If you want people to be able to embed giphy images, you will need to allow remote images.

Thanks, I understand, but I think those two options should be compatible.

Posted
22 hours ago, pequeno said:

Thanks, I understand, but I think those two options should be compatible.

How?  You want to download the entire Giphy on your server ?  (hint : I don't think Giphy would allow it, and the volume might break your server)

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...