Hi,

This fantastic module can benefit even more if merged with User Badges module - because they are built for the same purpose. Also - It would be great if some UI is present, because 4 of 5 potential users have no Drupal coding experience and few built-in examples would be enough for most, like:
-n comments, m nodes
-manual
-x logins
-100 userpoints in 1 day, etc

If I could code, I would split this module into main API, Achievements UI, Achievements Userpoints, Achievements Basic and Achievements Manual (exact functionality of User Badges)

p.s. ...yes, some Userpoints integration would be great...

Comments

morbus iff’s picture

User Badges, User Points, and Achievements have three different, but similar goals [1] - they don't integrate as much as you'd like to think they do. As for User Points, using the achievement_pointless module, you can let User Points handle all your point-counting and keep Achievements as milestones.

[1] If I had to summarize them, User Points are "spendable" (i.e., you can go down in point values) or boundless (you can keep earning points for the same activity with no upper limit), User Badges are a bit banal (they're "just" images that can be manually assigned or given by role, but there's no automatic or tracking to them), and Achievements are firmly routed in gamer-culture, and all that entails.

morbus iff’s picture

You might also want to check out achievements.api.php, which already has one of the examples you desire.

the604’s picture

great work on this module Morbus!