View Single Post
  #4  
Old 16th January 2010, 22:29
elvira's Avatar
elvira elvira is offline
Senior Member
 
Join Date: Jan 2008
Slovenia
Posts: 172
Default
And if you want old hits to be removed add this to cleanup.php:

Quote:
// Remove userprofile views
$days = 7;
$dt = sqlesc(get_date_time(gmtime() - ($days * 68400)));
mysql_query("DELETE FROM userhits WHERE added < $dt");
Reply With Quote
The Following User Says Thank You to elvira For This Useful Post:
Phogo (18th January 2010)