I would really really like this too.
Ruby is a weird foreign language to me, and SQL beyond simple SELECT and maybe GROUP BY gives me hives, but … as I understand it, the things in the user page can be those from the directory_items table, which is constructed by SUMming and COUNTing things in various user tables, in directory_item.rb.
In user_stat.rb, I find a distinct_badge_count, which would be fine if this were for all time, but we want the various leaderboard time periods, and also for this purpose probably don’t want distinct anyway.
I think maybe all that’s needed is to add to the gigantic SQL query to count from user_badges where the granted_at date is after since?
Oh, although I guess also it needs to check and only count the badges that are enabled.