The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
What is the query to discover the exact number of threads of a member and the number of posts ?
Thanks . |
#2
|
||||
|
||||
![]()
[sql]SELECT count(*) FROM thread WHERE postuserid = xx[/sql]
[sql]SELECT count(*) FROM post WHERE userid = xx[/sql] note: that will also show soft deleted and under moderation posts/threads |
#3
|
|||
|
|||
![]()
Thanks
|
#4
|
||||
|
||||
![]()
you're welcome
![]() |
#5
|
|||
|
|||
![]()
thanks
![]() |
#6
|
|||
|
|||
![]()
Following the logic, what would be the query to discover the exact number of posts for each forum the group "Registered Users" can see, per member?
Output something like this: Member Name, Each Forum Name and Post Number Frank, Forum1: 261, Forum2: 197, Forum3: 367 Thanks! |
#7
|
||||
|
||||
![]()
Not sure what you want there. Do you want the number of posts user X has done in each forum?
|
#8
|
|||
|
|||
![]() Quote:
Frank, Forum1: 261, Forum2: 197, Forum3: 367 Hank, Forum1: 11, Forum2: 39, Forum3: 912 Tank, Forum1: 732, Forum2: 1, Forum3: 214 Spanky, Forum1: 635, Forum2: 90, Forum3: 453 |
#9
|
||||
|
||||
![]()
There is no "easy" query for that. You would have to select every post, and join the thread table to get the forum ID. Then loop through the results and increment the count of each user (this would be server intensive). However, doing this for just one user is much easier on the server, just limit the select to one user only.
|
#10
|
|||
|
|||
![]()
okay, thanks.
I know I need a query but can't figure out how to write it. Anyone have an idea? I want to have a more detailed post number listed for each member instead of just "posts". I have ten boards on the forum and would like to show how many posts each member has in each board. |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|