To limit the amount of threads shown
In the code above, exchange:
Code:
for (var x in threads)
with
Code:
for (x = 0; x < 10; x++)
exchanging 10 with the amount of threads you want displayed.
To limit the output to the latest threads in one or more specific forums
In the code above, exchange this:
Code:
<script type="text/javascript" src="external.php?type=js"></script>
with this:
Code:
<script type="text/javascript" src="external.php?forumids=95,96,97,98&type=js"></script>
The bold part is added, and the blue numbers, seperated by commas, are the forumid numbers of the forums you want to fetch the latest threads from.
The forumid number of a forum can be found by editing a forum in the AdminCP. It's listed at the top, next to the forum name.