Sadik Mert
Lead maintainer
The Top Active Courses block is a Moodle plugin that displays a visually appealing list of the most active courses on your Moodle site. It is designed to help users discover popular courses they are not yet enrolled in, but where self-enrolment is possible. The block uses a modern card-based layout with course images, titles, and direct links to the course pages.
styles.css.The block queries the Moodle logstore to find courses with the highest number of unique user interactions in the last 7 days.
For each course, it checks if the current user is not enrolled and if self-enrolment is enabled.
The block then displays up to X (Default: 10) of these courses as cards, each showing the course image, title, and a link to the course page.
There are two ways to install the Top Active Courses block:
topactivecourses folder into your Moodle site's blocks directory.The block provides two admin settings available under
Site administration > Plugins > Blocks > Top Active Courses:
These settings allow site admins to customize how many and how recent the displayed courses are.
block/topactivecourses:addinstance — Allows a user to add the block to a course page (default: editingteacher, manager).block/topactivecourses:myaddinstance — Allows a user to add the block to their dashboard (default: all users).The block calculates course popularity by counting unique user interactions (log entries) in the Moodle logstore within the configured time range. Only courses with self-enrolment enabled and in which the user is not already enrolled are considered.
This block does not store any personal data. See classes/privacy/provider.php for details.
Sadik Mert
This plugin is licensed under the GNU General Public License v3.0. See the LICENSE file for details.