
08-09-2007, 10:09 PM
|
|
|
Join Date: Oct 2005
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by AndrewD
Goodness, version 2.1.0.
You're in luck - that part of the code has not changed very much in two years  Take a copy of the file include/local_links_include.php. Edit, and go to line 1078, which reads:
Code:
function record_hit($id, $url, $status, $size=0) {
global $vbulletin, $links_permissions, $links_defaults;
if ($links_permissions["can_bypass_hit_recording"]) {
Change to:
Code:
function record_hit($id, $url, $status, $size=0) {
global $vbulletin, $links_permissions, $links_defaults;
$when = TIMENOW-24*60*60*XXX;
$vbulletin->db->query_write("
DELETE FROM ".THIS_TABLE."linksdownloads
WHERE usertime<'".$when."'
");
if ($links_permissions["can_bypass_hit_recording"]) {
where XXX is the number of days you want to retain in the table, e.g. 30.
|
Worked like a charm!!!
Where/how can I send you a donation. This is wonderful support!
|