![]() |
How Post Count is Calculated
I have a question about how post counts are determined. I have one member who has 5042 posts, according to the database using this query:
SELECT count(*) FROM post WHERE username = 'xxx' But that gets 42 more rows than what the post count in the forum is, which says 5000 even. The "visible" field has 5039 1's and 3 2's, if that means anything. What would cause the difference? Thanks. |
Do any of your forums have "Count Posts Made in this Forum Towards User Post Counts" set to No?
|
Interesting. Is there a way to check that in the database, as opposed to checking the individual forum settings?
--------------- Added [DATE]1408389824[/DATE] at [TIME]1408389824[/TIME] --------------- I'm not seeing any of the obvious forums set that way, like private forums and threads. Could it have anything to do with deleted forums or threads? How about soft deleted posts? |
Its possible it could be due to soft deleted posts, or posts that are in moderation.
|
Thanks. Do you know how to eliminate soft deleted posts from this select statement?
Code:
SELECT count(*) |
Try this:
Code:
SELECT count(*) |
Adding visible took it down to the 5039. (there were three 2's in the visible column).
I think I will just have to go with the "posts" column in the user table. It matches the current forum's post count, but not what I count using the select. I was just curious why they didn't match. Thank you! |
All times are GMT. The time now is 09:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|