Jump to content

Recommended Posts

  • Replies 62
  • Created
  • Last Reply

Top Posters In This Topic

  • Bored Member
  • Administrator
  • Member For: 22y 5m 21d
  • Gender: Male
  • Location: Dé·jà vu

I'd be ignoring this mod....

It's based on your last click..

if( $ipsclass->member['id'] and $ipsclass->lastclick > 0 )
{
//$time_spent = time() + $ipsclass->offset - $ipsclass->lastclick;
$time_spent = time() - $ipsclass->lastclick;
$ipsclass->DB->simple_exec_query( array( 'update' => 'members', 'set' => 'time_spent=time_spent+'.intval($time_spent), 'where' => 'id='.$ipsclass->member['id'] ) );
$ipsclass->lastclick = 0;
}

So if like me your computer is left on 24/7 with the site open the next time you click a link on the site it adds the time to your total time spent on the forum... :unsure:

  • Bored Member
  • Administrator
  • Member For: 22y 5m 21d
  • Gender: Male
  • Location: Dé·jà vu
  Dagabond said:
I'd be ignoring this mod....

It's based on your last click..

if( $ipsclass->member['id'] and $ipsclass->lastclick > 0 )
{
//$time_spent = time() + $ipsclass->offset - $ipsclass->lastclick;
$time_spent = time() - $ipsclass->lastclick;
$ipsclass->DB->simple_exec_query( array( 'update' => 'members', 'set' => 'time_spent=time_spent+'.intval($time_spent), 'where' => 'id='.$ipsclass->member['id'] ) );
$ipsclass->lastclick = 0;
}

So if like me your computer is left on 24/7 with the site open the next time you click a link on the site it adds the time to your total time spent on the forum... :unsure:

*Cough*

Mc Merge.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.



×
  • Create New...
'