Based on the great work done in the fnmoodle project I recently worked on some code tracking activities viewed / completed by a user. I have isolated most of my code (apart from one line) in a new course format.
My code doesn't have the nice feature as in fnmmoodle of having the student click on a link below a resource to indicate when they feel they have finished with a resource. The default for all activities in a course is to decide they are completed when they have been viewed once. We just check the activity logs to see if the user has viewed an activity. You can write a custom function to decide whether an activity has been completed.
See the attached picture of the visual cues that my course format provides to tell a user how far they have progressed in a course :
- The check box after the activity name is ticked when the activity has been viewed / completed.
- The first activity in the course has an animated gif displayed after it that alternately flashes between an unchecked checkbox image and the text 'next'
- The topic in the course with the first incomplete activity is always highlighted (in a similar way to as if the teacher had clicked the highlight light bulb).
- Using an anchor in the html when the course view page is displayed we jump straight to the topic with the next incomplete activity.
Thought I would post this as it may be of use to others. Not sure if it deserves space in the CVS contrib repository.
Disclaimer : Images and inspiration courtesy of fnmoodle.
Jamie