It is working. I have placed your script 3 times on my page to pull in posts for news, forum 3&4 and also forum 9. The first 2 are working, but the last on is not. See for yourself at
http://www.jonandchuck.com.
The code I am using to pull in the "News" (forum ID #2) is as follows:
Code:
<script type="text/javascript" src="/forums/external.php?forumids=2&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 15; x++)
{
document.writeln("<li><a href=/forums/showthread.php?t="+threads[x].threadid+">"+threads[x].title+"</a></li>");
}
//-->
</script>
This is working. The code I am using for the 2nd pull (Forum ID 3 and ID4) is as follows:
Code:
<script type="text/javascript" src="/forums/external.php?forumids=3,4&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 15; x++)
{
document.writeln("<li><a href=/forums/showthread.php?t="+threads[x].threadid+">"+threads[x].title+"</a></li>");
}
//-->
</script>
This is also working. The code I am using for the 2nd pull (Forum ID 9) is as follows:
Code:
<script type="text/javascript" src="/forums/external.php?forumids=9&type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 15; x++)
{
document.writeln("<li><a href=/forums/showthread.php?t="+threads[x].threadid+">"+threads[x].title+"</a></li>");
}
//-->
</script>
THIS IS NOT WORKING!!
Ideas?
--------------- Added [DATE]1252128122[/DATE] at [TIME]1252128122[/TIME] ---------------
Weird! It is working now.
Is there any way to show some of the contents of the posts on the page like vbAdvanced does?