Hi, guys!
I didn't have a lot of time on my hands and so I've implemented the basic enhancements as described in the first post - I'll implement the full deal when I'll have the time 
I'm describing here the steps needed to add this feature to an existing 1.6 jobberbase installation.
Important: make a backup of the affected files before proceeding
1. Open _includes/class.Job.php and:
- add
Code:'views_count' => $this->mViewsCount,
before
Code:'is_spotlight' => $this->mIsSpotlight);
(around line 174-175)
- in the same file, scroll to the end and add the following lines before the last } character
Code:
/**
* Returns an associative array containing the
* @param $jobIDs an array of job IDs
* @return
*/
public function GetApplicationsStatistics($jobIDs)
{
global $db;
$statisticalData = array();
$sql = 'SELECT job_id, count(id) numberOfApplications, DATE_FORMAT(max(created_on), \'%d-%m-%Y %H:%i\') lastApplicationOn
FROM job_applications j
WHERE job_id in (' . $this->buildCommaSeparatedIDsString($jobIDs) . ') GROUP BY job_id';
$result = $db->query($sql);
while ($row = $result->fetch_assoc())
$statisticalData[$row['job_id']] = $row;
return $statisticalData;
}
private function buildCommaSeparatedIDsString($numbersArray)
{
$string = '';
for ($i = 0; $i < count($numbersArray); $i++)
{
$string .= $numbersArray[$i];
if ($i < count($numbersArray) - 1)
$string .= ',';
}
return $string;
}
2. replace /admin/page_category with http://jobberbase.googlecode.com/svn-hi
tegory.php
3. replace /admin/_templates/posts-loop.tpl with http://jobberbase.googlecode.com/svn-hi
s-loop.tpl
As always, please report here the bugs (if any) and I will try to fix them as soon as possible.
Any feedback is appreciated 