The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
While in mySQL - how would I do this query?
I would like to run a query in mySQL that would show me all of the threads started by a certain user and all of the responses tied to the thread. Just like "Find all threads started by XXX" in a member's profile. Can someone help me out? Thanks in advance!
|
#2
|
||||
|
||||
Quote:
[sql]select * from thread where postuserid=userid[/sql] If you want all the posts in all these threads then its [sql]select post.* from post p join thread t using (threadid) where postuserid=userid order by p.threadid, p.postid[/sql] |
#3
|
|||
|
|||
THANKS!
does that pull all threads and their responses as a single query? Also, is there any way to get it to run exactly like "Find all threads started by XXX," so it shows all pictures, signatures, etc? If not, is there a setting in the admin control panel that will allow someone to see ALL posts based on user group? That way I could set only the admin group to be able to see threads started by x, instead of only the last 100 |
#4
|
||||
|
||||
Quote:
Quote:
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|