RedJumpsuit

jobberBase custom development and support

 

Code School

Control Application Interval Limit

Hi, here is a short trick to control application interval limit on your jobberBase website.

on /config.php, add anywhere:

// control application interval limit
define('APPLY_INTERVAL', 1);

on /_includes/class.JobApplication.php, comment these lines:

$sql = 'SELECT id
          FROM job_applications
          WHERE ip = "' . $ip . '" AND NOW() < DATE_ADD(created_on,INTERVAL 10 MINUTE)';

then replace with this:

// set application interval using APPLY_INTERVAL from the /config.php
$sql = 'SELECT id
         FROM job_applications
         WHERE ip = "' . $ip . '" AND NOW() < DATE_ADD(created_on,INTERVAL ". APPLY_INTERVAL ." MINUTE)';

Now, anytime you want to change the interval limit of applications sent through your site, you can do so by just updating the /config.php file

Leave a Response