This took a little figgerin' so I thought I'd post it so others wouldn't have to. This snippet is for non-VB pages, it will show the thread posted within the last 24 hours that has the most views.
If you change $daysback to something else, you can pull from the last week, etc.
Code:
require("/full/path/to/admin/config.php");
$db=mysql_connect($servername,$dbusername,$dbpassword);
mysql_select_db($dbname);
$daysback=1;
$datecut=time()-($daysback * 86400);
$query = "SELECT threadid,title,views,dateline FROM thread WHERE dateline > '".$datecut."' ORDER BY views DESC LIMIT 1";
$resultlatest = mysql_query($query,$db_connection);
$latest_array = mysql_fetch_array($resultlatest);
$mvtitle = $latest_array[title];
$mvid = $latest_array[threadid];
Then simply print out the $mvtitle and $mvid wherever you want to link to this active topic.