Hi everyone, I've been trying to figure out how to enrol people on a course automatically once they create an account.
I've done it before, many years ago by adding this line of code to the login/signup_form.php file:
$mform->addElement('hidden', 'courseselected', 58);
where 58 is the course ID of the course to auto-enrol the student on.
however, i've returned to it and can't seem to get it working again.
Any ideas?