sheltermanager

Open full view…

Broken rabbit view

lisa zorn
Thu, 08 Jul 2021 17:37:46 GMT

Hi ASM! I was testing website integration and put an iframe in the description of this animal and it's broken their view (so I can't fix): https://us15b.sheltermanager.com/animal?id=495 Would you mind fixing? How should I handle this in the future? (my shelter is nl2089) thanks!

robinrt
Fri, 09 Jul 2021 08:13:22 GMT

Fixed now. Very interesting that it allowed you to do that and break things! I'll raise an issue to investigate that.

lisa zorn
Sat, 10 Jul 2021 20:19:16 GMT

Thank you!!

lisa zorn
Sat, 31 Jul 2021 22:16:51 GMT

Hi again - shoot, I did it for this bunny as well: https://us15b.sheltermanager.com/animal?id=423 (sorry!!) Do you think it's possible to strip the html from description when you render the shelter manager page for the animal?

robinrt
Sun, 01 Aug 2021 10:58:23 GMT

What's happening is that any entities are being encoded when stored in the database, but the front end is decoding them before putting them in the box. We do this mainly for foreign languages where unicode code points are being used. I've fixed your rabbit now. Out of interest, why are you putting iframes and HTML content in a description field? Those things would be better added to any templates you are using to output animal pages.

lisa zorn
Tue, 03 Aug 2021 01:59:53 GMT

It's because our social media manager posts lots of content (mainly videos) to facebook so in the past, we have embedded the facebook videos to the rabbit description. It seems like we should upload the video directly to shelter manager instead...

lisa zorn
Tue, 03 Aug 2021 02:05:59 GMT

Aaah and now i see i can't upload video media to shelter manager. Hmm... What's the recommended way to share video content?

lisa zorn
Tue, 10 Aug 2021 02:41:39 GMT

Argh I'm sorry - one more from another volunteer: https://us15b.sheltermanager.com/animal?id=495

robinrt
Tue, 10 Aug 2021 08:17:18 GMT

Ok, here is the query to fix these yourself at Settings->SQL Interface: ``` UPDATE animal SET AnimalComments = '' WHERE ID = X ``` Substitute X for the animal's ID number - it's in the address bar when you view it, eg: animal?id=1234

lisa zorn
Tue, 10 Aug 2021 19:17:33 GMT

Got it, thank you!!