You can show the last 10 threads using a bit a javascipt that will grab them from the vbdatabase:
Quote:
<script type="text/javascript" src="external.php?type=js"> </script> <script language="" type="text/javascript">
var name1 = new String();
var title1 = new String();
for (x = 0; x < 10; x++){
name1 = threads[x].poster;
if (name1.length > 13){
name1 = name1.slice(0,9) + "..";
}
title1 = threads[x].title;
if (title1.length > 43){
title1 = title1.slice(0,40) + "..";
}
document.writeln("<img class=\"inlineimg\"src=\"images/buttons/lastpost.gif\" alt=\"A.I. Trading Stock Market Investment Forum\" border=\"0\" /> <a href=\"showthread.php?t="+threads[x].threadid+"\">"+title1+"</a><span class=\"time\">(by "+name1+")</span><br>");}
</script></div></td>
|
This is what I use on my forum: