Plugin Author
myCred
(@designbymerovingi)
Hey.
Yes, myCRED starts to award points when you enable a hook. So it will not go back in time and check what users have already done.
There is a custom plugin I wrote which however allows you to give points for retroactive actions. You can find it here along with some information.
Nice thank you.
I have another question. What is the technology behind the badge system? How well does it do in terms of performance?
For example, does it save the values in the user’s metadata? Does it save each task in a separate metadata entry or does it saved them all in one (via an array)?
I have a lot of user activity and concerns that adding this hook will affect my performance too much.
For a few years ago, I actually created my own badge system but removed it specifically because it was affecting performance too much.
Plugin Author
myCred
(@designbymerovingi)
The Badge add-on is very basic and is soley based on a users points history. My intention is not to re-invent the wheel, myCRED does support more advanced Badge plugins like BadgeOS.
Badges are a custom post type in your WordPress installation and it is saved like any other post. Your badge settings are saved as post meta in the same table as other post metas.
The connection between users and badges are done by saving a custom user meta for each badge a user has. Basically when a user earns a badge, he receives a custom user meta. When you display badges, you basically query which badge IDs a user has via the user meta table.