PDA

View Full Version : Get the links


uymni
11-11-2010, 06:48 AM
Hello,

I am using the following code to get the forums; thread links:
-----------------------------------
<script type="text/javascript" src="http://forums.ibb7.com/external.php?type=js"></script>
<script language="" type="text/javascript">
<!--
for (x = 0; x < 600; x++)
{
document.writeln("&nbsp;<img class=\"inlineimg\" src=\"http://forums.ibb7.com/v2/buttons/lastpost.gif\" alt=\"\" border=\"0\" hspace=\"0\" vspace=\"2\"/> <a href=\"http://forums.ibb7.com/ibb"+threads[x].threadid+".html\">"+threads[x].title+"</a><br />");
}
//-->
</script>
-----------------------------------

but this code brigns the new threads' links from all categories

Can you please tell me what can I do to get the threads' links of one category only:
its id is (120)

Regards,
Ahmed

kh99
11-11-2010, 02:25 PM
I think you just need to add &forumid=120 to the end of your url (after type=js).