官术网_书友最值得收藏!

Time for action – enrolling students when creating their accounts

We are going to create accounts for 500 students and enroll each student in two of our eighty courses that we created in Chapter 2, Building the Foundation—Creating Categories and Courses. I've chosen these numbers for our example in order to end up with each of the listening and speaking courses having an enrollment of 25 students. Real-world situations will, of course, vary depending upon registration policies, placement procedures, proficiency level variations, and any number of other factors unique to each educational program. Additionally, as we are setting up Moodle to function as a CIMS, we are operating under the assumption that all new students will have accounts created for them in the Moodle system. The creation process could be accomplished through a variety of procedures available within Moodle but for this example, we will use the Manual accounts setting and use a pre-formatted CSV (Comma-separated values) file to perform the enrollment. To enroll students as their accounts are created, follow these steps:

  1. Access the authentication plugins via the Site Administration block by clicking on Users | Authentication | Manage authentication. Modify the authentication plugins such that Manual accounts is the default and disable Self registration via the pulldown window found under the Common Settings heading. The following screenshot shows how your authentication plugin screen will appear with these settings:
    Time for action – enrolling students when creating their accounts
  2. As we are going to enroll students at the same time that we create their new accounts, we can use the spreadsheet introduced in Chapter 2, Building the Foundation—Creating Categories and Courses, for creating our teacher accounts, as a model. The fields we should include in this file are:
    • username: Use of a systematic user naming system is recommended. For schools and programs that use student numbering systems, using that number here may be an easy way to provide students with a username that is easily remembered and standardized within your institution. If you plan to use names, the first initial of the first name followed by the last name with all letters in lower case is one system that is easy to implement. In the event of duplications, the use of the middle initial, after the first name initial, will often be sufficient to produce unique user names.
    • password: Again, if student passwords are already used for other systems on campus, those should be used here as well. It is important to note here that you should decide whether or not the password field is going to be locked or not. Locking the password field will prevent a user from changing his or her password. Clicking on the Settings link, found to the right of the Manual accounts plugin shown in the previous screenshot, will present you with a screen that allows you to lock specific user fields. Locking the password field is recommended if, for example, your program uses a standard password for several systems and students are able to retrieve that password via some procedure external to your Moodle site. This is also important if you will be creating accounts with a dummy e-mail address, as we will be doing, because doing so makes it impossible for students to reset their password via the Lost password? link that appears in the login block on the front page of your site.
    • firstname: User's first name.
    • lastname: User's last name.
    • email: This is a required field, so if your program either does not provide e-mail addresses to all students or you do not have e-mail addresses for them, you will need to create dummy accounts. Use the domain name of your school and student user names, for example, to create the accounts ( S101345@Moodle-As-A-CIMS.COM).
    • emailstop: If you are using dummy e-mail accounts this should be set to 1 to avoid having a huge number of undeliverable error messages sent to the site admin e-mail account.
    • institution: Enter the name of your school or program.
    • city: Enter the city in which your school or program is located.
    • country: Enter the country in which your school or program is located. Note, the standard two-letter country code should be used here. One reference site for country codes is http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2.
    • maildisplay: This controls how student e-mail addresses are displayed in their user profile. Enter a 0 to have their e-mail address hidden from everyone, a 1 to allow only members of courses they are enrolled in to see their address, and a 2 to allow their e-mail address to be seen by everyone. Using 0 as a default is a safe option that protects the student's personal information. Students can change the setting via their profile if they so desire.
    • autosubscribe: A 0 prevents students from being automatically subscribed to forums when they post in them. Use a 1 to have students automatically subscribed. If you are using dummy e-mail accounts, students will not be able to receive e-mails from forums until they have changed and activated their e-mail address anyway, therefore, this setting will have no effect on users until then.
    • course1 and course2: Enter the shortname of the courses in which you want to enroll students. We are using one and two because we will be enrolling the students in two courses.
  3. The following screenshot is of a portion of the spreadsheet that will be used to create and enroll our students. Notice that the user naming convention that has been used for these accounts, creates usernames that are of uniform length using both letters and numbers and will thus avoid the overlap issue that was introduced in Chapter 2, Building the Foundation—Creating Categories and Courses. Download the sample enrollment file available at www.packtpub.com/support to see in detail how I have formatted the file that will be used to create these 500 students.
    Time for action – enrolling students when creating their accounts
  4. Once you have finished formatting your file, save the file in CSV format. Make sure there are no commas in the data you have entered as they will be interpreted as field separators and cause an error to be generated when you try to upload the file to the Upload users tool.
  5. Navigate to the Upload users page via the Site Administration block by clicking on Users | Accounts | Upload users. The page is shown in the following screenshot:
    Time for action – enrolling students when creating their accounts
  6. Click on Browse... to locate and select the CSV file on your computer.
  7. After selecting the CSV file, click on Upload users. You will see a preview window with the first ten records from the CSV file and will be able to adjust some settings pertaining to the accounts being created. Leave the Upload type set to Add new only, skip existing users as we are only creating new accounts. All other defaults, as well, should be appropriate for the accounts we are creating. The screen, with the settings that have been described here, will look like the following screenshot:
    Time for action – enrolling students when creating their accounts
  8. Click on Upload users to create the accounts and, at the same time, enroll each user in the courses specified in the file.
  9. As the accounts are created, you will see enrollment information on the right side of the screen. Scroll down to the bottom of the window when the process is finished, which should be in approximately 5 to 10 seconds depending on the speed of your computer, and check the creation report at the bottom of the screen just above the Continue button. If you downloaded and used the sample file, it will look like the following screenshot:
    Time for action – enrolling students when creating their accounts
  10. Click on Continue to go back to the Upload users page, and then on the front page breadcrumb (CIMS in our Moodle example site, as shown in the following screenshot) to navigate back to the front page of your site.
    Time for action – enrolling students when creating their accounts

What just happened?

In a matter of a few seconds, new accounts for 500 users have been successfully created and each user has been enrolled in two courses. While it does take some time to format the CSV file that is used by the Upload users tool, the time is miniscule in comparison to the amount of time it would take to create and enroll each of these users individually. Additionally, the CSV file, or its spreadsheet template 'parent', can be used for future updates to these users' accounts. This process will be introduced and covered later in this chapter.

主站蜘蛛池模板: 新绛县| 天镇县| 盐源县| 屏边| 西畴县| 西乡县| 长寿区| 临江市| 镇沅| 丽江市| 来凤县| 依安县| 陇西县| 丹棱县| 孝感市| 微博| 东兴市| 闻喜县| 松原市| 海盐县| 九龙坡区| 疏勒县| 温宿县| 曲阳县| 库伦旗| 龙岩市| 资兴市| 武宣县| 景泰县| 涞源县| 盐池县| 南涧| 望都县| 皮山县| 读书| 罗城| 特克斯县| 沙河市| 彩票| 永兴县| 佛学|