Moodle Plugins directory: Top Active Courses: Versions: 1.0.0 | Moodle.org
Top Active Courses
Top Active Courses 1.0.0
Top Active Courses Block for Moodle
Overview
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.
Features
- Shows the most active courses from the last 7 days, based on user interactions (log entries).
- Excludes courses in which the current user is already enrolled.
- Only displays courses where self-enrolment is enabled and available.
- Modern, responsive card layout with course images, titles, and links.
- Customizable appearance via the included
styles.css. - No personal data is stored by the block.
How It Works
- 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.
Installation
There are two ways to install the Top Active Courses block:
Via Moodle plugins Directory (recommended):
- Download and install the plugin directly from the Moodle admin interface under Site administration > Plugins > Install plugins.
- Upload the ZIP file or install from the Moodle plugins repository.
- Follow the on-screen instructions to complete installation.
Manual Installation:
- Copy the
topactivecoursesfolder into your Moodle site'sblocksdirectory. - Visit Site administration > Notifications to complete the installation.
- Add the block to your dashboard or course pages as desired.
- Copy the
Configuration
The block provides two admin settings available under Site administration > Plugins > Blocks > Top Active Courses:
- Top X courses: Number of courses to display (default: 10).
- Time range (days): Number of days to look back for user activity (default: 7).
These settings allow site admins to customize how many and how recent the displayed courses are.
Capabilities
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).
Course Images
- The block attempts to display the course summary image.
- If no image is set for a course, a default placeholder image from Picsum is shown.
How popularity is calculated
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.
Privacy
This block does not store any personal data. See classes/privacy/provider.php for details.
Author
- Sadik Mert
E-Mail: sadikmert@hotmail.de
License
This plugin is licensed under the GNU General Public License v3.0. See the LICENSE file for details.
Version information
- Version build number
- 2025071902
- Version release name
- 1.0.0
- Maturity
- Alpha
- MD5 Sum
- d3d88e98025aa9b73812338a46c96658
- Supported software
- Moodle 4.0, Moodle 4.1, Moodle 4.2, Moodle 4.3, Moodle 4.4, Moodle 4.5, Moodle 5.0
- The more recent release 1.1.0 (2025091503) exists for Moodle 4.0
- The more recent release 1.1.0 (2025091503) exists for Moodle 4.1
- The more recent release 1.1.0 (2025091503) exists for Moodle 4.2
- The more recent release 1.1.0 (2025091503) exists for Moodle 4.3
- The more recent release 1.1.0 (2025091503) exists for Moodle 4.4
- The more recent release 1.1.0 (2025091503) exists for Moodle 4.5
- The more recent release 1.1.0 (2025091503) exists for Moodle 5.0
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
Default installation instructions for plugins of the type Blocks
- Make sure you have all the required versions.
- Download and unpack the block folder.
- Place the folder (eg "myblock") in the "blocks" subdirectory.
- Visit http://yoursite.com/admin to complete the installation
- Turn editing on in any home or course page.
- Add the block to the page
- Visit the config link in the block for more options.