Great module and just in time for my purposes if I can get it to work.

I've copied and pasted the embed code for a node from my primary domain into another page on a separate domain (located on the same host). I am getting various "access denied" and "You are not authorized to view this page" messages, depending on whether I am logged into my primary domain on the same browser. The browser behavior changes depending on which browser I'm using, as follows:

1. Firefox: not logged into primary domain, access denied on secondary domain; authenticated on primary domain, node displays in secondary domain
2. Safari: random, but mostly displays node on secondary domain regardless of whether or not I'm logged into my primary domain
3. Chrome: random, but mostly doesn't display node regardless of whether or not I'm logged into my primary domain.
4. IE: Node seems to always display regardless of logged

I've looked at all my permissions related to the node, and all are set to highest accessibility (anonymous or public). Any suggestions?

Thanks,

Dakes

Comments

btopro’s picture

Status: Active » Needs work

Have you set permissions for viewing things via the iframe? There's a permission specific to viewing material in the iframe called "Access iframe version".

This is probably somewhat silly to have as a permission but allows for additional flexibility as you could use this to expose different fields about an entity when its embedded vs not. Our setups also automatically log people into sites based on single sign-on so we're able to give permissions to those not pervasively logged in vs those that are.

dakes’s picture

Status: Needs work » Fixed

I can't believe I missed that. Thanks so much. I set the permissions and all is working well. This is the only module of its kind that I could find and it really is a life-saver. Thanks!

P.S. In your setup video, I know you disabled all the regions in Stark setting, but I can't remember if you mentioned disabling blocks in Stark as well. That really cleaned up the display for me.

btopro’s picture

Glad you enjoyed, pass it on. This was a great 1 day idea that I hoped others would use.

Yeah, I have disabled the blocks in stark. What I'm thinking I might do is make a theme that's like stark w/ almost nothing on it because I need the breadcrumbs wiped as well. I'm also looking at using this with some kind of "entity player" or list or something that allows for creating an entity that just has entity references to the order in which to display items. Then you could use this with the iframe module so that you'd have a basic window into a "player" with next / prev navigation to click through items that can be managed individually. This is being created for the embedding of small interactive pieces into content.

dakes’s picture

Nice, and seems to address my feature request. I'm using your module to embed jPlayer, FYI. I wiped the breadcrumb with Menu Breadcrumb, which has a configuration options of "Hide the breadcrumb if the breadcrumb only contains the link to the front page.". Did the trick.

btopro’s picture

perfect example of why I contribute everything I do -- had no idea that module was out there and is exactly what I needed :) Nice find! http://drupal.org/project/menu_breadcrumb

dakes’s picture

Just realized that though setting the iframe permissions to anonymous does allow anyone to view an iFrame from my domain on a different domain, it also reveals the embed code to all users on my site. Is there a way to independently set permissions for viewing embed code and viewing iFrames?

btopro’s picture

Status: Fixed » Closed (fixed)

please open another issue for that request, there currently is not but that's a good request.

btopro’s picture

Version: 7.x-1.0-beta2 » 7.x-1.x-dev
Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.