Webmastersite.net
Register Log In

hits-in toplist without reset

Title hits-in toplist without reset
Message Text Hello Paul, i want to make a toplist using the 'hitsintemp' field where my traders hits-in wont reset. i want to do that by copying the 'hitsintemp' to a new field 'previoushitsin' just before 'hitsintemp' field resets. Then i will list them according to 'importortance'='hitsintemp' + 'previoushitsin' so at all times the toplist will use the last 24-48hours hits-in (for 1 day 'hitsintemp' range). i tried to change in timedactions.php -------------------------------------------------------------------------------- if ( (time() - ($settings->hitstempdays * 86400)) > $settings->hitstempreset) { // reset temporary hits counters //-------------------my code $db->update('linkstable', 'previoushitsin', 'hitsintemp', 'id>0'); //------------------- $db->update('linkstable', 'hitsouttemp', '0', 'id>0'); $db->update('linkstable', 'hitsintemp', '0', 'id>0'); $settings->hitstempreset = time(); $settings->update('hitstempreset'); } --------------------------------------------------------------------------------- but it's not working, any idea how i could do this? thanks
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership sertan6
Views 670 views. Averaging 0 views per day.
Similar Topics
Submission Date Apr 22, 2005 - 2:34 PM