I think this is the salient portion of the onlineusers module for CMPS:
Code:
$maxusers['maxonline'] = $vbulletin->maxloggedin['maxonline'];
if ($vbulletin->maxloggedin['maxonline'] <= $totalonline)
{
$maxusers['maxonline'] = $totalonline;
$maxusers['maxonlinedate'] = TIMENOW;
$db->query_write("UPDATE " . TABLE_PREFIX . "datastore SET data='" . addslashes(serialize($maxusers)) . "' WHERE title = 'maxloggedin'");
}
$recordusers = $maxusers['maxonline'];
$recorddate = vbdate($vbulletin->options['dateformat'], $vbulletin->maxloggedin['maxonlinedate'], 1);
$recordtime = vbdate($vbulletin->options['timeformat'], $vbulletin->maxloggedin['maxonlinedate']);
If you think this might be the culprit, do you have any suggestions on changes I could make to the CMPS module to keep its functionality but prevent it from overwriting your plugin's data (if that is what it is doing)?
I guess I could always turn off that module but I would like to keep it if possible. Thanks!