I would do it exclusively in T-SQL and set up an SQL job that runs periodically (Jeff did this with C # and has a dumb system where it starts the process based on the page request).
Basically, in your SQL job, scan your member tables and count if someone is qualified for the icon, if so, update the icon table (s).
Then, in the interface, run a query to get new member icons for each query.
Flyswat
source share