hhuijser/liferay-portal — pull request #1601 by jonathanmccann (2013-11-11 19:54:55+00:00)
Title: LPS-35885

Hey Hugo,

This pull is for a new feature to add in a configuration to rank users by how many threads they have answered instead of how many posts they have. I wasn't sure if I could make the pull on this LPS or if I needed to create a new Story LPS and commit it under that one. If that needs to be changed let me know and if not I can push that LPS through the pull request workflow.

Basically, I added a new column into the database to hold how many answered threads each user has, then built the necessary methods to get/set those values, and changed the front end to accommodate the new value if the user has flagged it in the configuration. A couple of things I wasn't sure about were some naming things such as "rankUsersByAnsweredThreads", "Top Answerers", and "rankCount" (in MBUtil).

Let me know if you have any questions or feedback on it.

Thanks.