Level up! Availability

Availability conditions ::: availability_xp
Maintained by Frédéric Massart ⭐
Restrict access to course content until students reach the required level.
Latest release:
1581 sites
78 fans
Current versions available: 2

Using the experience points and levels generated from the usage of the block Level up!, you can limit the access to some course content such as activities, resources or sections according to the student's level.

How to use

  1. Install the block Level up!
  2. Install this plugin
  3. Add the block 'Level up!' to a course
  4. Find the new 'Level' restriction under 'Restrict access' in activity/section settings

Provided by
Branch Up


This plugin is part of set Experience Points (XP).


Screenshot #0


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

Comments RSS

Show comments
  • Anthony Borrow
    Tue, Apr 22, 2014, 12:02 PM
    Fred - Thanks, I created the availability category in Moodle plugins. I will be giving these a quick look. Peace - Anthony
  • Anthony Borrow
    Tue, Apr 22, 2014, 12:03 PM
    What do you mean by link with block_xp - would you like a set created? If so, could you describe what xp means and suggest a possible name for the set and a description?
  • Tue, Apr 22, 2014, 12:32 PM
    Yes, I mean a set, the same way it was done with repository_evernote and portfolio_evernote. The difference here is that availability_xp requires block_xp to work.

    XP means Experience (or Experience Points), it is often used in video games.

    A name? "XP" maybe? I am not sure exactly. The description could something like: "Gamification plugins working with experience points given to the students." - I am not sure to be honest.
  • Anthony Borrow
    Tue, Apr 22, 2014, 12:55 PM
    Fred - I was able to get everything installed but had trouble getting it to work. When I went back to the rules.php it showed that it was disabled; however, in the database (block_xp_config table) it shows it enabled for the course. When I went to an existing activity, I did not see any availability options related to xp. I will work on creating the set and adding these to them. Peace - Anthony
  • Anthony Borrow
    Tue, Apr 22, 2014, 12:58 PM
    Code checker revealed mostly just spacing issues in the js file - I would like better checking on js files but the bottom line is that there were no significant concerns with the code itself.

    availability/condition/xp/classes/frontend.php - 1 error(s) and 0 warning(s)
    availability/condition/xp/classes/condition.php - 1 error(s) and 0 warning(s)
    availability/condition/xp/yui/build/moodle-availability_xp-form/moodle-availability_xp-form-min.js - 42 error(s) and 0 warning(s)
    availability/condition/xp/yui/build/moodle-availability_xp-form/moodle-availability_xp-form.js - 1 error(s) and 0 warning(s)
    availability/condition/xp/yui/build/moodle-availability_xp-form/moodle-availability_xp-form-debug.js - 1 error(s) and 0 warning(s)
    availability/condition/xp/lang/en/availability_xp.php - 1 error(s) and 0 warning(s)
    availability/condition/xp/version.php - 1 error(s) and 0 warning(s)
    availability/condition/xp/README.txt - 1 error(s) and 0 warning(s)

    Peace - Anthony
  • Anthony Borrow
    Tue, Apr 22, 2014, 1:04 PM
    You may want to add to the README file the requirement to Enable conditional access. I was able to see it working after that. Peace - Anthony
  • Tue, Apr 22, 2014, 2:08 PM
    Thanks Anthony.

    I am surprised the block was displayed as disabled. I will investigate and fix those comments in a later version.

    Many thanks.
  • Wed, May 13, 2015, 5:45 PM
    Hello... when do you think that de version for 2.9 is available? It blocks the upgrade...

    Kind regards!
  • Ricardo Caiado
    Wed, Dec 7, 2016, 8:47 PM
    Any upgrade to Moodle 3.2?
  • Thu, Dec 8, 2016, 10:07 AM
    Sorry, I thought I had marked the plugin as available for 3.2. You can download it now. Let me know if you face any issue.
  • Mon, Jan 15, 2018, 4:24 PM
    Good day, i try to set level up by course activity such that after completing an activity from set of 5 activities there a level up notification of level up to the next level activity, how can i ge to do that
  • Wed, Nov 7, 2018, 6:44 AM

    How to install this plugin manually?
  • Thu, Nov 8, 2018, 4:39 PM
    Hi Jonathan, please follow the instructions here: https://github.com/FMCorz/moodle-availability_xp#installation
  • Ricardo Caiado
    Thu, Dec 19, 2019, 10:35 PM

    I have just upgraded to Moodle 3.8 and got this error message:

    "Exception: Class \availability_xp\frontend not found"

    Any plan to upgrade this plugin to M3.8?

    All the best,

  • Fri, Dec 20, 2019, 1:23 PM
    Hi Ricardo. We are unable to replicate this problem, please make sure that you've purged your cache as the class that aren't any reason for the error you are seeing to occur after a 3.8 upgrade. At least not from our plugin's point of view. We flagged this version of the plugin as being compatible, please raise an issue on Github if you're still experiencing issues. Thank you!
1 2
Please login to post comments