My Enrolled Courses

Blocks ::: block_my_enrolled_courses
Maintained by DualCube Team
This is super impressive solution you would require if you want to manage your course enrollment effortlessly.
Latest release:
334 sites
37 fans
Current versions available: 2

MY Courses

My Enrolled Courses block enables users to show or hide the courses they are enrolled in. The block contains links to the courses enrolled, the visibility of which can be changed from the settings panel, as per requirement.  You can hide the ones you are done with and change their visibility again, if need be. One click on a course link will redirect to that particular course page.

This block can be added to any page of a Moodle site. It is perfectly compatible with Moodle versions 3.2 - 4.2

How to access the settings page of the block?

Go to My Enrolled Courses block, click on Show/Hide and you'll land on the Settings panel of the block.

On settings page, the left column - 'Visible courses'- contains all the enrolled courses and the ones you want to see in the block. The right column i.e. 'Hidden courses' contains the courses you don't wish to see in the list of courses in the block.

How to hide a course?

To make a 'visible' course 'hidden', select Courses from the 'Visible courses' list, and then click 'Hide courses'.

How to make a course Visible?

To make a course 'visible' again, the user have to select courses from the 'Hidden courses' list and then click 'Show courses'. Your 'Hidden' course will reappear in the block.


  • DualCube


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3


DualCube Team (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Wed, Aug 5, 2015, 8:49 PM

    We apologize for the inconvenience caused at your end. There was a glitch which we have fixed now, please go ahead and install the block again and I believe you won't face any issues going forward.

    Let me know if you encounter any other problems at all.

    Thanks and Regards,
    Team Dualcube
  • Wed, Sep 23, 2015, 6:01 PM
    Thank you - great plugin. Useful for moodle sites where teachers and course admins are enrolled on many courses but regularly edit only a few of these pages in practice.
  • Wed, Sep 23, 2015, 8:21 PM
    Hi Behan,

    Thank you so much for your appreciating words! We are glad that you tried this plugin and it could be of helpsmile. Do let us know if you face any problems and need any assistance.

    Thanks and Regards,
  • Nishant
    Tue, Feb 16, 2016, 1:48 PM
    Hi guys,
    This module working fine for student. But when I login by admin then getting some error on some pages i.e.

    Fatal error: Call to undefined function block_my_enrolled_courses_visible_in_block() in E:\Xampp\htdocs\moodle_lmsdevnew\blocks\my_enrolled_courses\block_my_enrolled_courses.php on line 51

    Please help. What is the issue is this.

    Nishant Pandya
  • Tue, Feb 16, 2016, 8:45 PM
    Hi Nishant,

    Thanks for reaching out!

    May I know which version of the Moodle you are using and also it would be great if you can please specify for which pages the error message is coming. Just provide us the links and we will check as we can not see any errors at our end.

    Thanks and Regards,
  • Wed, May 4, 2016, 10:12 PM
    Hi guys,

    Cheers for a great plugin, been using it since September without any issues till last friday. A student was enrolled in a course which was deleted. when she tried to access the home page (where the block is used) it returned errors to which she could not access the page. I had to go into the Db to remove a couple records refering to the deleted course id manually before it worked. Have you had any other cases of this or is there any checks/changes I can make for the plugin to check Db record changes?
  • Thu, May 5, 2016, 1:23 PM
    Hi Chris,

    Thanks for your message! No, there are no such issues that have been reported yet.Can you please provide us any screenshot of the error that you got so that we can debug the issue. You can send the screenshot to

    Thanks and Regards,
  • Mon, May 16, 2016, 2:37 PM
    Hello Sam,

    Thanks for reaching out to us!

    Please share your thoughts in more details. Because from your message it is not properly clear to us. I believe the course name is saved in the database. If we are writing test course then how it could be changed in other language. Is there any other settings/ format to save? Is it possible for you to provide screenshots to us.

    Regards, Priyasha
  • Mon, Dec 5, 2016, 1:01 PM
    Will there be a updated version of this plugin for moodle 3.2 ?
  • Mon, Dec 12, 2016, 9:41 PM
    @malaka udawatta

    Your point: Will there be a updated version of this plugin for moodle 3.2 ?

    >> My enrolled courses plugin is fully compatible with moodle 3.2
  • Mon, Dec 4, 2017, 11:16 AM
    Doesn't work well in 3.4, screwing up the display if multiple language pack is added
  • Tue, Dec 5, 2017, 2:47 PM
    Hi! Scott
    Thanks for reaching out to us. Please install the latest version of this plugin and you will have no issue like this.
    Thank you.
  • Fri, Feb 21, 2020, 8:21 PM
    Hi guys.
    We are also getting the same issue as Chris Chapman on 4 May 2016 where a user logs in and then when it redirects to homepage we get a "Can't find data record in database table course." error. We are using Moodle 3.5.6.

    Debuggin message was:
    Warning: array_diff(): Argument #1 is not an array in /usr/www/users/myumpgarjd/blocks/my_enrolled_courses/locallib.php on line 260 Warning: array_diff(): Argument #2 is not an array in /usr/www/users/myumpgarjd/blocks/my_enrolled_courses/locallib.php on line 261 Warning: asort() expects parameter 1 to be array, null given in /usr/www/users/myumpgarjd/blocks/my_enrolled_courses/locallib.php on line 262 Notice: Undefined offset: 65 in /usr/www/users/myumpgarjd/blocks/my_enrolled_courses/locallib.php on line 192 Notice: Trying to get property 'fullname' of non-object in /usr/www/users/myumpgarjd/blocks/my_enrolled_courses/locallib.php on line 192

    Please advise if anyone have found a solution yet.
  • We also constantly face a problem like
    Daniël de Villiers Hugo. Sometimes some users get the error "Can't find data record in database table course."
    Only a complete reinstallation of the plugin helps!
    What is the reason for this?
  • Fri, Jul 15, 2022, 3:05 PM
    Dear Team,

    We have noticed one thing that Course name formatting is missing. In block {mlang} tag is showing instead of converting it to particular language.
    Eg: {mlang en}Test Course - 08.02.22(EN){mlang}{mlang fr}Test Course - 08.02.22(FR){mlang}

    1. Go to line no. 128, 164, 192 in this path /blocks/my_enrolled_courses/locallib.php
    2. Add format_string() whereever we are showing course fullname.
    Example: $anchor = html_writer::link($url, format_string($courses[$id]->fullname));

    Kindly verify it and update the code.

    Thank You.
1 2
Please login to post comments