change this:
PHP Code:
$topts=$DB_site->query("SELECT COUNT(threadid) AS threads, username, postuserid FROM thread LEFT JOIN user ON(user.userid=thread.postuserid) GROUP BY thread.postuserid ORDER BY threads DESC LIMIT 10");
into
PHP Code:
$topts=$DB_site->query("SELECT COUNT(threadid) AS threads, user.username, user.lastvistit, user.lastactivity, user.joindate, postuserid FROM thread LEFT JOIN user ON(user.userid=thread.postuserid) GROUP BY thread.postuserid ORDER BY threads DESC LIMIT 10");
then you can use $topt[joindate] and so on