Wrapper shows nothing!

More
15 years 1 month ago #31 by Heather
Replied by Heather on topic Re: Wrapper shows nothing!
It's a start! *smiles*

Are you using the moodle wrapper menu item? I wonder if that was the point that was causing me trouble before.

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

  • Jerker Lundin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
15 years 1 month ago #32 by Jerker Lundin
Replied by Jerker Lundin on topic Re: Wrapper shows nothing!
I have made a menu link but i have also tried with Joomdle modules that links to courses.

In Menu-link I have set it to Global and tested with values that is different that Global. Same result.

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

More
15 years 1 month ago #33 by Heather
Replied by Heather on topic Re: Wrapper shows nothing!
I have found some other weirdnesses, but I'll have to note them a bit later. Things have been hectic, and I'd like to get screenshots to explain.

But the wrapper itself is working about 97% of the time, and when it's weird, it still works, just weirdly.

*smiles*

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

More
15 years 1 month ago #34 by Antonio Durán
Replied by Antonio Durán on topic Re: Wrapper shows nothing!
Hi.

I finally had some time to take another look at this.

First thing I notice is that some config options for Moodle 2.0 are broken: if you set Auto-height to on, it still does it.

So, JeLu, at least you could user the non-auto-resize wrapper, just by replacing file components/com_joomdle/view/wrapper/tmpl/default_m20.php with attached one (renaming to .php)

File Attachment:

File Name: default_20.txt
File Size:1.27 KB


With it, wrapper should work if you set auto-height to no.


I aslo set up a local multi domain enviroment to test, and as expected, wrapper auto-height does not work. I will try to find a solution, although as I know very little about Javascript, is difficult that I get to it.

If someone else reads this and has any insight, please share.

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

More
15 years 1 month ago #35 by Antonio Durán
Replied by Antonio Durán on topic Re: Wrapper shows nothing!
Kept testing this...

It seems I found a solution for your case, JeLu.

I created this setup locally:
- myjoomla.com
- moodle.myjoomla.com

Installed Joomdle, and as expected auto-height did not work.

I tried the "document.domain" Javascript code, and it works for me.

What I did is add this:
Code:
document.domain = 'myjoomla.com';
at the start of "components/com_joomdle/js/autoheight.js"

And this:
Code:
<script type="text/javascript"> document.domain = 'myjoomla.com'; </script>
at the start of moodle/config.php.

With those changes in place, autoheigt works for me.

Please try and comment.

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

More
14 years 11 months ago #36 by Angela Clementi
Replied by Angela Clementi on topic Re: Wrapper shows nothing!
Antonio,

First, let me say that I really like Joomdle and appreciate all the effort that has gone into it. However, I too am having the problem with the wrapper that has been posted here. I tried the "document.domain" Javascript code that you mentioned above, and at first it appeared to work. But then I started having problems with my Moodle site - the moodle session cookie disappeared. I spent some time working on the Moodle side and in their forums, thinking it may have been an issue there, but couldn't find any problems. However, when I removed the Javascript code from my moodle config.php file, I no longer had any issues with getting into my Moodle site. Of course, the problem with the wrapper appeared again. I am not sure what I am doing wrong, or what I should try at this point. I have my joomla site set up as the main domain and my moodle site is a subdomain - could that be causing some issues? I have a little experience with making code changes, but I am not a programmer. Do you have any other suggestions on what might be causing my issues? Thank you very much for your help.

Angela

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

More
14 years 11 months ago #37 by Chris
Replied by Chris on topic Re: Wrapper shows nothing!
Hi there, Antonio is on leave for a couple of weeks and unfortunately, this type of problem is beyond my know-how. Once he is back I will highlight your post.

Chris

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

More
14 years 11 months ago #38 by Angela Clementi
Replied by Angela Clementi on topic Re: Wrapper shows nothing!
Thank you very much Chris! In the meantime, I will continue to work with it and see if I can figure it out. I will let you all know if I do. Again, thank you :)

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

More
14 years 11 months ago #39 by Antonio Durán
Replied by Antonio Durán on topic Re: Wrapper shows nothing!
Hi.

Javascript cross-domain issues are general, and not specific to Joomdle.

The solution I posted appeared to work for me, although I did not test deeply.

The fastest way to fix the wrapper problem is to have both Joomla and Moodle on the same domain, if that is possible for you.

I have no clue as of why you get session problems when including the JS code :(

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

More
14 years 11 months ago #40 by Angela Clementi
Replied by Angela Clementi on topic Re: Wrapper shows nothing!
Okay, that helps give me a better idea of what to try and where to go from here. Thanks Antonio!

Angela

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