SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm creating a QA site similar to Stack Overflow on SharePoint.

I'd like to be able to integrate some badges into the System.

I've thought of a few ideas, but I'd love some divergent thinking on tracking things like:

How many comments has a user made?

How many days in a row has a user visited?

How many Questions has a user edited?

How many sections of the FAQ has a user read?


Are badge requirements stored in code by necessity? Could there be a badges list with programmatic requirements? I.E. Single line of text column with predictable short hand like:

BadgeTitle = "Regular Visitor"; 
BadgeRequirement = "vs:(30)";

meaning, visited site 30 days in a row.

This is going in a Site Definition, so for our purposes there is no direct SQL access or Config Access.

share|improve this question
Did you ever get anywhere with this? I'm looking to do the very same thing; cook up a 'points' system for user activity. – Alan M Sep 18 '13 at 16:49
I did, but ended up putting it on hold for a bit. It involves a lot of event listeners. – Wesley Sep 18 '13 at 17:18
up vote 3 down vote accepted

I started prototyping a similar solution. I had a centralized list that stored the point values for each type of action and then put event receivers on specified lists that calculated the points. The points can either be logged to SQL or another SharePoint list.

If you want to do something based on visits versus an actual update you would need another custom control added to your masterpage. This is a bit trickier since it would need to be done smartly as to not impact performance. Ideally you would not want to check to see if they visited today each and every time they request a page.

share|improve this answer
Agreed. List and thread performance make this a particular puzzle on SharePoint. – Wesley Jul 3 '12 at 17:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.