jobberBase Community

Welcome to jobberBase Developer Community!

You are not logged in.

Announcement

Announcement for new users: in order to combat the ever increasing spam, we no longer allow new users to post links in the message body. This limitation is automatically lifted once a new user has a specific number of 'valid' posts.

You can post links like google.com which will be rendered as text but you will not be able to post messages that contain complete URLs like www.google.com

Thank you for your understanding!

#1 2008-10-28 03:47:39

N2S
Member
From: Music Land
Registered: 2008-10-27
Posts: 64

"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

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

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

OPEN: index.php

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

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:
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* (=

Offline

#2 2009-07-24 18:00:49

snipjob.com
Member
Registered: 2009-07-24
Posts: 6
Website

Re: "Total Jobs" Counter on Footer

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


[img]http://sharequickly.com/beta/images/snipjoogo.jpg[/img]

Offline

#3 2009-09-18 13:56:40

TeamProjectsOnly
Member
Registered: 2009-09-18
Posts: 19

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

Offline

Board footer

Powered by FluxBB