Log in

View Full Version : Having the hardest time with external.php


upirate
04-13-2007, 09:52 AM
So I incorporated VB in my site and I want to display threads from my forum into the home page.

I am using the following code:


<script type="text/javascript" src="http://www.sitename.com/forums/external.php?forumids=3,4,5,6,7,8,9,10,11,12,18,23 &amp;type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 10; x++)
{
document.writeln("<a href=\"http://www.sitename.com/forums/showthread.php?t="+threads[x].threadid+"\">"+threads[x].title+"</a><br />");
}
//-->


and it only shows certain threads from certain forums.


For example I can see stuff in forum 6 but not in forum 11


what am i doing wrong guys ?:confused:

tobybird
04-13-2007, 11:37 AM
Are the threads and posts in forum 11 viewable by guests?

upirate
04-13-2007, 11:50 AM
yes!

when I remove the forum ids from the link: I can see all the threads