MyBB Community Forums

Full Version: Time spent online: None Registerd
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
A member on my site has something wrong with his 'time spent online' section in his profile. it comes up None Regsiterd. why would it do that ?
None registered?
That means he registered and then exited the site. He didn't spend anymore time on it.
DrPoodle Wrote:That means he registered and then exited the site. He didn't spend anymore time on it.

Now only if that explanation jived with how he has 300+ posts.
That sounds wierd... 'None Registered'
DennisTT Wrote:
DrPoodle Wrote:That means he registered and then exited the site. He didn't spend anymore time on it.

Now only if that explanation jived with how he has 300+ posts.
Ok...yeah I guess I didn't look at that Toungue
well ??????? he is still registered is there any particular reason why this is happening ?
The only thing I can come up with is if it was manually changed in the DB somehow.
Could you try this modification in inc/class_session.php:
Find:
$db->shutdown_query("UPDATE ".TABLE_PREFIX."users SET lastactive='$time', timeonline=timeonline+$timespent WHERE uid='{$mybb->user['uid']}'");
Replace with:
$db->query("UPDATE ".TABLE_PREFIX."users SET lastactive='$time', timeonline=timeonline+$timespent WHERE uid='{$mybb->user['uid']}'");

See if that makes a difference.
Pages: 1 2