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
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
See http://docs.moodle.org/23/en/Database_templates for info on using the activity templates.
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
Wrong forum. Try the Roles and permissions forum.