View Single Post
  #2   IP: 222.184.47.203
Old 2009-07-29, 07:03 AM
topvip topvip is offline
超级版主
 
Join Date: 2006-01-04
Posts: 1206
topvip 正向着好的方向发展
Default

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.
Reply With Quote