Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
pequeno Posted February 3, 2020 Posted February 3, 2020 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>
bfarber Posted February 3, 2020 Posted February 3, 2020 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?
pequeno Posted February 3, 2020 Author Posted February 3, 2020 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: But I can view this advert without having activated Giphy too.
bfarber Posted February 4, 2020 Posted February 4, 2020 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.
pequeno Posted February 4, 2020 Author Posted February 4, 2020 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
bfarber Posted February 5, 2020 Posted February 5, 2020 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.
pequeno Posted February 5, 2020 Author Posted February 5, 2020 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?
bfarber Posted February 6, 2020 Posted February 6, 2020 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.
pequeno Posted February 6, 2020 Author Posted February 6, 2020 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.
b416 Posted February 7, 2020 Posted February 7, 2020 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)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.