Hidden sections in moodle showing in joomdle

  • Juan Jung
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 1 month ago - 13 years 1 month ago #1 by Juan Jung
Hello all!

I have run into two issues when using Joomdle:

1. Hidden sections/topics in moodle are visible when viewed through joomdle
2. Images for the course are not loading

We have been building courses in moodle in a somewhat unconventional way. Instead of using the topics in moodle as progression through the course, we use them as repositories for course content. Navigation through the course is achieved by hyperlinks in the first topic of the course, and all other sections/topics are hidden (including activities, quizzes, etc). For the end user, only the first topic is visible, with buttons/resources etc linked there.

To be clear: activities are set to show, but the topic in which they are in is hidden

When viewing the course on Joomla by using Joomdle, all sections/topics become visible. Is there a way to show only those topics that are set to show (allowing the user to use the navigational links that we developed)?

A smaller issue is that images are not being loaded when the course is viewed through moodle.

Thank you in advance for your help!

EDIT: Joomdle R0.9, Joomla 2.5.8, Moodle 2.4.1+
Last edit: 13 years 1 month ago by Juan Jung. Reason: added software versions

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

More
13 years 1 month ago #2 by Antonio Durán
Replied by Antonio Durán on topic Hidden sections in moodle showing in joomdle
Hi.

Thanks for the bug report. I have replicated the first issue, on the course view,
If you want to fix it yourself, you need to edit moole/auth/joomdle/auth,php, function get_course_mods(),

Just after:
Code:
foreach ($sections as $section) {

Add:
Code:
if (!$section->visible) continue;


As for the images: can you be more specific? Which images are not showing? What is the URL of the image when viewing it in Joomdle?

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

  • Juan Jung
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 1 month ago - 13 years 1 month ago #3 by Juan Jung
Replied by Juan Jung on topic Hidden sections in moodle showing in joomdle
Dear Antonio,

Thank you for the help. Unfortunately, the code did not solve the issue we are facing: hidden sections are still being shown.

If you want to have a look for yourself, this is the URL. Only topic 1 to 3 should be visible when viewing as a guest.

With regard to the image issue, I think I may have found the culprit: the image URL shows an extra "/" between moodle and auth (moodle//auth/joomdle/...). However, I do not know how to get rid of the extra backslash.

Thank you again for your help!
Last edit: 13 years 1 month ago by Juan Jung. Reason: Thanks

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

More
13 years 1 month ago #4 by Antonio Durán
Replied by Antonio Durán on topic Hidden sections in moodle showing in joomdle
I don't think the extra slash causes any problem, but usually it is caused by an final slah in Joomdle URLs configuration.

As for the other issue: what do you mean by viewing as guest?
How are you hiding the activities?

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

  • Juan Jung
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 1 month ago - 13 years 1 month ago #5 by Juan Jung
Replied by Juan Jung on topic Hidden sections in moodle showing in joomdle
Regarding the images:

I have changed the moodle URL in the Joomdle configuration in Joomla, but the images are still not showing (also, the extra slash is still there). Images embedded in a topic are shown as squares, while images embedded in the topic summary (which we use extensively) are not showing at all.


Regarding the topics:

We have the course set up in the following way:

It is a topics based course, with x number of topics. In the first couple of topics, we put in information that is relevant to the current stage of the course (i.e. preparatory work, links to live streaming, link to video archive, etc) as well as general information (links to list of participants, discussion forums, etc.).

These topics are set to "show".

All other topics are set to "hide", and contain the actual material for the course (lessons, quizzes, activities, etc.).

However, the activities in these topics are each set to "show". This allows us to avoid the typically moodle-esque mile-long page, where users have to scroll and scroll to find relevant information. Additionally, we can more easily steer where we want users to go.

Now to our joomla test site: we have imported a pre-built course into our test site (with the above mentioned structure). When logged in as an enrolled user, and after clicking on "My Courses" -> "Course Name", all topics are visible.


Part of the message is hidden for the guests. Please log in or register to see it.
Last edit: 13 years 1 month ago by Juan Jung.

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

More
13 years 1 month ago #6 by Antonio Durán
Replied by Antonio Durán on topic Hidden sections in moodle showing in joomdle
Not sure what the problem is, as I just re-tested hiding a topic in Moodle, and it does not shop in course view any more in my installation with the fix applied.

As for images: Can you give me a direct link where I can see images not showing?
I took a look at course "Around the Globe and Around the Clock: The Science and Technology of the CTBT" but did not see any broken images.

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

  • Juan Jung
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
13 years 1 month ago #7 by Juan Jung
Replied by Juan Jung on topic Hidden sections in moodle showing in joomdle
Dear Antonio,

We are working on some other issues with our platform, and have put the moodle integration on the back-burner. I will get back to you with more information when we try to tackle this issue again.

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