Note: You are currently viewing documentation for Moodle 3.0. Up-to-date documentation for the latest stable version of Moodle may be available here: Attendance activity.

Attendance activity

From MoodleDocs
Revision as of 15:58, 6 June 2008 by A. T. Wyatt (talk | contribs)

There are two version of the attendance module: from Dmitry Pupinin and from Human Logic. Both published in the Using Moodle Attendance module forum.

At this time Dmitry's version is more stable and useful.

Download daily build of Dmitry's version

To install the attendance module, follow these directions (provided by Richard Webb in this post):

When you unzip the block_attendance_for_v19, it should create a folder called block_attendance_for_v19 folder with two subfolders named blocks and mod.

Part I If you look at your Moodle installation, you will see that among the many subfolders in the Moodle folder, you again have folders named blocks and mod. The idea is that you copy the contents of the block_attendance_for_v19/blocks folder into your moodle/blocks folder (so you will have a moodle/blocks/attendance/ folder with all of the files and subfolders copied as well) and likewise copy the contents of the block_attendance_for_v19/mod folder into your moodle/mod folder.

Part II In addition to the block and module code, you have some language files. Moodle has a general language folder with language files. "In the old days" (meaning prior to Moodle 1.9) you copied the contents of block_attendance_for_v19/blocks/attendance/lang into the moodle/lang folder. This still works, but is not the preferred way anymore.

Newer versions of Moodle (1.9 and up) now allow you to keep the language files with the mods and blocks so they are self-contained and you don't have to do so much work with language files.

At this time (June, 2008) the language folder in block_attendance_for_v19/mod/attforblock is missing. The file attforblock.php that should be in this missing language folder is instead in the attendance language folder. As a result, attforblock does not have its ten (yes, only ten) strings defined. This is very noticeable because the modulename and modulenameplural strings (the labels that show up in the main course page) are defined here.

This means that you are going to see modulename and modulenameplural in square brackets everywhere the author intends you to see Attendance and Attendances.

Copy (not move) the lang folder from blocks/attendance/ to mod/attforblock/. This does lead to a duplicate language file in each folder, but is less work than moving half of the language files one at a time!

Additional Considerations You might consider editing the attforblock.php language file and replacing each occurrence of 'Attendances' with 'Attendance'. Some dictionaries say that attendances is the plural form of attendance while others say there is no plural form.