In member.php FIND
PHP Code:
eval('print_output("' . fetch_template($templatename) . '");');
ABOVE that ADD
PHP Code:
$mostactive = $DB_site->query_first("SELECT thread.forumid, COUNT(post.postid) AS posts
FROM " . TABLE_PREFIX . "post AS post
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (thread.threadid = post.threadid)
WHERE post.userid = $userid
GROUP BY thread.forumid
ORDER BY posts DESC
LIMIT 1");
$mostactive['title'] = $forumcache[$mostactive['forumid']]['title'];
Then use you can use array $mostactive (with keys posts, forumid and title) in template MEMBERINFO oder memberinfo_quick