This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
limit submissions per user for a limited time
Started 17 years ago by abdul | 2 posts |
-
Is there a way to limit submissions per user to one submission every 24hrs?
Posted 17 years ago # -
Hi,
Try to edit your "includes/post-functions.php" and go to line 879, you will see this SQL :
$query = "select count(id) total_ip from <code>ap_form_{$form_id}</code> where ip_address='$user_ip_address'";change it to
$query = "select count(id) total_ip,datediff(now(),max(date_created)) last_date from <code>ap_form_{$form_id}</code> where ip_address='$user_ip_address'";then go to line 883, you will see this code
if(!empty($row['total_ip'])){change to
if(!empty($row['total_ip']) && $row['last_date'] == 0 ){MachForm Support
Posted 17 years ago #
Reply
You must log in to post.
