How to get user's badges number?

Hello! Is it possible to get in some js code or maybe an existing variable, the total number of badges a user has already collected? The code could fit perfectly inside .topic-avatar .poster-avatar-extra and I’m pretty sure the users will become more active on the forum, and as some people already mentioned here, many users don’t even know about the badges existence.

In my example, I would need to get the badges number and the URL for the user’s badge page, so that people could be redirected to that page when clicking on that mini button under his avatar.

Thank you!

1 Like