The code looks fine. What I think the problem is is that the new "top threads" script is checking user access which uses the .threads cookie. In all of the .threads scripts this is done *before* the call to send_header is executed.
Since you have this include after your html has sent the page header it may be causing a problem.
What may need to be done is to place the authentication call before the <html> tag.
You will also need to remove this code from the ubbttopthreads.php script being included.
<?
require_once("/ubbthreads/main.inc.php");
$userob = new user;
$user = $userob -> authenticate("U_Groups");
?>
<html>
Then include the ubbttopthreads.php script in the body.
<body>
<? include ("/ubbthreads/addons/ubbttopthreads.php"); ?>
</body>
I think this should work. I hope I wasn't to obscure in describing this.
