Open Badge Factory

General plugins (Local) ::: local_obf
Maintained by OBF Admin, Antti Koskinen, Emilie Lenel
Issue Open Badges created in Open Badge Factory from Moodle, and display badges issued to users.
Latest release:
609 sites
323 downloads
47 fans
Current versions available: 4

Open Badge Factory - plugin

Open Badge Factory is a cloud platform that provides the tools your organization needs to implement a meaningful and sustainable Open Badges system.

Description

With the local_obf plugin you can handle your Open Badges created in Open Badge Factory in single or multiple Moodle site. 

It enables users to:

  • Issue badges to students
  • Create badge awarding rules: based on course completion, based on activity completion, or on profile completion.
  • Get badge awarding history
  • Display earned badges on profile and connect the Open Badge Passport backpack


Installing the plugin

This plugin requires an authentication key provided by Open Badge Factory (Premium or Pro account needed).

Please note that you can only generate Oauth2 API keys with a Pro account. We recommend using OAuth2 keys when possible as legacy API keys can be used with Premium but Open Badge Factory will not provide any support.

NEW! Pro customers can set specific badge permissions on Moodle categories (link OBF categories with Moodle categories).

Multitenancy

  • You can connect one OBF account to multiple Moodle sites.
  • You can connect multiple OBF accounts to your Moodle site using OAuth2 API keys.

Usage


No support in the comments section on this page

Please note that we don't provide any support for this plugin in the comments section on this page.

We appreciate your commendation and reviews for this plugin in the comments. For bug reports and support requests (pro only), please contact our helpdesk.

Thanks for your cooperation.

Screenshots

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

Contributors

