Moodle Plugins directory: Pin User | Moodle.org

Pin User
The Pin User Block enhances Moodle courses by allowing administrators and teachers to assign up to two customizable badges next to each user’s name on the course participants page. Badges are driven by profile field conditions—such as empty, not empty, equals, contains, or does not contain—and can be styled with custom text, background, and font colors. Dynamic CSS loading ensures efficient performance, and visibility is restricted to users with the moodle/course:manageactivities
capability. This flexible solution streamlines participant recognition and course management workflows.
Configuration
Go to Site administration > Plugins > Blocks > Pin User.
Set the following options:
-
Profile field 1: shortname of the first profile field to evaluate (included custom profile field)
-
Condition 1: condition to apply (empty, not empty, equals, contains, does not contain)
-
Value 1: comparison value for the condition (if applicable)
-
Text 1: label to display on the badge
-
Badge 1 colors: background and text color
Repeat the same steps for Profile field 2 and its settings.
Usage
Add the Pin User block to a course:
Turn editing on > Add a block > Pin User.
Then go to the Participants page of the course:
Course > Participants.
Participant names will display one or two badges based on the configured conditions.
Comments