Hi,
I am using Moodle 3.11. On a student page, I can add the "latest badges" block and it works fine.
I would like to create a web page which does not require login and which shows a leaderboard of all students with their number of badges. Is this possible ?
Yes, this is possible.
A SQL report to get the data out of Moodle is located on the Ad-hoc contributed reports page. You could export the results of that as a csv file (or json) and put it in a web page.
A SQL report to get the data out of Moodle is located on the Ad-hoc contributed reports page. You could export the results of that as a csv file (or json) and put it in a web page.
If you want something real time, then you would need to do some coding with javascript and/or PHP and use the web api to get the same data.
Thank you Randy !
I was hoping a bit for a magic plug-in, but it's great to know that I will not waste my time coding something which already exists !
Thanks !
I was hoping a bit for a magic plug-in, but it's great to know that I will not waste my time coding something which already exists !
Thanks !
Pierre,
There used to be a plugin that did something like this, the Badge Ladder, https://moodle.org/plugins/local_bs_badge_ladder but it has not been updated since 3.6. As you can see from the SQL report, is is pretty easy to get the data
There used to be a plugin that did something like this, the Badge Ladder, https://moodle.org/plugins/local_bs_badge_ladder but it has not been updated since 3.6. As you can see from the SQL report, is is pretty easy to get the data