I'm trying to help
ktp with his code but after writing additional code to it I thought "what the hell am I going to do with this?".
I thought I could limit it so it would only check once a week but don't know how to go about caching the data until the query ran again.
PHP Code:
if(date("d") % 7 == 1)
{
$gettopusers = $db->query_read("SELECT userid,username,posts FROM " . TABLE_PREFIX ."user ORDER BY posts DESC LIMIT 10");
while($topuser = $db->fetch_array($gettopusers))
{
$disptopuser .= "<a href='member.php?u=$topuser[userid]'>".$topuser['username']."</a> ($topuser[posts]), ";
}
}