03.09.2018 Views

Moodle 2.0

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Configuring Your Site<br />

This ID number will match the student in <strong>Moodle</strong> to a record in the enrolment file.<br />

For example, the following line from the file enrolls student 007 into the course with<br />

an ID of EM102:<br />

add, student, 007, EM102<br />

In the <strong>Moodle</strong> database, you will find the student's ID number in the table mdl_user,<br />

in the field idnumber:<br />

If you want to use a flat file to mass enrol a group of students, and your users<br />

don't have ID numbers, speak to your administrator about loading those numbers<br />

directly into the <strong>Moodle</strong> database. They might be able to use a database command to<br />

populate that field.<br />

If your database administrator cannot add ID numbers for your users, you will need<br />

to edit each user's profile manually and add the ID numbers to each user’s record.<br />

Course ID required<br />

If you use a flat file to enrol students in a course, the file will identify each course by<br />

its ID number. The example that we saw earlier was:<br />

add, student, 007, EM102<br />

This ID can consist of any alphanumeric characters, not just digits, and can be up to<br />

100 characters in length. On the Edit course settings page, you can see that Course<br />

ID number is an optional field, as shown in the following screenshot:<br />

[ 90 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!