Blocks: Level up!

Maintained by Picture of Frédéric Massart Frédéric Massart
Engage your students! Gamify your students' learning experience by allowing them to level up in their courses. #gamification #game
2179 sites
184 fans
Moodle 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3

We created another gamification plugin! Check it out here: Stash.

Please support this plugin: add it to your favourites, star it on GitHub, or purchase the add-on!

Feature request and bug reports

Please report the issues you find, problems you experience or any feature request on the issue tracker. Thanks!


  • Automatically captures and attributes experience points to students' actions
  • Block that displays current level and progress towards next level
  • Report for teachers to get an overview of their students' levels
  • Notifications to congratulate students as they level up
  • A ladder to display the ranking of the students
  • Ability to set the number of levels and the experience required to get to them
  • Images can be uploaded to customise for the appearance of the levels
  • The amount of experience points earned per event is customizable
  • Page to display the list of levels and a description
  • Experience points are earned per course
  • An event is fired when a student levels up (for developers)

Additional features

Purchasing the Level up! Plus add-on unlocks additional features.

How are experience points calculated?

This block listens to events triggered in Moodle and captures some according to pre-defined rules. It then attributes experience points based on the information contained in the event. For more information about the events, refer to the documentation.

Only the users with the capability block/xp:earnxp can earn experience points. This capability is given by default to students. Also actions triggered by guests, non-logged in users or administrators are ignored.

The following events are always ignored:

  • Events from another context than course or module
  • Events having another educational level than participating
  • Events flagged as anonymous, e.g. in an anonymous Feedback

The rest is up to you. By default the plugin comes with a minimal set of rules to attribute experience points to actions, and to ignore some redundant ones. Visit the Rules page in the plugin itself to view or override them.

Note: Repeated actions within a short time interval are ignored to prevent cheating.

How to use one block for all courses

In order to gather experience points from all the courses a student is participating in, you have to set the admin setting Where are experience points used? to 'For the whole site'. This setting is located under "Site administration > Plugins > Blocks > Level up!". Once set, any block newly or previously added will display the total experience points of your student.


This plugin is part of sets Experience Points (XP), MoodleCloud, Gamification.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5
Screenshot #6


Picture of Frédéric Massart
Frédéric Massart (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of S Moodle
    Fri, 4 Aug 2017, 5:16 AM
    Hi, I have a question about rules posted here with a screenshot:
  • Picture of Frédéric Massart
    Fri, 4 Aug 2017, 11:18 AM
    Your question has been answered.
  • Picture of László Pauer
    Fri, 4 Aug 2017, 6:54 PM

    What is the criteria for editing the required xp levels? I can't edit the "XP required" fields on the Levels tab.

    My other issue is that when I want to add a new rule based on the completion of an activity, the dropdown list is empty, as seen in the screenshot:

    Am I missing something?

  • Picture of László Pauer
    Fri, 4 Aug 2017, 6:55 PM
    Oh and my site is 3.3, and the plugin version is the latest.
  • Picture of Frédéric Massart
    Fri, 4 Aug 2017, 9:30 PM

    This condition is not about activity completion, it is to restrict the activity in which the event occurs. I suspect that you do not have any activity in your course, or that you are using the plugin "site-wide", in which case only activities on the frontpage display.

    You cannot edit "XP required" when you are using the algorithm to set the levels. In the first section, expand for more options, you should be fine then.

  • Ricardo Caiado
    Mon, 7 Aug 2017, 10:12 PM

    Using Moode "3.1"

    Just updated the plugin to "v3.0.0"

    Now when I try to access any activity setting I got this error message:

    Exceção - Class 'block_xp_manager' not found

    Outras informações sobre este erro
    Debug info:
    Error code: generalexceptionmessage
    Stack trace:

    line 47 of /availability/condition/xp/classes/frontend.php: Error thrown
    line 128 of /availability/classes/frontend.php: call to availability_xp\frontend->allow_add()
    line 619 of /course/moodleform_mod.php: call to core_availability\frontend::include_all_javascript()
    line 105 of /mod/page/mod_form.php: call to moodleform_mod->standard_coursemodule_elements()
    line 204 of /lib/formslib.php: call to mod_page_mod_form->definition()
    line 95 of /course/moodleform_mod.php: call to moodleform->__construct()
    line 255 of /course/modedit.php: call to moodleform_mod->__construct()
  • Picture of Frédéric Massart
    Tue, 8 Aug 2017, 12:17 AM
    Thanks for your feedback Ricardo. This seems to be a bug coming from the other plugin availability_xp. I am hoping to get a fix shortly!
  • Picture of Frédéric Massart
    Tue, 8 Aug 2017, 1:07 AM
    There, I've released the v3.0.1. I'm hoping that the bug is fixed. Sorry for the inconvenience! Please let me know if you face any other issues. There has a been a lot of work done in v3.0 (15k lines added) and I'm expecting some other bugs to have let themselves hide in my code.
  • Picture of Frédéric Massart
    Tue, 8 Aug 2017, 1:12 AM
    I've also released a newer version of the availability plugin (2.0) to make it work with the newer version of Level up!.
  • Ricardo Caiado
    Tue, 8 Aug 2017, 1:15 AM

    Both (block/availability) are working just fine!!!

  • Picture of Francois PAR
    Thu, 10 Aug 2017, 8:07 PM
    Very nice new version. I like the links with icons below the ladder.
    Good job!
  • Picture of Phuong Hoang
    Thu, 10 Aug 2017, 9:12 PM
    Hi Frédéric,
    This new version's amazing! I'm looking forwards to displaying Level up in block.
  • Picture of Frédéric Massart
    Thu, 10 Aug 2017, 10:50 PM
    Thank you both for your kind messages! It's always nice to hear your feedback, especially when it's positive! \o/
  • Picture of dnyaneshwar somwanshi
    Sun, 20 Aug 2017, 2:19 PM
    best plugin i ever seen. when will be this plugin ready for moodle mobile. i am looking for mobile support. as maximum students uses moodle mobile it is needed.
  • Picture of Frédéric Massart
    Sun, 20 Aug 2017, 11:52 PM
    Thanks, I'm working on enabling support for the mobile app in a future version.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Please login to post comments