Level up! - Gamification 🏅

Blocks ::: block_xp
Maintained by Frédéric Massart ⭐
🔥 🤩 The easiest way to add gamification to your Moodle site! Engage your students! Gamify their learning experience by allowing them to level up in their courses. #gamification #game
Latest release:
8707 sites
483 fans
Current versions available: 2

Version   Moodle   Favourites   Since  

Visit our website at levelup.plus.

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

What's new?

With a focus on UX, here are some of the highlights of our recent releases.

  • Revamp user interface to setup the levels
  • Redesigned rule picker to include rule description
  • New rule to target an activity by name (Level up! Plus add-on required)
  • Downloadable logs (Level up! Plus add-on required)
  • See the latest release notes

Feature request and bug reports

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


  • Automatically attributes points to students for their 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 leaderboard to display the ranking of the students
  • Ability to customise the number of levels, the points they require and their appearance
  • Total control over the points earned per action
  • Unlock content when a certain level is reached
  • Experience points earned per course, or for the entire site
  • Support for shortcodes to include in content
  • GDPR compliant

Level up ! Plus add-on features

Purchasing the Level up! Plus add-on unlocks these features:

  • Target an activity by name
  • Grade-based rewards
  • Team leaderboards
  • Activity completion support
  • Course completion support
  • Individual rewards
  • Mobile app support
  • Course selection rule
  • Resilient cheat guard
  • Limit learners rewards in time frame
  • Progress bar can display progress towards next or ultimate level
  • Additional default level badges
  • Substitute experience points for other symbols
  • Viewing the block on someone's profile displays their level
  • Import points from a CSV file
  • IOMAD support for the leaderboard and team leaderboard
  • Download the report
  • Download the logs
  • Email support

Visit our website for more information on Level up! Plus.

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! > General settings". Once set, any block newly or previously added will display the total experience points of your students.

How are experience points calculated?

Please refer to the Level up! documentation.

How to unlock content at a certain level?

Please refer to the Level up! documentation.

How to unlock a course at a certain level?

Please refer to the Level up! documentation.

Shortcodes supported

What are those? Shortcodes can be used in text editors throughout Moodle to include or modify the content. The plugin Shortcodes must be installed to enable them.

Level up! comes with shortcodes to display the learner's level badge, their progress bar, or even the leaderboard anywhere you like. Shortcodes can also be used to conditionally display content according to a learner's current level. For a list of available shortcodes and their documentation, please refer to Level up! documentation.

Provided by
Branch Up


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


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5
Screenshot #6
Screenshot #7
Screenshot #8
Screenshot #9


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

Comments RSS


  • Mon, May 21, 2018, 4:05 PM
    Hi Mohamed,

    This must be caused by a misconfiguration of nginx, please refer to the following thread: https://github.com/FMCorz/moodle-block_xp/issues/79

  • Tue, May 22, 2018, 3:29 PM
    Hi Fredweic,
    Thank you for your response, I will follow up the link and will update you,
  • Thu, May 24, 2018, 5:52 PM
    Hi Frédéric,
    I followed the URL but I can't see any guides for windows and IIS, do you have a direct link on how to apply this in windows and IIS?
  • Thu, May 24, 2018, 6:01 PM
    Hi Mohamed. I'm not familiar with IIS, but according to this documentation (https://docs.moodle.org/33/en/Internet_Information_Services#URL_rewriting), the problem should solve itself by using a rewrite rule such as: {R:1}\?_r={R:2}
  • Thu, May 24, 2018, 6:57 PM
    Hi Frédéric,
    I had applied the URL rewrite rule and restarted the IIS, but still having the same error.
    a screenshot of what I did here https://taifedusa-my.sharepoint.com/:i:/g/personal/matia_tu_edu_sa/EbifsmWODXJJnFqICuKzDUIBp12uK1hbya0wJZtiFuDANQ?e=MiGjs3

    any Idea how to troubleshoot this?
  • Thu, May 24, 2018, 11:01 PM
    This does not include the rule I suggested to use. The alternative is to disable slasharguments altogether.
  • Sun, May 27, 2018, 1:42 AM
    Hi Frederic,
    I created a new rewrite rule you can check it here https://1drv.ms/u/s!Amdk-vbboLpgh0qcGTN2p81i8R60 and I also made a test pattern shown in the screenshot is that the expected values for the rewrite?
  • Sun, May 27, 2018, 2:11 AM
    Hi Frederic,
    It is now working fine for me
    the pattern should be ^(blocks\/xp\/[^\?]+?\.php)(\/.+)$
    and the rewrite URL should be {R:1}?_r={R:2}
    screenshot below show the correct rule for the workaround


    Thank you for your help smile

    this rewrite {R:1}\?_r={R:2} is not correct
  • Thu, Jul 19, 2018, 6:16 PM
    Hi Frédéric,
    Thanks a lot for combining Level up with Shortcodes. Brilliant! Finally I can display Ladder directly in html block. However, it would be great if ladder could be displayed more neatly or directly in Level up blocks instead of redirecting to a page.
    - my screenshot:

  • Thu, Jul 19, 2018, 6:18 PM
    Hi Phuong, thank you for your feedback, we will consider it for future upgrades. Feel free to raise issues on Github if you have other concerns. Thanks!
  • Thu, Jul 19, 2018, 6:21 PM
    Also, note that the shortcode xpladder is _not_ the just the top 5, it is actually displayed according to the current user. As you probably are an admin/teacher and are not ranked, you see the top students. If you login as the 20th student, the ladder will show students ranked from 18th to the 24th.
  • Mon, Jul 30, 2018, 11:55 AM
    Hi Frederic,

    Love the plugin! Thanks for the great work!

    Question - is it possible to grade a certain number of XP based on a grade received in a quiz?

    For example, a quiz will have 5 Grade Boundaries, being High Distinction, Distinction, Credit, Pass, Fail. Is it possible award say 10XP for HD, 8 for D, 6 for C, 3 for P and 0 for F?

    Appreciate the assistance!

  • Mon, Jul 30, 2018, 12:04 PM
    Hi Ray. Thanks for your kind words. Not grade-based rewards are not supported at the moment, but it's high on our priority list!
  • Sat, Nov 24, 2018, 12:02 PM
    Cool plugin! On my site, I want to reward participants who rate the forum posts of other participants. I’d also like to display the name of the poster’s level next to forum posts (e.g. “Beginner,” “Expert” etc.). It doesn’t look like the current short-codes would support that— I only see the ability to display based on the current user. Do you have any suggestions?
  • Mon, Nov 26, 2018, 11:56 AM
    Hi Elizabeth. Ratings do not seem to be triggered events when they occur, they would be needed to enable support in Level up!. Displaying the level of another person's than the currently logged in one is possible, but not with shortcodes. It requires a bit of coding, here are some snippets that you may find useful: https://gist.github.com/FMCorz/2e6d29c8dda5ec9d6d6c349d6b2e8528
Please login to post comments