Sorry, I reread my reply to you and realized that it came out kinda harsh (and that was not my intention).
Now let's fix your script

Look for
<br /><!-- END CATEGORY LOOP --> <br /><!-- END OF FORUM LOOP --> <br /></table> <br /></td> <br /></tr> <br /></table> <br />
It should be
<br /><!-- END CATEGORY LOOP --> <br /><!-- END OF FORUM LOOP --> <br />$tbclose
That should fix it for you
