Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

wrong user count on sidebar?

+2 votes

Bug or feature in version 1.4.1?

On the right side the number of users is displayed.

This number seems to be retrieved from the database by just extracting the maximum userid from the table users instead of really counting the amount of users by e.g. qa_db_count_users($qa_db).

This may be good for performance reasons - but if you've deleted some (test-)users from your database the maximum userid is not equal to the real number of users...

ok, ok, maybe not tooooo relevant - but it may lead to wrong numbers   ;)

asked Jul 26, 2011 in Q2A Core by snoopy0815
True, but then again listing the number of registered accounts isn't a reliable number either. Some people may have made multiple accounts and many users probably made an account but never posted.

1 Answer

+1 vote
The user count is based on the number of users in the qa_userpoints table, not the count of different user IDs per se. If you've deleted some test users, you can click the 'Recalculate user points' button in the 'Stats' section of the admin panel, and the count will become correct.
answered Jul 31, 2011 by gidgreen