The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I created a php script to show a link to the latest post on my home page (non vbulletin).
I want to exclude on particular forum (forumid # 7 in example below) from that list. Here's what I have, but is not working. Code:
SELECT *
FROM vb_post, vb_thread
where vb_post.threadid = vb_thread.threadid and
vb_thread.forumid != 7 and
postid in (select max(postid)
FROM vb_post, vb_thread
where vb_post.threadid = vb_thread.threadid and
vb_thread.forumid != 7)"
Thanks! |
|
#2
|
|||
|
|||
|
Use the NOT IN clause
|
|
#3
|
|||
|
|||
|
Thanks! I figured it out a different way. Probably inefficiently, but it works.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|