Restriction by badge

Availability conditions ::: availability_badge
Maintained by Picture of Tim LockTim Lock
Activities in a course can be restricted by a badge
Latest release:
361 sites
27 fans
Current versions available: 1

This plugin adds the functionality that an activity in a course can be restricted by a badge in courses or site level.


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


Picture of Tim Lock
Tim Lock (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of David Mudrák
    Tue, May 24, 2016, 9:14 PM

    Thanks Tim for sharing this plugin with the community. Any chance you could elaborate the plugin description a bit more and attach a screenshot of how it looks in action - e.g. how it appears in the activity settings form. Thanks.

  • Picture of David Mudrák
    Wed, Jun 15, 2016, 8:24 PM

    Thanks again Tim. I was able to successfully test the functionality of the plugin and did not spot any issues with the code that would prevent me from approving this now. You are cleared to land, welcome to the Plugins directory.

  • Picture of Gordon Mills
    Sat, Oct 29, 2016, 5:17 AM
    Tim I've installed the plugin and all checked ok. However it does not show in the plugins on site administration. Moodle 3.1
  • Randy Thornton
    Thu, Dec 1, 2016, 7:17 AM
    Gordon, it should appear in Site admin > Plugins > Availability restrictions > Manage restrictions, if installed properly.
  • Ricardo Caiado
    Wed, Dec 7, 2016, 8:46 PM
    Any upgrade to Moodle 3.2?
  • Picture of Tim Lock
    Thu, Dec 8, 2016, 5:27 AM
    Ricardo, Doesn't any changes required but I will review in the next few weeks.
  • Picture of Rob Mills
    Sun, May 7, 2017, 6:08 PM
    I'm getting error_selectbadge all of a sudden when it was working fine earlier.
    debug messages:
    line 7078 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
    line 184 of /availability/classes/frontend.php: call to get_string()
    line 425 of /course/moodleform_mod.php: call to core_availability\frontend::report_validation_errors()
    line 93 of /mod/folder/mod_form.php: call to moodleform_mod->validation()
    line 573 of /lib/formslib.php: call to mod_folder_mod_form->validation()
    line 523 of /lib/formslib.php: call to moodleform->validate_defined_fields()
    line 619 of /lib/formslib.php: call to moodleform->is_validated()
    line 150 of /course/modedit.php: call to moodleform->get_data()

    Any help greatly appreciated!

    Running Moodle 3.2.2 (Build: 20170313)
  • Picture of Rob Mills
    Mon, Aug 21, 2017, 8:42 PM
    It seems this plugin is no longer receiving attention. Still not working on current version of Moodle (3.2). That's a great pity it was useful.
  • Picture of Jari Vilkman
    Wed, Sep 27, 2017, 8:26 PM

    When will this be Moodle 3.3 compatible so we can install it with composer?
  • Picture of Alexandre Bento Martins
    Thu, Feb 8, 2018, 2:25 AM
    Any upgrade to MOODLE 3.4 ?
  • Guido
    Wed, Oct 10, 2018, 4:56 PM
    The github code worked for me on moodle 3.5
  • Picture of Rafael Rizo Scandian
    Sat, Mar 23, 2019, 4:19 AM
    Hi Tim,

    I've been using availability_badge for a couple of months now and it's been great. It would be even better if the restriction on the course page could be transformed into a link to the badges page, to help get students used to badges functionality in Moodle. Sometimes when a student has no idea of what a badge is, it can be too restrictive and frustating. Do you think that's doable? Any workaround maybe?

  • Picture of Th Malta
    Fri, Sep 6, 2019, 7:19 PM
    is this plugin discontinued? (as I am writing, the last version of Moodle is 3.7...)
  • Picture of Brian Pool
    Sun, Jul 5, 2020, 9:09 PM
    Would love for this to be certified for 3.8 LTS!
Please login to post comments