This script will work in combination with UBB.threads to allow you to post the most active threads (by views or replies) on your website. You can just edit the variables in ubbttopthreads.php and then include the following bit of php code on the page you want to include the news: