Pin User

Blocks ::: block_pin_user
Maintained by Miguël Dhyne
Display customizable badges next to user names on a Moodle course's participants page, driven by profile field conditions and customizable styling.
Latest release:
6 sites
17 downloads
1 fans
Current versions available: 1

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.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Miguël Dhyne (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
Please login to post comments