This is the code offered in a thread (older thread) at vB.com. I have three forums, 3,4 &5 from which I want to pull 'latest forum posts' for a site's home page.
Thank you,
Mike
<td height="47" valign="top" bgcolor="#CDDBF5"><div align="center">
<!-- show latest active threads -->
<table cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tbody>
<tr>
<td colspan="2"><div align="center"><img src="../images/latest-forum-topics.gif" width="133" height="30"></div></td>
</tr>
</tbody>
<tbody>
<tr>
<td width="100%"> <div> <font color="#000000">
<script type="text/javascript" src="external.php?forumids=3,4,5&type=js"></></script>
<script language="" type="text/javascript">
<!--
for (var x in threads)
{
document.writeln("<a href=\"showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />");
}
//-->
</script>
</font></div></td>
</tr>
</tbody>
<!-- show latest active threads -->
</table>
<br>
</div></td>
|