JR Embed and Iframe control

Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
I had to shut off the iframe checker because it was not allowing youtube video embeds or maps, even though those youtubes were indexed on the site.

I also had those domains listed as "good" in the "checker".

This wasn't happening before, so I'm not sure what caused it, perhaps one of the recent updates? I just tested Npages, discussions, group discussion, and blogs and the problem was everywhere.

Shutting off the checker solved it but of course reduced security.


--

Ken Rich
indiegospel.net

updated by @ken-rich: 01/01/15 03:35:25AM
brian
@brian
11 years ago
10,148 posts
I'm not aware of any issues with it - where on the site were you trying to embed an iframe?

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
Hi Brian,

As I said -
Ken_Rich:
I just tested Npages, discussions, group discussion, and blogs and the problem was everywhere.

The last time I had a similar problem was when I inadvertently left scr out of my allowed HTML. However, it's present now (see below) so I don't understand what's wrong.

span,strong,em,a,b,u,i,p,div,br,img,h1,h2,h3,h4,pre,hr,ul,ol,li,sub,sup,iframe,src,no scrolling


--

Ken Rich
indiegospel.net
brian
@brian
11 years ago
10,148 posts
Can you post the actual iframe code you are trying to embed so I can check it here? Put it inside [ code ] tags or it's not going to come through - i.e.:

[ code ]
your code here
[ /code ]

WITHOUT spaces around the word "code" (no spaces in the tags at all)

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
11 years ago
10,148 posts
Just tested here embedding a YouTube video to my timeline and it all worked, so it's possibly something with the actual iframe code you are using.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
I couldn't even embed a youtube from the indexed ones in the tool, and it makes the code - not me.

Here is one I was using -
[jrEmbed module="jrYouTube" id="1368"]

Also note, as soon as I disabled the iframe module - I was able to embed again without the iframe not allowed message showing instead of the content.


--

Ken Rich
indiegospel.net

updated by @ken-rich: 11/24/14 06:37:35PM
michael
@michael
11 years ago
7,772 posts
Seams like a conflict between the iframe module and the embed/youtube combo.

Thanks, I'll check it out.

-- edit --
To reproduce: enable the iframe module then login as a user, not the admin user. use jrembed to embed a youtube video in a profile page, eg blog.

Expected result:
Youtube will show.

Actual result:
an orange notice shows with "this iframe is not allowed" in place instead.
updated by @michael: 11/24/14 11:36:37PM
michael
@michael
11 years ago
7,772 posts
Try updating the embed module now.

The issue was youtube was being embedded before the iframe module had run, so there was an iframe for the iframe module to find.

I've lowered the priority of the embed module so it runs after the iframe module has run.
brian
@brian
11 years ago
10,148 posts
Thanks Michael!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Ken Rich
Ken Rich
@ken-rich
11 years ago
926 posts
Thanks - haven't had a chance to check it yet but will let you know...


--

Ken Rich
indiegospel.net