Log in

View Full Version : Latest posts on a none forum page


Averkiev
07-30-2006, 05:22 PM
Does it exist any (rss) hack that can show on a none forum page X latest posts (not threads) , where I can choose which (sub)forums to include?

I give you an example in php, so you understand, what I mean with X latest posts:

...
$recentforumget = 20; // Number of posts to get
$recentforumlength = 17; // Length of title to display before cutting off
$forumexclude = "7,12,13,28,29,31"; // Add forum id's to exclude from get (eg private ones) sepetate by a comma

$getposts2 = query("SELECT threadid,title FROM thread WHERE (visible <> 0)".iif($forumexclude," AND (forumid NOT IN ($forumexclude))")." AND (open <> '10') ORDER BY lastpost DESC LIMIT $recentforumget");
...


May be I asked this question at the wrong forum (vBulletin Discussions)?

I found a that mod for phpbb, but still not for vb :(
http://www.phpbb.com/phpBB/viewtopic.php?t=254606
http://www.phpbb.com/phpBB/viewtopic.php?t=144548