HTML code added to group Discussion Header : code is dropped.

lornawebber
@lornawebber
6 years ago
334 posts
I've added some HTML into a discussion header, to provide a countdown timer . It works fine when I've added it to my own group discussion and to another user's group discussion, but I have been trying to add very similar code for a non-Admin Group owner, and although the code can be pasted into the discussion header, on clicking 'update', the code seems to be dropped.

This is the discussion,
https://pmp-art.com/tam-tam/group_discuss/666/new-beginnings-art-challenge-dec-2017-jan-2018

I can't insert the code I'm adding here but it's shown in the images attached. I'm an HTML idiot and this code was generated by the timeanddate .com website.

Very similar code worked fine on the discussion https://pmp-art.com/library/group_discuss/692/pmp-monthly-challenge-dec-jan2018. The only difference was the timezone on which the clock was based and the end date.
Sorry to be dim, but have you any idea why one works and the other gets dropped (no error message)?

updated by @lornawebber: 04/14/18 05:29:00AM
lornawebber
@lornawebber
6 years ago
334 posts
I can insert the same code in a comment on the discussion and it works perfectly, showing a countdown clock as it should.

If I paste the code in the discussion header when it is in normal display mode, the code is visible in the header (as a block of HTML) when I confirm the update. If I then update the header again, the countdown clock is visible in the header so the code has at that stage been recognised and actioned, but on confirming the update, the clock is not shown. Looking again at the code in the header, that bit of HTML has disappeared.
paul
@paul
6 years ago
4,326 posts
The code you are inserting is inside an iframe tag so I'm guessing the when you insert it into a user profile, that profile quota isn't set up to use iframes, so the code is being stripped out.
Checkout this documentation on how to set up your site to use iframes - https://www.jamroom.net/the-jamroom-network/documentation/howto/3365/howto-embed-an-iframe-into-a-page
hth


--
Paul Asher - JR Developer and System Import Specialist
lornawebber
@lornawebber
6 years ago
334 posts
Thank you so much, Paul. I didn't know where to look, and of course it worked for me as an admin user. There was no error message "This iframe is not allowed".
I'll go and make the necessary permission changes.

Tags