Thanks Paul and much as appreciate 100% your coding skills and opinions, altering that code still doesn't work for me.
I re ran the query:
Code:
UPDATE datastore
SET data = ''
WHERE title = 'maxloggedin'
afterwards too, but after a refresh, the forum still shows 01-01-1970
:edit:
Just uploaded the copy from 2.2.1 also - still no difference.
Sorry to be a pain.
As you suggested in the other thread, I've downloaded all my non-standard files and scanned them for maxloggedin
The only two files I find it in are:
vba_cmps_include_template.php
forum.php (which is VB's index.php renamed)
________
:edit 2:
OK, think I've fixed it.
Following your code with the serializing, I have altered the code in the VB forum.php (originally index.php) as so:
Code:
// ### MAX LOGGEDIN USERS ################################
if (intval($vbulletin->maxloggedin['maxonline']) <= $totalonline)
{
$vbulletin->maxloggedin['maxonline'] = $totalonline;
$vbulletin->maxloggedin['maxonlinedate'] = TIMENOW;
build_datastore('maxloggedin', serialize($vbulletin->maxloggedin));
}
Is now:
Code:
// ### MAX LOGGEDIN USERS ################################
if (intval($vbulletin->maxloggedin['maxonline']) <= $totalonline)
{
$vbulletin->maxloggedin['maxonline'] = $totalonline;
$vbulletin->maxloggedin['maxonlinedate'] = TIMENOW;
build_datastore('maxloggedin', serialize($vbulletin->maxloggedin), 1);
}
Added the
, 1
Seems to have done the trick.
Does this sound abnormal to you Paul?
Hopefully those with a similar problem might search and find a solution.