The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Last thread
What query returns the forumid,threadid,and title for the most recent thread in each forum?
1. Yes, I looked at the code for TECK's hack 2. Yes, I tried this: [sql] SELECT t.title AS title, t.threadid AS threadid, f.forumid AS forumid FROM thread t, forum f WHERE t.forumid = f.forumid GROUP BY f.forumid ORDER BY dateline DESC [/sql] (it always returned the oldest one, not the most recent one) |
#2
|
||||
|
||||
Use ASC not DESC, seems to work for me
|
#3
|
|||
|
|||
Nope, still returns the first one.
|
#4
|
||||
|
||||
Try
Code:
SELECT forum.*, thread.title as thtitle FROM forum LEFT OUTER JOIN thread on thread.forumid = forum.forumid and thread.lastpost >= (forum.lastpost-30) WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder |
#5
|
|||
|
|||
That's TECK's
...but thanks, after changing his query a bit I got it to work. |
#6
|
||||
|
||||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|