Thread title's a bit vague, but I wanted to keep it short. Let me explain.
I'm pretty new to writing PHP code for the WSC, so I'm just asking for a few pointers on where to get started to extend the trophy system to allow for assigning a trophy when a user clicks on an internal link or button. I want to run a sort of scavenger hunt at some point that rewards trophies to users that find the things, but doing so manually isn't feasible for a small team to keep up with.
I'm okay with writing the actual code myself, just want to know where to look in the codebase to do so.