Creating a badge awarding plugin

Creating a badge awarding plugin

by Tomas Cordero -
Number of replies: 2

Hello,

I'm trying to find a way to give a user a badge on their first login to my moodle site. I havent been able to find any way to do it with a plugin or out of the box. So my only other option is to write up my own plugin. Only issue is I dont really know where to start as far as documentation goes. If someone could point me to the correct resources I should be using to start working on this plugin?

Thanks,

Tomas

Average of ratings: -
In reply to Tomas Cordero

Re: Creating a badge awarding plugin

by Caio Duarte -

Hi Tomas,

If you just want to award a student in his/her first login, you may create a "site" badge based on profile fields. 

When you create a site badge, its criteria could be "when the student fills the field -address".

If you manually creates the user and fills these fields, he will receive that badge as soon as he logs in.


Sorry about my bad english 


Hope that helps!

Good luck!

Average of ratings: Useful (1)
In reply to Caio Duarte

Re: Creating a badge awarding plugin

by Randy Thornton -
Picture of Documentation writers

Caio,

That is a very clever way of doing it, using Profile completion criteria. Thanks for sharing that tip.