Doesn't work. Here's what happens.
As soon as I edit admin/sessions.php from:
find: (1)
if ($session['styleid']!=0) {
$bbuserinfo['styleid'] = $session['styleid'];
}
to
// +++++++ Time Online Hack [ g-force2k2 ] +++++++
$inactivetime = 5; // Configure Time Out Time Here in Minutes!
$factivetime = $inactivetime * 60;
$newtime = time() - $bbuserinfo[lastactivity];
if($newtime < $factivetime) {
$DB_site->query("UPDATE user SET timeonline=timeonline+$newtime WHERE userid='$bbuserinfo[userid]'");
}
// +++++++ Start Time Online Hack [ g-force2k2 ] +++++++
I get this when my page loads:
There seems to have been a slight problem with the Groove-Salad database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
Database error in vBulletin 2.2.6:
Invalid SQL: UPDATE user SET timeonline=timeonline+2 WHERE userid='3'
mysql error: Unknown column 'timeonline' in 'field list'
mysql error number: 1054
Date: Sunday 01st of September 2002 05:31:31 PM
Script:
http://groove-salad.com/forum/forum/
Referer:
I don't understand why it's saying the script is at
http://groove-salad.com/forum/forum/
Any help would be greatly appreciated.