← All projects
Open source2026

My Instructor

Moodle block that shows students their group's instructor (photo, name, groups, an optional intro or office hours, and a Send message button), visible only to students who share a group with that instructor. Supports one block per group and stores no personal data.

At a glance

Type
Moodle block
Language
PHP
Year
2026
MoodlePHPGroups

Why it exists

The block is added inside a course and configured with a single instructor. Students who share at least one group with that instructor see who their instructor is and can message them in one click; students outside those groups don't see the block at all.

Which roles count as an instructor is a site setting (Teacher by default), and a course with several groups can show one block per group. The block stores no personal data of its own.

Highlights

Instructor card

Profile picture and name linking to their profile, plus the groups they belong to.

Personal intro

Optional description of up to 100 words for an introduction or office hours.

Send message

Opens a conversation with the instructor directly.

Group-aware visibility

Only students who share a group see it; staff always see it, with a notice if the instructor has no group.