N2S

Topic: "Total Jobs" Counter on Footer

I love statistics, so I thought I would fool around with some of the code and turns out it worked.

JOBBER VERSION: 1.5 beta 1 (20/08/2008)
FILES: page_home.php, index.php, /templates/footer.tpl

OPEN: page_home.php

Code:

FIND:
    $smarty->assign('jobs_count_all', $job->CountJobs());

REPLACE WITH:
    /*$smarty->assign('jobs_count_all', $job->CountJobs()); moved to index.php */

OPEN: index.php

Code:

FIND: 
    $smarty->assign('categories', get_categories()); 
    $smarty->assign('articles', get_articles());
    $smarty->assign('cities', get_cities());

AFTER ADD:
    $smarty->assign('jobs_count_all', $job->CountJobs()); // total jobs posted on site

OPEN: /_templates/footer.tpl

Code:

FIND: 
<a href="http://www.jobberbase.com/" title="open source job board software">jobberBase</a>

AFTER ADD:
<br>
<font color="#999999">{$jobs_count_all} jobs posted on our site.</font> <!--total jobs on site-->

DEMO:
http://i36.tinypic.com/1qr9k0.jpg

if you should experience any conflicts, please post.
USE AT YOUR OWN RISK! THIS MODIFICATION IS NOT APPROVED BY THE JOBBERBASE TEAM.
*please delete this once it is approved* (=

http://i34.tinypic.com/2affofk.png

snipjob.com

Re: "Total Jobs" Counter on Footer

Thanks for that tutorial i have put it in my site check it out http://www.snipjob.com

http://sharequickly.com/beta/images/snipjoogo.jpg

TeamProjectsOnly

Re: "Total Jobs" Counter on Footer

Very Nice Tutorial. I actually modified the HEADER.TPL and placed this at the top of the page.

Thanks