Forums | Mahara Community
Support
/
Integrating Badges
23 February 2022, 22:06
Hello,
at our university we are using Mahara 21.04.
I connected my account on Mahara with my Badgr Backpack- account and I put the required badge on public. Unfortunately, there pop up an error message saying that there is no public badge funded on Badgr for my Email-Address.
May I know how to fix this issue, please?
Best regards from Germany
25 February 2022, 7:59
Hello Judith,
Since you said you could connect your account to Badgr, I assume that you have an account on badgr.com, which is the default Badgr URL in Mahara. Did you put your badgr in Badgr into a collection and make that public? I can see badges in a Mahara page with badges that are in a public collection.
Thank you
Kristina
28 February 2022, 20:22
Hello Kristina,
thanks for your answer-
Yes, my badge is public on Badgr and I am connected as well with Badgr on Mahara.
When I want to include the Badge into a page on Mahara, it appears the error message: "No public badge collection on badges found in the service Badgr Backpack" even my badge is public on Badgr.
Thank you,
Best regards,
Judith
02 March 2022, 8:24
Hi Judith,
Did you check that the URL in the config.php of your Mahara site is badgr.com? Do you see a token for Badgr when you are at 'Account menu → Preferences → Connected apps → Badgr'? Do you have your badge on Badgr in a public collection? As far as I know, a public badge is not enough. It needs to be in a public collection.
Thank you
Kristina
05 March 2022, 0:38
Hi Kristina,
thanks for your answer and your helpful advice that only public collections on Badgr can be shown on Mahara.
It works out now.
Best regards
Judith
27 October 2022, 20:39
Hi,
I am having an issue or two with Badgr and accessing my badges.
From my experience with Moodle, you can indeed access your badges, but, and it is a fairly big but, you need to be linked to the appropriate Badgr repository.
Badgr, in their infinite wisdom, have different repositories for different parts of the world, and if you are not linked to the correct one, you may not be able to access your badges/backpacks.
Currently, I am having some struggles in setting this in my config.php file: "badgr":"https://api.badgr.io/"
being that I am in the Europe region, I would guess that I should have something like: $cfg->openbadgedisplayer_source = '("badgr":"https://api.eu.badgr.io/")';
If anyone has done this setup before, I would be interested to hear how you solved this issue.
31 October 2022, 7:40
Hi Paul,
You may need the fix for Badgr. It'll go out with the next minor point release expected by the very end of 31 October 2022 in the last time zone that is still on 31 October. ;-)
Cheers
Kristina
24 November 2022, 14:54
Hi Paul,
Actually the issue will be more complicated than that as checking for "https://api.badgr.io/" is done as part of the blocktype/openbadedisplayer/lib.php file.
There will need to be some adjustment so that places where we do a comparison, eg
if ($backpack_url == 'https://api.badgr.io/') { ... }
we would actually need to do a partial match on the top level domain, eg
if (preg_match('/badgr\.io/', $backpack_url)) { ... }
So that it could handle regional badgr urls
I've made a quick patch that should handle regional uls -
https://reviews.mahara.org/c/mahara/+/13496
can you give it a test to see if it helps?
Cheers
Robert