Quote:
Originally Posted by Slapyo
I want to put the number of threads and posts on the front of my site. I currently have something, but the numbers are off. I assume that it is because of deleted posts and threads. Below are the queries I am using.
Code:
SELECT COUNT(*) AS threads FROM thread
SELECT COUNT(*) AS posts FROM post
However, the numbers are off. On my homepage it shows:
Threads: 477
Posts: 1,531
But on the forum index page at the bottom it shows:
Threads: 463
Posts: 1,529
What are the queries that vBulletin uses to grab that information? I have been digging through the code but I can't seem to find them. I would like the numbers to match.
|
Don't forget you need to exlucde delete posts