Course enrolment upon approval (enrol apply) plugin for moodle

From Notes_Wiki

Home > CentOS > CentOS 6.x > Web based tools or applications > Moodle configuration > Course enrolment upon approval (enrol apply) plugin for moodle

enrol_apply moodle plugin installation

Login as admin in moodle by providing necessary credentials

  1. Check the version of the moodle in use by Home -> Site administration -> Server -> Environment
  2. To install a new plugin go to Home -> Site administration -> Plugins -> Install add-ons
  3. Click on “Install add-ons from the Moodle plugin directory”
  4. Browse plugins as guest. From moodle plugin categories go to Users -> Enrolment -> Course Enrolment upon Approval (enrol_apply) and download the plugin zip file
  5. Go back to Home -> Site administration -> Plugins -> Install add-ons and click on “Choose plugin type”. Choose enrolment. Do chown apache:apache for $MOODLE_HOME/enrol folder. so that necessary permissions for plugin installations are set.
  6. Click on “Choose a file” you will be directed to a dialog box from which choose upload file
  7. Click on “Acknowledgement”
  8. Click on Install add-on from the zip file
  9. As you pass the validation pass click on “Install add-on!”
  10. After installation click "Continue"
  11. Click on Upgrade Moodle database now
  12. For various values click the check-box or use following sample values in text-boxes
    subject for confirmation
    You have been enrolled in a course
    confirm email content
    You have been enrolled in course {content}
    subject for cancellation
    You enrolment for a course has been rejected
    confirm email content
    You enrolment for {content} course has been rejected
  13. Enable the course enrol confirmation plugin at Home -> Site administration -> Plugins -> Enrolments -> Manage enrol plugins
  14. Test the plugin so installed by adding it as an enrolment method for a course


Troubleshooting steps for sending email on moodle:

To enable confirmation and cancellation of enrollment over email do the following:

  1. Edit the /var/www/html/enrol/apply/lib.php and replace $contact with admin email address such as
    //$contact = core_user::get_support_user(); instance and add appropriate contact for moddle to send email.
    $contact = "saurabh@example.com";
    This replacement may be necessary at 4 or more places.


Change email content of email sent after approval

Subject and email content of emails sent by plugin can be customized at Home -> Site administration -> Plugins -> Enrolments -> Course enrol confirmation



Home > CentOS > CentOS 6.x > Web based tools or applications > Moodle configuration > Course enrolment upon approval (enrol apply) plugin for moodle