I used to know how to do this, with php how can you display recent posts to your forum on your home page?
Depends on the forum software. If it's like most, it's in MySQL.
Just do a nice SELECT * FROM `tablecontainingpostsname` ORDER BY `fieldcontainingeithertimeorid` (ASC/DESC depending on the field you're ordering by, figure it out) LIMIT 5
5 can be changed of course.
Alternatively, if your forum provides an RSS feed, you could use a package like XML_Feed_Parser to parse and display it on your homepage.
although presumably you'd want some sort of caching mechanism to prevent your RSS feed from being hit on every load of the page
There are only 10 kinds of people in this world:
Those that might know ternary, those that do, and those that don't
Say NO to DRM.
There are currently 1 users browsing this thread. (0 members and 1 guests)