![]() |
the bets way to have the last 10 posts
on vb2.x someone made a cool script to get the last ten threads that had been posted to. called last10.php or something.
Well i want the same effect on my forum home. It seems that with the external.php included with vb3.x you only get the last new threads, as it it is not updated when someone replies to an existing thread. I've gone looking around the place @ tonyshawk's one and others. What do people use/recommend ? thanks, p |
Quote:
|
[sql]SELECT DISTINCT t.threadid, t.title,
p.userid, p.username, p.postid FROM " . TABLE_PREFIX . "post p LEFT JOIN " . TABLE_PREFIX . "thread t USING (threadid) ORDER BY dateline DESC LIMIT 10[/sql] Perhaps a query like this? Haven't tested it though. Cheers, g-forcek2k2 |
cheers g-forcek2k2,
But how would i make a php file that I could include it just to call this query and order it in some nice fashion. I must say I am surprised that nobody has released such a hack yet. |
All times are GMT. The time now is 03:10 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|