The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi folks,
I'm trying to find out who are the top posters in the individual sections on my forum. I've been given this query but it returns 0 results. I'm not using a table prefix for the database. I'm running vb 3.8.7. Code:
SELECT COUNT(postid) AS count, user.username FROM post LEFT JOIN user ON (user.userid = post.userid) LEFT JOIN thread ON (thread.threadid = post.threadid) WHERE thread.forumid = 108 GROUP BY post.username ORDER BY count DESC Thanks for any advice or if there's a mod that I can use, that'd be great. Thanks Glen |
#2
|
||||
|
||||
![]()
The query worked just fine on my test site (I changed the thread.forumid, of course). Perhaps the thread.forumid is incorrect?
|
#3
|
|||
|
|||
![]()
Thanks very much Lynne, I was using the parent forum id thinking that would cover all child forums but obviously doesn't and now I think about it, its obvious that it won't lol.
Sometimes it's the simplest things that baffle us. ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|