solved iframe validation

Ceri
Ceri
@adolygwr
9 years ago
370 posts
Cannot get google book embeds to work for non logged in users. I have added books.google.com to allowed domains BUT this only allows logged in viewers to see the embed. Can't understand why the views should be different :(


--
Ceri Shaw - AmeriCymru

updated by @adolygwr: 12/04/15 01:02:11AM
derrickhand300
@derrickhand300
9 years ago
1,353 posts
Did you apply the settings to ALL quotas?
michael
@michael
9 years ago
7,715 posts
It shouldn't be different. Can you give me some steps to setup? Where are you posting it to, a blog, a site builder widget, any important info like is the user an admin user, or not allowed to use the iframer module etc..
Strumelia
Strumelia
@strumelia
9 years ago
3,603 posts
By the way Ceri, I loved your very 'succinct' post on the Ning FB page yesterday. Nailed it.


--
...just another satisfied Jamroom customer.
Migrated from Ning to Jamroom June 2015
Ceri
Ceri
@adolygwr
9 years ago
370 posts
Strumelia:
By the way Ceri, I loved your very 'succinct' post on the Ning FB page yesterday. Nailed it.

lol...I wasn't minded to expand, expound and exposit :)


--
Ceri Shaw - AmeriCymru
Ceri
Ceri
@adolygwr
9 years ago
370 posts
michael:
It shouldn't be different. Can you give me some steps to setup? Where are you posting it to, a blog, a site builder widget, any important info like is the user an admin user, or not allowed to use the iframer module etc..

I am referring to a Ning page which was recently migrated. I am looking to repair it and give it a home in a group BUT the centerpiece of the page is a books.google.com embed which does not appear for logged out users. I added books.google.com to Allowed Domains and after that it started to appear when I am logged in, but not otherwise. Here are some comparative screenshots:-


--
Ceri Shaw - AmeriCymru
Ceri
Ceri
@adolygwr
9 years ago
370 posts
I should add that I can see the embed whether I am logged in as the admin user or with my other non admin account but NOT when logged out.


--
Ceri Shaw - AmeriCymru
michael
@michael
9 years ago
7,715 posts
Good explanation, bit difficult to use as steps to setup here with though. :)

I did manage to find the page in the screenshots I think:
Your-site.com/page/welsh-christmas-ghost-stories

(not sure if you want to keep your domain name private, so not including it here)

I was able to see the iframe while not logged in. Does that mean you've fixed the issue, or that I was on the wrong page?

--edit--
I think I've managed to work out the issue, looking into it now.
updated by @michael: 12/01/15 09:56:52PM
michael
@michael
9 years ago
7,715 posts
I think the issue is you dont have 'iframe' as an "allowed HTML tags" for the profile that that user is in.

Go to:
ACP -> CORE -> SYSTEM CORE -> QUOTA CONFIG -> allowed HTML tags

and add ',iframe' to the list of allowed html tags so it looks something like this:
span,strong,em,a,b,u,i,p,div,br,img,h1,h2,h3,h4,pre,hr,ul,ol,li,sub,sup,table,tbody,th,tr,td,div.style,iframe

The logged in users being able to see it would be the owner of the profile and the admin user.

The owner of the profile can see their own things.
The admin user can see everything.

I think this is what is happening, if you can still sett the issue after adding 'iframe' then I'll need specific steps to setup to investigate further.
Ceri
Ceri
@adolygwr
9 years ago
370 posts
Many thanks Michael....that seems to have done the trick....I added iframe and style . Cleared up the problem with iframes, div and hr formatting :)


--
Ceri Shaw - AmeriCymru

updated by @adolygwr: 12/02/15 07:16:25PM
michael
@michael
9 years ago
7,715 posts
Great news. Thanks for the update. :)

That wasn't an obvious one. I thought it was a bug at first.
Ceri
Ceri
@adolygwr
9 years ago
370 posts
It seems I spoke too soon. I must confess I am baffled by this. Below are comparative screenshots of a blog I posted ( cut and pasted from my Ning site ) a half an hour ago. I thought the problem had somehow gone away earlier today but once again the bulk of the styling cannot be seen by a non logged in viewer. I have tested this on two other machines in the house and on various browsers just to be sure. The problem with iframes HAS been resolved BUT I still have the issue of blog posts appearing completely differently to logged in users and casual browsers. The first screenshot below is a view of the post as it should appear and DOES if you view it as a logged in user. I have tested this with 2 admin accounts and the user account which owns the blog. I have also tested this with a logged in user who is NOT an admin OR the post owner. That user was able to see the styling ok.

In the second screenshot you can see how the post appears to a non logged in viewer ( here anyway ). It is minus radius and hr styling and the css nav bubbles are totally absent.


--
Ceri Shaw - AmeriCymru

updated by @adolygwr: 12/03/15 08:12:32PM
Ceri
Ceri
@adolygwr
9 years ago
370 posts
Here is the url in question:- http://americymrunet.jamroomhosting.com/americymru/blog/4193/glyndwrs-dream-by-john-good-part-1

I should add that I also cannot change the owner of this post. The title will not appear in the 'change owner' selection field?


--
Ceri Shaw - AmeriCymru
michael
@michael
9 years ago
7,715 posts
Lets start a new thread on this, its a different topic. Others who come here later looking for an answer to "iframe validation" are not going to have this new problem.

Looks like the new problem is related to CSS being stripped out. I can see the PART I and PART II links there, just they are in white and have not surrounding color.