Availability conditions: Restriction by course completion

availability_coursecompleted
Maintained by Renaat Renaat Debleu
Restrict module and section access based on course completion.
717 sites
724 downloads
37 fans

This availability condition makes it easy to show modules or sections only when a user
completed a course. A course certificate is a good sample, but it can also be used to close
discussion forums, hide quizzes or exams when a user finished a course.


Check the global documentation about conditional availability conditions : https://docs.moodle.org/en/Conditional_activities_settings

Installation:

 1. Unpack the zip file into the availability/condition/ directory. A new directory will be created called language.
 2. Go to Site administration > Notifications to complete the plugin installation.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Renaat
Renaat Debleu (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Fritz Richter
    Fri, 20 Feb 2015, 6:05 AM
    Hi Renaat,

    I like your plugin a lot. Thanks for sharing! Do you think the plugin could also check the completion of other courses?

    Fritz
  • Renaat
    Fri, 20 Feb 2015, 6:11 PM
    Hello Fritz,

    the completion of other courses is a whole different matter and would complicate things greatly. My biggest concern would be speed, because the plugin should work also on a system with hundreds of courses. But it is a good idea for another availability condition plugin.

    R
  • Picture of Anderson Hsu
    Sun, 31 May 2015, 3:06 PM
    Dear partners,
    I want to make sure how to install the plugin of availability to moodle? (where are the plugin path of moodle ? )
    Thank you.
  • Renaat
    Sun, 31 May 2015, 3:41 PM
    Availability conditions are installed in the directory availability/condition. So this plugin should be extracted in the directory availability/condition/coursecompleted
  • DigiDago
    Wed, 11 May 2016, 10:58 PM
    Hi, thank you for the last update of this plugin. We use with Moodle 3.0 and certificate plugin. Students can see certificate only when they completed the course. Very usefull and easy to use.

    ++
  • Picture of amit suman
    Mon, 16 May 2016, 1:12 PM
    Hi All
    I am using 3.0 but i am unable to restrict course 2. in course 1 there are 2 quiz and i want to course 2 will be active if user pass course 1 with quiz mark more then 50%. i was set all the things but i am unable to restrict course 2. Clement Prudhomme how you do it, Can you please help me?

    Thanks in Advance
  • Renaat
    Mon, 16 May 2016, 10:00 PM
    Hello Amit,

    availability conditions restricts access to modules and activities. Restrict access to courses should be done using a enrolment plugin.

    You can give access to course 2, but restrict availability to some modules. In your case, I would brew something like this:

    Course 1 & 2 : Enable course completion tracking on the course settings page (course/edit.php)
    Course 1 : Configure course completion so the grade of the two quizzes are part of the condition Course grade (course/completion.php)
    Course 2 : Configure course completion and select course 1 in the condition Completion of other courses (course/completion.php)
    Course 2 : Add for a/each module the Restriction by course completion

    As a result, Course 1 will be completed when the 2 quizzes have grades above 50%, When this happens, course 2 will also be completed and each restricted module will become available for the participants.
  • Picture of Briar Ang
    Fri, 1 Jul 2016, 3:57 PM
    Hi Renaat

    I've installed your plugin but can't get it to work. I installed in Moodle 2.7.

    I have a course with 2 modules/activities in it.

    First module is a URL to view.
    Setting on this is: Show activity as complete when conditions are met - student must view activity to complete it.

    Second module is certificate.
    Setting is: restrict access - Student must match the following - completed course - yes

    For the course itself:
    Setting is: Course completion - activity completion - URL

    When tested:
    When a user completes the URL activity, the activity is shown as complete, but NOT the course. Obviously the user is still not able to access the certificate, despite having completed the URL activity.

    Any help would be much appreciated!

    Thanks
  • Renaat
    Fri, 1 Jul 2016, 9:38 PM
    Hi Briar,

    There is a difference between the activity completion report and the course completion report. Are both reports showing the first module completed?

    This plugin does not change or add course completion settings, it only reads course completion info, and based on this information, restricts access. It uses the same information as the course completion report, so as long as this report is not showing the course as completed, the plugin will keep on restricting access to your certificate.

    First of all, course completion is not instantly, it is done in the background with the Moodle cron job. So it can take some time between the completion of an activity and the completion of the course. Therefore, if the cron job is not running, your course will never be marked as completed.

    Perhaps the best way to check if the course completion is working, add the condition 'Manual completion by others' in an OR condition and, in the course completion report, mark the student manually as he/she completed the course. When you wait some time (depending on your admin from 1 minute up to 1 hour), the course will be marked as complete for this user. As a result, the certificate will also be visible for the person.

    Greetings,


  • Picture of Briar Ang
    Tue, 5 Jul 2016, 6:07 AM
    Hi again Renaat,

    Thanks for your help. It was indeed a cron job issue and now it's working perfectly. Great plugin, thanks for sharing your work! smile

    Briar
  • Picture of Briar Ang
    Wed, 13 Jul 2016, 8:28 AM
    Hi Renaat,

    Just wondering if I am able to change the wording that automatically appears when I restrict access to a certificate.

    At the moment, "Not available unless: You completed this course." appears. I'd like to change this wording to "Currently unavailable." Is this possible? If so, how do I change it?

    Thanks
    Briar
  • Renaat
    Wed, 13 Jul 2016, 4:46 PM
    The string "Not available unless: You completed this course." has 2 parts : get_string('a list_root_and','availability') and get_string('getdescription', 'availability_coursecompleted').

    So technically, it is possible to modify those 2 strings using language customisation. But the change of the list_root_and string will reflect on ALL availability restrictions....
  • Picture of Briar Ang
    Thu, 14 Jul 2016, 7:56 AM
    Fantastic, thank you very much smile
  • Picture of Dan Bell
    Tue, 26 Sep 2017, 10:29 PM
    Can this plugin restrict access to "anything" in a course if ANOTHER course is not complete? If so, how?
    We need a behavior that prevent users from accessing anything in course two if course one is not complete.
    On a module, my Add Restriction popup has "Course Completed" with only a yes or no value. I was hoping in the Course completed options I could select another course that needs to be completed before any module in course two could be accessed.
  • Renaat
    Fri, 29 Sep 2017, 10:33 PM
    No, this plugin restricts access to modules upon the completion of the current course.

    For me, the best solution for your situation is to create a local or enrolment plugin that enrols users upon a core\event\course_completed event. The load on the server will be much smaller and people will not be part of a course where they cannot access anything...
1 2
Please login to post comments