TV202 Prosper202 Tracking202 Export202 WorldProxy202 Meetup202 | Blog Forum Newsletter Twitter | Advertise
Login · Register
Home About Docs Scripts Blog Forums Hosting Donate Download
Before Posting, Have You Read the FAQ? And Have You Searched? If Not Please Do!

Attn: The 202 Support Forum will now be revised
Within the next few weeks the Tracking202 Support Forum will be revised. Some threads will be shut down or reorganized. New rules will be put in place to accommodate those who need help. The 202 team wants to make the forum a more user friendly place for new and old affiliates. We want to make this forum a place for affiliates to help each other be successful.

Can I disable Filtered Clicks?

Post new topic Reply to topic Prosper202 Forum Index » Prosper202 Installing & Upgrading
New Posts Search Forum
Author Message
shawnwalters


Joined: Sep 24th, 2009
Posts: 3

Post Posted: Oct 7th, 2009 at 3:56pm Post subject: Can I disable Filtered Clicks? Reply with quote

My advertising source sends some visitors several times for different keywords. And it appears prosper only recognizes the first one as a valid click. Is there a way to disable feature that in the code somewhere?

Thanks,

Shawn

Back to top
shawnwalters


Joined: Sep 24th, 2009
Posts: 3

Post Posted: Oct 7th, 2009 at 6:16pm Post subject: Re: Can I disable Filtered Clicks? Reply with quote

Is it as simple as commenting out the return true line of this snippet from functions-tracking202.php?

//this will filter out a click if it the IP WAS RECORDED, for a particular user within the last 24 hours, if it existed before, filter out this click.

function checkLastIps($user_id, $ip_id) {

$mysql['user_id'] = mysql_real_escape_string($user_id);

$mysql['ip_id'] = mysql_real_escape_string($ip_id);

$check_sql = "SELECT COUNT(*) AS count FROM 202_last_ips WHERE user_id='".$mysql['user_id']."' AND ip_id='".$mysql['ip_id']."'";

$check_result = _mysql_query($check_sql) ; //($check_sql);

$check_row = mysql_fetch_assoc($check_result);

$count = $check_row['count'];

if ($count > 0) {

//if this ip has been seen within the last 24 hours, filter it out.

return true;

} else {

//else if this ip has not been recorded, record it now

$mysql['time'] = time();

$insert_sql = "INSERT INTO 202_last_ips SET user_id='".$mysql['user_id']."', ip_id='".$mysql['ip_id']."', time='".$mysql['time']."'";

$insert_result = _mysql_query($insert_sql) ; //($insert_sql);

return false;

}

}

Back to top
Post new topic Reply to topic Page 1 of 1

Creative Commons License This work (Prosper202, Tracking202 and Export202) is licensed under a
Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.