The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
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. |
#2
|
||||
|
||||
![]()
Do any of your forums have "Count Posts Made in this Forum Towards User Post Counts" set to No?
|
#3
|
|||
|
|||
![]()
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? |
#4
|
||||
|
||||
![]()
Its possible it could be due to soft deleted posts, or posts that are in moderation.
|
#5
|
|||
|
|||
![]()
Thanks. Do you know how to eliminate soft deleted posts from this select statement?
Code:
SELECT count(*) FROM post WHERE username = 'xxx' |
#6
|
||||
|
||||
![]()
Try this:
Code:
SELECT count(*) FROM post WHERE username = 'xxx' AND visible = 1 |
#7
|
|||
|
|||
![]()
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! |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|