The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
sql query: unique users per forum?
What I would like to do is to determine how many unique users posted to a forum. Unfortunately I have no idea about SQL in the first place.
I imagine it could work like this: select all posts made in forum id 81 from posts_table select user-id of all posters who made those posts ??? some sort of unique user-id query ??? display the number of unique users Any help will be greatly appreciated. |
#2
|
||||
|
||||
Try;
Code:
SELECT COUNT(post.dateline) AS count FROM post LEFT JOIN thread USING (threadid) WHERE thread.forumid = 81 GROUP BY post.username |
#3
|
||||
|
||||
Awesome, worked like a charm, thank you ever so much.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|