captainron19
02-18-2010, 09:15 PM
On my forum I utilized (some time ago) a script for posting the latest 5 threads from my forums onto my main index page. On this page it uses the following code...
<!-- show latest active threads -->
<script type="text/javascript" src="http://www.domainname.com/forums/external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 5; x++)
{
document.writeln("<a href=\"http://www.domainname.com/forums/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />");
}
//-->
</script></div>
<!-- show latest active threads -->
I thought that was all there was to it so I tried it on another forum I am starting but it is not placing the latest threads on the main page where I am placing the above code. I cant remember where I originally got the code from.
So my question is.... am I missing something or should that be all that there is in order to perform this function?
--------------- Added 1266541976 at 1266541976 ---------------
Disregard - I found out what was wrong - I forgot to enable the external data provider in VB Options
<!-- show latest active threads -->
<script type="text/javascript" src="http://www.domainname.com/forums/external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 5; x++)
{
document.writeln("<a href=\"http://www.domainname.com/forums/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />");
}
//-->
</script></div>
<!-- show latest active threads -->
I thought that was all there was to it so I tried it on another forum I am starting but it is not placing the latest threads on the main page where I am placing the above code. I cant remember where I originally got the code from.
So my question is.... am I missing something or should that be all that there is in order to perform this function?
--------------- Added 1266541976 at 1266541976 ---------------
Disregard - I found out what was wrong - I forgot to enable the external data provider in VB Options