Restriction by badge

Availability restriction ::: availability_badge
Maintained by Brian Pool
Activities in a course can be restricted by a badge
Latest release:
323 sites
92 downloads
29 fans
Current versions available: 2

This plugin adds the functionality that an activity in a course can be restricted by a badge in courses or site level.  If there are no appropriate badges, the restriction will not show when adding a new restriction.

Screenshots

Screenshot #0
Screenshot #1

Contributors

Brian Pool (Lead maintainer)
Tim Lock: Original author
Please login to view contributors details and/or to contact them

Comments

Show comments
  • Gravatar is a privacy violator
    Thu, 1 Dec 2016, 7:17 AM
    Gordon, it should appear in Site admin > Plugins > Availability restrictions > Manage restrictions, if installed properly.
  • Ricardo Caiado
    Wed, 7 Dec 2016, 8:46 PM
    Any upgrade to Moodle 3.2?
  • Tim Lock
    Thu, 8 Dec 2016, 5:27 AM
    Ricardo, Doesn't any changes required but I will review in the next few weeks.
  • Rob Mills
    Sun, 7 May 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)
  • Rob Mills
    Mon, 21 Aug 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.
  • Jari Vilkman
    Wed, 27 Sept 2017, 8:26 PM
    Hello,

    When will this be Moodle 3.3 compatible so we can install it with composer?
  • Alexandre Bento Martins
    Thu, 8 Feb 2018, 2:25 AM
    Any upgrade to MOODLE 3.4 ?
  • Guido bei der Arbeit
    Wed, 10 Oct 2018, 4:56 PM
    The github code worked for me on moodle 3.5
    https://github.com/tlock/moodle-availability_badge
  • Rafael Rizo Scandian
    Sat, 23 Mar 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?

    Thanks!
  • Th Malta
    Fri, 6 Sept 2019, 7:19 PM
    is this plugin discontinued? (as I am writing, the last version of Moodle is 3.7...)
  • Brian Pool
    Sun, 5 July 2020, 9:09 PM
    Would love for this to be certified for 3.8 LTS!
  • Hoda Farazandeh
    Sun, 27 June 2021, 6:33 AM
    Hello there,
    Thanks for your useful plugin.
    Is there anyway to consider restriction if the badge is expired? In current situation it doesn't matter if the badge is expired or not.

    Thanks & Regards 🙌🏻
  • Dave Foord
    Tue, 10 Aug 2021, 6:19 PM
    As per other comments, this would be brilliant if this plugin could be updated for newer versions of Moodle, and as per Hoda's suggestion, if the enrolment could also recognise when a badge expires and then suspend the user at that point in time - this would be very powerful.
  • Brian Pool
    Mon, 2 Feb 2026, 5:35 AM
    I made the plugin for 4.5. Is there a way to become a co-maintainer and upload the new version?
  • Brian Pool
    Fri, 20 Mar 2026, 11:12 PM
    The plugin now respects Badge Expiration dates.
1 2
Please login to post comments