OBF Admin (Lead maintainer)
Emilie Lenel: Editor
Leo Vainio: Developer
Heidi Wikman: Developer
Mika Veljo: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Ray Havlin
    Wed, 25 Jul 2018, 8:50 AM
    Piling on here... Update for 3.5 please! smile
  • Richard Samson
    Thu, 31 Jan 2019, 6:19 PM
    Any news about the version for Moodle 3.6? We need to know when this is planned so we can organise our own Moodle update strategy. OBF is one of our last major plugins to keep us waiting!
  • Niraj Kapil
    Fri, 22 Mar 2019, 3:53 PM
    Thanks For Sharing This Article This Article Very Helpful For Me
  • Supriyo Khan
    Sat, 23 Mar 2019, 2:23 AM
    thank you for this
  • Melvyn Gomez
    Fri, 4 Feb 2022, 9:09 AM
    there is a limit of badges to show? i can only see 120 badges
  • my pc
    Thu, 17 Mar 2022, 3:03 AM
    CSR output empty.error:0906D06C:PEM routines:PEM_read_bio:no start line
    error:02001002:system library:fopen:No such file or directory
    error:2006D080:BIO routines:BIO_new_file:no such file
    error:0E064002:configuration file routines:CONF_load:system lib
    error:02001002:system library:fopen:No such file or directory
    error:2006D080:BIO routines:BIO_new_file:no such file
    error:0E064002:configuration file routines:CONF_load:system lib
    error:02001002:system library:fopen:No such file or directory
    error:2006D080:BIO routines:BIO_new_file:no such file
    error:0E064002:configuration file routines:CONF_load:system lib
    error:02001002:system library:fopen:No such file or directory
    error:2006D080:BIO routines:BIO_new_file:no such file
    error:0E064002:configuration file routines:CONF_load:system lib



    How can we solve this error please. I am using xampp as localhost
  • Cédric Floquet
    Tue, 11 Oct 2022, 6:13 PM
    Is there a way to limit which badges are shown in Moodle ? If the plugin is used within a large organisation, the connection between the plugin and Moodle with the OAuth key makes all the badges visible when someone wants to use a few badges in his/her course. Is any segmentation possible ?

    Also, is there (technical) documentation about the plugin available somewhere ? We changed some of the permissions that the plugin adds to Moodle, in order to show/hide some of the links related to OBF in the course settings for specific roles, but we had to test the permissions and guess what they were doing.
  • Emilie Lenel
    Tue, 11 Oct 2022, 7:25 PM
    Hi @Cédric Floquet, You can indeed filter what badges can be used in your Moodle. In OBF, from the Creator tools, on your badge - step 3 permissions - you have a specific checkbox "Visible in external tools". If ticked, your badge will be available in Moodle. We are currently rebuilding our technical documentation, including all the related permissions descriptions, the new doc will be published in the coming days. Thanks for your patience.
  • Cédric Floquet
    Fri, 21 Oct 2022, 10:09 PM
    Hi @Emilie Lenel. Thanks for your answer. I'm happy to hear that technical docs are on the way smile

    I hit another problem in the meantime. While the Factory part of the plugin seems to work fine (we see our OBF badges in Moodle, and we can award them in our courses depending on completion settings), the Passport part of the plugin, available in every user's Preferences page, doesn't want to connect to OBP. We tested the plugin on a dummy Moodle which was hosted on an external provider's server, and it worked. But on our self-hosted Moodle at the university, each time we try to connect a user's profile to their Passport account, we receive an email giving us a token which we have to enter on Moodle to verify the address, and when we enter it, Moodle responds "Error writing to the database". I can't find why it doesn't work on this installation of Moodle, but works on another one. Do you have any ideas ?

    Thanks
    Cédric
  • Enovation Dev Team
    Thu, 12 Oct 2023, 4:31 PM
    Hi, for premium subscribers that needs to use Token (legacy api) instead of Oauth2 key and secret, make sure that you are allowing outbound connectivity from the server hosting Moodle to openbadgefactory.com, not only from from openbadgefactory.com to the server. If outbound connectivity is not enabled you will have an error trying to save the token to the field (that is only available for 10 minutes) and there's no error message or information in the documentation about this.
  • Antti Koskinen
    Fri, 13 Oct 2023, 9:03 PM
    @Enovation Dev Team, thank you for the feedback. The plugin uses API calls for most of the features so outbound connections to openbadgefactory.com must be allowed in general.
  • Melvyn Gomez
    Wed, 1 Nov 2023, 11:22 AM
    with the last version of this plugin, we are getting this message when trying to issue a badge manually

    Invalid get_string() identifier: 'apierror408' or component 'local_obf'. Perhaps you are missing $string['apierror408'] = ''; in /var/www/html/moodle/local/obf/lang/en/local_obf.php?
    line 356 of /lib/classes/string_manager_standard.php: call to debugging()
    line 7414 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
    line 459 of /local/obf/classes/client.php: call to get_string()
    line 964 of /local/obf/classes/client.php: call to classes\obf_client->request()
    line 475 of /local/obf/classes/badge.php: call to classes\obf_client->issue_badge()
    line 172 of /local/obf/classes/obf_assertion.php: call to classes\obf_badge->issue()
    line 133 of /local/obf/issue.php: call to classes\obf_assertion->process()

    Trazado de la pila (stack):
    line 458 of /local/obf/classes/client.php: Exception thrown
    line 964 of /local/obf/classes/client.php: call to classes\obf_client->request()
    line 475 of /local/obf/classes/badge.php: call to classes\obf_client->issue_badge()
    line 172 of /local/obf/classes/obf_assertion.php: call to classes\obf_badge->issue()
    line 133 of /local/obf/issue.php: call to classes\obf_assertion->process()
  • Antti Koskinen
    Mon, 6 Nov 2023, 5:06 PM
    Hi @Melvyn Gomez, the issue is fixed.
  • Melvyn Gomez
    Thu, 9 Nov 2023, 2:30 AM
    thank you @Antti Koskinen, looks like the company made a fix in their API too
  • Melvyn Gomez
    Fri, 12 Jan 2024, 7:54 AM
    now using the version 1.0.5 we are getting this error
    Trazado de la pila (stack):
    line 200 of /local/obf/classes/criterion/obf_criterion_activity.php: Error thrown
    line 283 of /local/obf/classes/criterion/obf_criterion_activity.php: call to classes\criterion\obf_criterion_activity::get_course_activities()
    line 78 of /local/obf/form/coursecriterion.php: call to classes\criterion\obf_criterion_activity->get_options()
    line 214 of /lib/formslib.php: call to obf_coursecriterion_form->definition()
    line 798 of /local/obf/renderer.php: call to moodleform->__construct()
    line 652 of /local/obf/renderer.php: call to local_obf_renderer->render_badge_criteria_course()
    line 421 of /local/obf/renderer.php: call to local_obf_renderer->print_badge_info_criteria()
    line 215 of /local/obf/badge.php: call to local_obf_renderer->page_badgedetails()
Please login to post comments