Your Moodle version

Availability conditions: Level availability

availability_xp
Maintained by Picture of Frédéric Massart Frédéric Massart
Restrict access to an activity according to a user's experience level.
3k
178
14

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

Sets

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

Contributors

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 Frédéric Massart
    Mon, Apr 21, 2014, 5:48 PM
    Hello reviewers,

    Could you please link this module with block_xp?

    Also, it seems that the availability_xxx frankenstyle is not yes referenced on the database, could that be added and the plugin fixed to fit in that category? http://docs.moodle.org/dev/Availability_API

    Many thanks!
    Fred
  • 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?
  • Picture of Frédéric Massart
    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/src/form/js/form.js
    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
  • Picture of Frédéric Massart
    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.
    Fred
  • Picture of Fernando Rodrigues
    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!
Please login to post comments