Ok.. 5 minute hack based on a request by Craig.
put this in a file called activejs.php in your forum directory.
PHP Code:
<?
include('./global.php');
$num_topics = 5;
$topics_result = $DB_site->query("select * from thread order by lastpost desc limit $num_topics");
while($topics = $DB_site->fetch_array($topics_result)) {
$mytitle = addslashes($topics[title]);
echo ("document.write('<a href=$bburl/showthread.php?threadid=$topics[threadid]>$mytitle</a><br>');\n");
}
?>
On the page where you want to display the topics put the following.
Code:
<html>
<head>
</head>
<body>
<script LANGUAGE="JavaScript" src="http://www.hkindians.com/forum/activejs.php">
</script>
</body>
</html>