The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Post count by date range
I am having trouble working with the dateline field. What I am trying to do is get the top post counts for 2013. But this code will return results but is not restricting to posts in the date range and just gives all the posts.
PHP Code:
|
#2
|
|||
|
|||
It's displaying the count of all posts because you're displaying the 'posts' column from the user table. I think you want to add something like
Code:
COUNT(*) AS yearly_posts |
#3
|
|||
|
|||
Gotcha, this worked.
PHP Code:
|
#4
|
|||
|
|||
Edit - yeah, I just realized it should have been COUNT.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|