PDA

View Full Version : Display latest threads from one forum in the side column of a second forum


IvyKeepMommy
06-09-2008, 04:55 PM
I've installed the Ultimate Side Columns and Kerry Anne directed me to vb.com to get the code to make the forums display -- but since almost every question I've ever asked over there has directed me to ask over here... I'm going to skip a step.

First let me say I am a programming newbie -- I took programming classes back in the Basic/Pascal/Cobal days so have a general understanding of it, but am still hazy on a lot of html and php.

The code that I found on vb.com, would seem to suggest that I use this code

<!-- show latest active threads -->
<table cellpadding="6" cellspacing="1" border="0" width="100%" align="center">
<tbody>
<tr>
<td colspan="2">
<a href="http://theamericanmommy.com/forums/search.php?do=getnew">Latest Active Threads</a>
</td>
</tr>
</tbody>
<tbody>
<tr>

<td width="100%">

<div>
<script type="text/javascript" src="http://theamericanmommy.com/forums/external.php?type=rss"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 10; x++)
{
document.writeln("<a href=\"http://theamericanmommy.com/forums/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a> (Posted By: "+threads[x].poster+")<br />");
}
//-->
</script></div>

</td>
</tr>
</tbody>
<!-- show latest active threads -->
</table>
<br />

However, I've tried that and what it does is provide a link that reads Latest Active Threads that takes me to the other site, but what I am looking for is a way to dynamically list what those threads actually are (that would then be clickable)

Can someone help me figure out what is wrong in the above code to get it to do what I'd like it to do?

Thanks for the help in advance! :rolleyes: