Restriction by course completion icon

Restriction by course completion

Maintained by Renaat Debleu
Restrict module and section access based on course completion.
Price option: Free

Supports Moodle 2.7-5.2 See all versions
Latest release: 1 month ago
Installations: 3615
Downloads (last 90 days): 1445

Frankenstyle name: availability_coursecompleted

Comments

Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.

nice, thank you Renaat
i've try this plugin
Done. But only when the course full name will only by displayed when the navshowfullcoursenames setting is enabled.
THX Besi for your comment. I created issue #9 (https://github.com/ewallah/moodle-availability_coursecompleted/issues/9)
Hi Renaat
Thanksyou for this plugin
I have been using the availability_coursecompleted plugin and noticed a potential UX improvement. Currently, the prerequisite course is displayed as a plain-text shortname.
To help users navigate faster, I have locally modified the code to display the fullname and wrap it in a clickable link. This allows students to jump directly to the required course.
However, my changes are overwritten every time I update Moodle. Could you please consider integrating this into the core code?
My suggested change in availability/condition/coursecompleted/classes/condition.php:
// Original code:
// $name = format_string(get_course($this->courseid)->shortname);
// Suggested improvement:
$courseurl = new \moodle_url('/course/view.php', array('id' => $this->courseid));
$formattedname = format_string(get_course($this->courseid)->fullname);
$name = \html_writer::link($courseurl, $formattedname);
or if you have a better suggestion
I will try that suggestion
thankyou
Hello Nicolas,
All tests for the MOODLE_405_STABLE branch pass on github: https://github.com/ewallah/moodle-availability_coursecompleted/actions/runs/25438919941 So I think you have course completion not enabled.
R
Hello Nicolas,
Did you checked the troubleshooting? https://github.com/ewallah/moodle-availability_coursecompleted/blob/main/README.md
I will try to set up a github workflow to proove this plugin is working fine.
R
Dear Renaat Debleu,
I am contacting you about the Moodle plugin Restriction by course completion.
I tried installing it on a Moodle 4.5.11 platform. The installation seems to work correctly, but unfortunately the restriction does not appear when clicking on the access restrictions settings for an activity or section.
To check this further, I also tested the plugin on a Moodle 5.1 test platform, and everything works perfectly there: the restriction is available and can be used as expected.
This is unfortunate, because the plugin would meet my needs very well, but I do not plan to upgrade to Moodle 5.1 for the time being.
Do you know whether this behaviour on Moodle 4.5.11 is already known? Is there any workaround, adaptation, or version compatible with Moodle 4.5?
Thank you in advance for your reply, and thank you for your work on this plugin.
Best regards,
Nicolas Thorel
The easiest way is to create a basic mod plugin like mod_gradedbycompletion, waking up when a course is marked complete. My plugin enrols students when this event happens, your plugin can insert a grade.
This way your gradebook, availability restrictions, groups and groupings, course completions, ... will continue to work fine.
Hi Renaat - We understand that we need an activity to generate the grade. But we're looking for something that requires no human interaction - as soon as the course is marked "Complete", the activity triggers and inserts the grade. Any thoughts you have in that direction would be much appreciated.
Hi Stan,
Sorry, this plugin cannot give grades, Moodle would simply not know where the grade was coming from. Because only activities can generate a grade, you'll need a module (lesson/quiz/workshop/...) to do the job. Perhaps the most simple way would be to add a quiz where students always pass?
R
Hi Renaat - thanks for your good work on this plugin. We use it in all our courses, to trigger completion certificates.
We'd like to do one other thing when the course is marked "Complete": put a mark in the gradebook to show a "Pass" for the student. Your documentation indicates that you can do other things by using this course-completion-restriction plugin ("close discussion forums, hide quizes or exams when a user finished a course"), but I can't see any examples for those. Do you know how we could set a grade in a gradebook?
Hello Jeff,
You are correct. with this plugin you can only restrict access to modules and sections.
If you want to give access to a course, you need an enrol plugin: moodle-enrol_coursecompleted will do this job for you.
So I am looking for a plugin that will restrict access to a course, until they have completed a previous course. This appears to only restrict access to certain blocks within a course, until they have completed the course, but does not have an option to prevent access to an entire course until another course has been completed.
Is this correct, or am I missing a way to do this? Thanks
Hello Daniel,
THX for the problem report. Can you report a complete error report in the tracker (https://github.com/ewallah/moodle-availability_coursecompleted/issues). I'm particularly interested in your PHP version.
Because the exception starts with a \ this is an auto load problem that should go away after you purge your caches.
Can you confirm?
R
Hello!
3.11---> 4.1
Exception : Class '\availability_coursecompleted\frontend' not found
cheers
Daniel