View Full Version : Recent threads outisde of forum
JamesN
11-10-2007, 10:08 AM
I've noticed a lot of sites have sections like this on pages outside of their forum:
http://www.files2net.com/files/60408481/activethreads.jpg
What's the mod that is needed to do this? I've spent the past 20 minutes trying to find it and I can't :confused:
Would appreciate some help - thanks :)
Jason Black
11-10-2007, 10:18 AM
sections like what?
JamesN
11-10-2007, 11:01 AM
See the screen-print.
A list of recent threads with the Last Post, Replies, Views, etc?
WhaLberg
11-10-2007, 04:04 PM
Maybe they are using portals?
Check out www.vbadvanced.com
JamesN
11-10-2007, 07:28 PM
Yeah, I think they are, but I was wondering if it was possible to do something like that without using portals?
WhaLberg
11-11-2007, 11:21 AM
Dear James,
Ofcourse it is possible without using any portal system. All you need is a query that will read the threads and order them by dateline. Here is a simple example for you:
<?php
chdir(path/to/your/forums);
require_once('./global.php');
$threads = $db->query_read("
SELECT title FROM " . TABLE_PREFIX . "thread
ORDER by dateline DESC
LIMIT 0,5
");
while ($thread = $db->fetch_array($threads))
{
echo $thread['title'] . "<br />";
}
?>
The codes above will simply show you the recent 5 threads.
Jason Black
11-11-2007, 12:58 PM
<a href="http://www.phpportals.com" target="_blank">www.phpportals.com</a>
JamesN
11-12-2007, 09:32 AM
Thanks for that WhaLberg (https://vborg.vbsupport.ru/member.php?u=170154) :)
DrussRob
01-13-2008, 10:22 PM
WhaLberg, you are my hero.
ArnyVee
08-29-2008, 03:17 PM
I tried this and it didn't work when I tried to paste the info that WhaLberg provided above. Any idea how I can display it on my page in the place of the bulleted list under the left most section?
http://www.waltdisneyboards.com/view.php?pg=wdbhub
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.