The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
![]()
If you are planning to do that in postbits, it will be fairly server intensive.
Do you know how to use joins in MySQL? |
#12
|
|||
|
|||
![]() Quote:
Maybe have the output in the profile. Gives another member an idea where the person posts the most. |
#13
|
||||
|
||||
![]()
[sql]SELECT t.forumid
FROM post AS p LEFT JOIN thread AS t USING (threadid) WHERE p.postuserid = X[/sql] PHP Code:
|
#14
|
|||
|
|||
![]() Quote:
|
#15
|
||||
|
||||
![]() |
#16
|
|||
|
|||
![]()
SELECT t.forumid
FROM post AS p LEFT JOIN thread AS t USING ( threadid ) WHERE p.postuserid =803 MySQL said: #1054 - Unknown column 'p.postuserid' in 'where clause' ![]() --------------- Added [DATE]1235016809[/DATE] at [TIME]1235016809[/TIME] --------------- Okay, I am really lost. How about if I have one forumid and one userid, how can I get the number of posts that user made in that forum? Thanks in advance. |
#17
|
||||
|
||||
![]()
I think I made a mistake, postuserid is for threads. Here is the "proper" query:
[sql]SELECT COUNT(p.postid) AS count FROM post AS p LEFT JOIN thread AS t USING (threadid) WHERE p.userid = 803 AND t.forumid = X[/sql] |
#18
|
|||
|
|||
![]()
Gracias!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|