How To / General

Issues getting Moodle to display in a wrapper

  • Eric vanBok
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago #1 by Eric vanBok
Joomla 3.6.0
Joomdle 1.0.6
Moodle 3.1

I searched the forums, and I could not find anything directly relating to this issue.

I have Joomdle installed and it working. I get all green checkmarks on the system check. I have a test user enrolled in a course. I can see the course when logged in as that user in the Joomdle My Courses page and even the Joomdle My Courses Module. When I have Joomdle configured to open Moodle links in a new window clicking one of those links works perfectly. I get a new window logged in as the correct user and I am looking at the correct course.

The problem is when I open the Moodle links in a wrapper, which is what I really want. All that I get is a box on the page with nothing in it. The iframe is there but the head and body of the HTML in the iframe is empty.

I have tried turning off the Autoheight for the wrapper, and the only effect is that the box is now 1000 pixels high and blank, not short and blank. I have ensured that Allow frame embedding in Moodle is enabled, so that is not the issue.

Everything else with the setup is working as it should be, except this. Does anyone have any ideas how to fix this, or what I can try to get this working? I appreciate any help you can offer. Thanks.

Please Log in or Create an account to join the conversation.

  • Eric vanBok
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago #2 by Eric vanBok
Replied by Eric vanBok on topic Issues getting Moodle to display in a wrapper
Nobody has any ideas on this issue? It is a big stumbling block for me getting this new website live. For whatever reason Moodle will not render in the wrapper, but will render in a new window.

Any help at all will be appreciated. Thanks.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #3 by Antonio Durán
Replied by Antonio Durán on topic Issues getting Moodle to display in a wrapper
Hi.
Are Joomla on Moodle on same domain? It's required for wrapper auto-height to work.
Also, check that that you enabled allow frame embedding in Moodle config.

Please Log in or Create an account to join the conversation.

  • Eric vanBok
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago #4 by Eric vanBok
Replied by Eric vanBok on topic Issues getting Moodle to display in a wrapper
Both Joomla and Moodle are on the same domain.
Allow frame embedding is enabled as well.

This is why I am stumped. I don't understand what could be the issue in this case.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #5 by Antonio Durán
Replied by Antonio Durán on topic Issues getting Moodle to display in a wrapper
This is a weird one then.... I don't understand it either.
Re-check there is no www and no-www mismatch between URLs... I really cannot think of anything else right now :(
Maybe you could also create an html file with an iframe to test the wrapper thing stand alone...

Please Log in or Create an account to join the conversation.

  • Eric vanBok
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago #6 by Eric vanBok
Replied by Eric vanBok on topic Issues getting Moodle to display in a wrapper
Well I found part of the problem. It was an issue of http vs https. Once I turned on Use HTTPS for logins in Moodle, it started to display in the wrapper.

I am now having an issue where the template is not displaying properly in the wrapper. I am missing all the formatting. It displays all menu items as a list, and it is missing all formatting for the layouts of the courses.

Any thoughts on what could be causing that?

Please Log in or Create an account to join the conversation.

  • Eric vanBok
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago #7 by Eric vanBok
Replied by Eric vanBok on topic Issues getting Moodle to display in a wrapper
No that is not the issue I am seeing. Sorry I can't help.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #8 by Antonio Durán
Replied by Antonio Durán on topic Issues getting Moodle to display in a wrapper
I don't really know what you mean, maybe a screenshot would help.

Please Log in or Create an account to join the conversation.

  • Eric vanBok
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 8 months ago #9 by Eric vanBok
Replied by Eric vanBok on topic Issues getting Moodle to display in a wrapper
I have attached two screenshots.

This is how the course should display, and how it displays in a new window:


This is how the course looks when displayed in a wrapper:


I can't figure out why this is happening.

Please Log in or Create an account to join the conversation.

More
9 years 8 months ago #10 by Antonio Durán
Replied by Antonio Durán on topic Issues getting Moodle to display in a wrapper
I have only seen Moodle displayed like that when there are problems with https.. like CSS loading from URL without https or something like that. When I have seen it, it was not in the wrapper, though, it was Moodle displaying like that.

Please Log in or Create an account to join the conversation.