ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Autoenrollment


  • 2012-08-17 19:56:22

    Autoenrollment

    Hello. I have 2.0 installed.

    Just a question about using the auto-enrollment feature. Is the designed behavior intended to be that when the user creates their account, their enrollment status is "pending" and the instructor has to approve the request to be formally enrolled? I was thinking that they would be automatically enrolled, but that doesn't seem to be the case for me.

    Thanks!

  • 2012-08-18 10:34:42

    Re: Auto-enrollment

    I do recall this feature enrolling and giving immediate access, but you are right, it seems to require instructor approval if its a private course.

    This was something we added many years ago, so perhaps my memory fails me. Maybe add a request to the issue tracker, and we'll investigate or try to get it into the next release.

    http://www.atutor.ca/atutor/mantis

    For now you can have new enrollments send an email to the instructor, set in Manage>Properties in the Access Setting

  • 2012-08-18 12:24:29

    Re: Auto-enrollment

    I did a bit of deeper looking and in /ATutor/include/htmlauto_enroll_courses.inc.php lines 41-95 seem to be doing the work here. It seems to me there are two short term options...

    1.) In the $sql in line 44, change 'n' to 'y'.

    2.) Comment out the if/else logic in lines 41-99 and just go directly with
    [php] $sql = "INSERT INTO ".TABLE_PREFIX."course_enrollment VALUES ($member_id, $course, 'y', 0, '"._AT('student')."', 0)";
    $result = mysql_query($sql, $db);
    [/php]


    I opted for #2 because I think that will work with how I use ATutor, but that's probably not the most elegant way to do it.

    Do you still want me to post to the issue tracker?

  • 2012-08-19 10:21:22

    Re: Auto-enrollment

    Yes, please do make a note in the tracker, for the record.

  • 2012-08-19 12:21:32

    Re: Auto-enrollment

    Ok, it's done.