- Posts: 68
Issues getting Moodle to display in a wrapper
- Eric vanBok
- Topic Author
- Offline
- Senior Member
-
So it is an HTTP/HTTPS issue. I will need to look at why this is happening and see about fixing it.
Thank you for the pointers in the right direction.
Please Log in or Create an account to join the conversation.
- Eric vanBok
- Topic Author
- Offline
- Senior Member
-
- Posts: 68
It is indeed an HTTP/HTTPS issue. Moodle in the wrapper was loading HTTPS, and the template didn't like that as it was now in a mixed HTTP/HTTPS system. I thought I had made enough changes to Moodle to get it to use HTTPS properly, but I didn't go far enough. I found this helpful article:
filippocarnevali.com/blog/setup-moodle-t...-with-https-and-ssl/
I just followed those instructions and it works like it should now.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7848
Please Log in or Create an account to join the conversation.
- ArchieBA
- Offline
- Junior Member
-
- Posts: 28
Antonio Durán wrote: 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.
Is there a way to do it with two domains? I just purchased the subsciption today but didn't know this. Any help is appreciated. thanks
EDIT: well I saw your answer here: www.joomdle.com/forum/r09-support/11212-...n-are-different-help
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7848
Please Log in or Create an account to join the conversation.
- ArchieBA
- Offline
- Junior Member
-
- Posts: 28
Sorry to bumb this thread again but I came accross this post and was wondering if it could be possible to intergrate one of the solutions to joomdle for multiple domains?
stackoverflow.com/questions/22086722/res...domain-iframe-height
Thanks!!
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7848
Thanks for the link. I will take a look at it soon to see if we can add any solution to the different domains problem.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7848
Sorry for taking so long, but I could finally try this out, and I am happy to say that it seems to be working fine for the auto-height on multiple domains.
I am going to put here all the steps required, and once you/others test, we can include a new config option in Joomdle to use this new auto-heihgt method, and document it properly.
I used this:
github.com/davidjbradshaw/iframe-resizer
This works by having a javascript file in Joomla and another one in Moodle.
Joomla:
Attached is new default.php file to put in components/com_joomdle/views/wrapper/tmpl (unzip firsrt)
Also, you need to put iframeResizer.min.js (from link to github above) in components/com_joomdle/js
(all this would not be needed once this is merged to Joomdle package)
Moodle:
This will always be required, as you need to add the javascript file to your Moodle.
To do this, find the theme you are using in Moodle.
Then, create, if it does not exist, moodle/theme/YOUR_THEME/javascript
Upload iframeResizer.contentWindow.min.js to this new javascript folder (download from github link above)
Finally, add the new javascript file to your theme, by opening moodle/theme/YOUR_THEME/config.php and adding at the end:
$THEME->javascripts = array ( 'iframeResizer.contentWindow.min' );
After these steps, you should be able to have resizing iframe over different domains. I only tested it at one site, so please test and let us know your results.
Please Log in or Create an account to join the conversation.
- ArchieBA
- Offline
- Junior Member
-
- Posts: 28
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
- Posts: 7848
Please Log in or Create an account to join the conversation.