The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Accessing vBulletin's thread table directly
Hi,
I'm coding a script that is accessing vBulletin's thread table directly... I'm wondering what my MySQL WHERE Clause should include to exclude any post that is deleted/on pending list/or any other thing that I may be not aware of? e.g. not publicly displayed. For now, my SQL statement looks like this: SELECT * FROM thread WHERE visible = 1 AND forumid NOT IN(excluded forum ids) Anything missing? Your help Would be greatly appreciated. Reply With Quote |
#2
|
|||
|
|||
you need to make sure you have forumid='id of your forum so you need to have forumid='$_GET['id']'
|
#3
|
|||
|
|||
Quote:
The query looks fine although you may want to think about adding a LIMIT clause to limit the number of results returned, depending on what you are doing with the data. |
#4
|
|||
|
|||
LOL, my bad, I misunderstood.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|