Posts made by Itamar Tzadok

With $USER, $COURSE (or $PAGE->course) and $OUTPUT try something like

        $params = array(
               'courseid' => $COURSE->id,
               'size' => 100
        );
        $image = $OUTPUT->user_picture($USER, $params);

hth smile

 

Not entirely clear what you're trying to do but it looks like most of it could/should be done in the course. You can definitely use the Database activity to record information about students progress, but with the current module you cannot have conditional display of the information. In the course level there is a powerful mechanism of conditional activities and sections which you could use for controlling access. hth smile