Feature Requests

Please do NOT use this section of the forum to request help if Joomdle does not work for you in some particular way. Your post will be deleted.

[Closed] Show only enrollable courses

  • Juan Jung
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 11 months ago - 11 years 3 months ago #1 by Juan Jung
[Closed] Show only enrollable courses was created by Juan Jung
Hi Antonio,

I am trying to set up my course list view, but I believe it is not working as intended. My goal is to have the structure of the page look like this one: rail-learning.mtu.edu/courses

Unfortunately, when I set the menu item type (mind you, I am using jomsocial's menu) to course list, the setting "show only enrollable courses" does not affect which courses are shown.

Also, the CSS used in the description of the courses in moodle does not work when the description of the course is shown through joomdle.

Any known issue here, or am I maybe forgetting something?
Last edit: 11 years 3 months ago by Antonio Durán.
The topic has been locked.
More
11 years 11 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Show only enrollable courses
You are right, this is a bug.

I checked the code, and it is not using the parameter.

This comes from Moodle 1.9, where there was a parameter in course called available, so it was an easy thing to integrate.

In Moodle 2.x things changed a lot, and now to know I don't think we should keep this parameter.

Maybe we could replace it by "show only self-enrolable courses", so it list only courses where you can self enrol.
Are you using self-enrolment?
The topic has been locked.
  • Juan Jung
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 10 months ago - 11 years 10 months ago #3 by Juan Jung
Replied by Juan Jung on topic Show only enrollable courses
Yes, we are using self-enrolment.

How would I go about changing this parameter? Or is this something you would have to do in a release?
Last edit: 11 years 10 months ago by Juan Jung.
The topic has been locked.
More
11 years 10 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Show only enrollable courses
This needs not be added to the code, in anew release.
The topic has been locked.
More
11 years 8 months ago - 11 years 8 months ago #5 by Antonio Durán
Replied by Antonio Durán on topic Show only enrollable courses
Finally I had some time to look into this and the changes are simple, so I am posting them in case you are still interested.

File: moodle/auth/joomdle/auth.php

Look for this code:
Code:
// Check if only guest courses are wanted if (($guest) && (!$course_info['guest'])) continue;
And put this one after it:
Code:
// Skip not self-enrolable courses if param says so if (($available) && (!$c['self_enrolment'])) continue;
Last edit: 11 years 8 months ago by Antonio Durán.
The topic has been locked.
  • Juan Jung
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 7 months ago #6 by Juan Jung
Replied by Juan Jung on topic Show only enrollable courses
Thank you for this answer. I will look into whether I can implement it myself, or whether it would be best for me to wait for a new joomdle release.
The topic has been locked.
More
11 years 3 months ago #7 by Antonio Durán
Replied by Antonio Durán on topic Show only enrollable courses
Fixed in 1.0
The topic has been locked.