Log in

View Full Version : Users total posts (even in no postcount areas)


KaiSan
06-22-2005, 08:49 PM
How do I go about finding this?

I was to find out a members postcount, but we have no post count in the spam section...

I was just wondering if there was a way to find out how to count all those up as well.

Thanks. :)

Tony G
06-23-2005, 06:32 AM
It depends, do you want to find the count for yourself or begin adding post counts from a forum which didn't allow them before?

KaiSan
06-23-2005, 04:22 PM
No, I want to know how many posts a member has, counting the ones in the no postcount areas.

Thanks. :)

Tony G
06-24-2005, 02:15 AM
I know of no other way besides turning post counts in that forum on and rebuilding the member stats, but that will update it on the forum as well as you knowing.

Kingster
07-06-2005, 05:19 PM
How do I go about finding this?

I was to find out a members postcount, but we have no post count in the spam section...

I was just wondering if there was a way to find out how to count all those up as well.

Thanks. :)
If it's really only for your knowledge, you can do it through MySQL...

SELECT username, COUNT( * ) AS realpostcount
FROM post
GROUP BY username
ORDER BY username DESC;I'm trying to figure out a way to add this info onto the user, so I can build a dynamic "bar" that indicates how many "useful" posts a user has versus posts in our spammy area.

Andreas
07-06-2005, 06:49 PM
grouping by userid would be better IMHO as this column is indexed - and integer operations should always be faster then string operations.