Ah well, break vbulletin.org procedures to publish someone's code when he should be supporting, sigh.
Here is the solution
You've got some code in member.php that is part of this hack... just below:
PHP Code:
{
$show['lastpost'] = true;
$userinfo['lastposttitle'] = '';
$userinfo['lastposturl'] = '#';
$userinfo['lastpostdate'] = $vbphrase['never'];
$userinfo['lastposttime'] = '';
}
And just above:
PHP Code:
// reputation
fetch_reputation_image($userinfo);
Well, that code should ideally look like this:
PHP Code:
// HACK : START : USER ACTIVENESS
$show[useractiveness] = 0 ;
if ($userinfo[posts]) {
$forumids = implode("', '", get_noaccess_forumids());
$tfarray = $DB_site->query_first(
"SELECT COUNT(*) AS aposts," . TABLE_PREFIX . "forum.title AS aftitle, " . TABLE_PREFIX . "thread.forumid AS aforumid
FROM " . TABLE_PREFIX . "thread
LEFT JOIN " . TABLE_PREFIX . "post ON " . TABLE_PREFIX . "post.threadid = " . TABLE_PREFIX . "thread.threadid
LEFT JOIN " . TABLE_PREFIX . "forum ON " . TABLE_PREFIX . "forum.forumid = " . TABLE_PREFIX . "thread.forumid
LEFT JOIN " . TABLE_PREFIX . "deletionlog ON ( " . TABLE_PREFIX . "deletionlog.primaryid = " . TABLE_PREFIX . "thread.threadid AND type = 'thread' )
WHERE " . TABLE_PREFIX . "forum.forumid NOT IN ( '$forumids' )
AND " . TABLE_PREFIX . "thread.visible=1
AND " . TABLE_PREFIX . "deletionlog.primaryid IS NULL
AND " . TABLE_PREFIX . "post.userid = $userinfo[userid]
GROUP BY " . TABLE_PREFIX . "forum.forumid ORDER BY 1 DESC LIMIT 1");
$_activeposts = $tfarray['aposts'];
$_activeurl = "<a href=\"forumdisplay.php?$session[sessionurl]f=".$tfarray['aforumid']."\">".$tfarray['aftitle']."</a>";
$_activeperc = round(((implode('',explode(',',$_activeposts)) / implode('',explode(',',$userinfo['posts'])) ) * 100), 2)."%" ;
$show[useractiveness] = 1 ;
}
// HACK : END : USER ACTIVENESS
As that does the math properly and also explodes and implodes the number in the math to get round any formatting
It's a great hack, and all of the solutions are in this thread... the author just hasn't kept track of it and rolled the bug fixes back into the installer to help everyone who has recently installed it.
Anyhow, that should solve it.