<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>RedJumpsuit</title>
	<atom:link href="http://www.redjumpsuit.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redjumpsuit.net</link>
	<description>jobberBase custom development and support</description>
	<lastBuildDate>Fri, 18 May 2012 18:16:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Clear Cache</title>
		<link>http://www.redjumpsuit.net/2012/05/18/clear-cache/</link>
		<comments>http://www.redjumpsuit.net/2012/05/18/clear-cache/#comments</comments>
		<pubDate>Fri, 18 May 2012 17:58:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[clear cache]]></category>
		<category><![CDATA[jobberBase]]></category>

		<guid isPermaLink="false">http://www.redjumpsuit.net/?p=1759</guid>
		<description><![CDATA[here is how you clear your jobberBase website cache (useful when updating the template, this will force refresh all your css, js and asset files to load a brand new cache)

create a php file called page_clearcache.php under /admin:

&#60;?php 
$user_cache = '../_templates/' . THEME . '/_cache/'; 
$admin_cache = '_templates/_cache/'; 
&#160;
foreach&#40;glob&#40;$user_cache .'*.php'&#41; as $uc&#41; 
&#123;   [...]]]></description>
			<content:encoded><![CDATA[<p>here is how you clear your jobberBase website cache (useful when updating the template, this will force refresh all your css, js and asset files to load a brand new cache)</p>
<p><img src="http://www.redjumpsuit.net/wp-content/uploads/2012/05/cache.png" alt="cache" title="cache" width="472" height="299" class="aligncenter size-full wp-image-1762" /></p>
<p>create a php file called page_clearcache.php under /admin:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
<span style="color: #000088;">$user_cache</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'../_templates/'</span> <span style="color: #339933;">.</span> THEME <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/_cache/'</span><span style="color: #339933;">;</span> 
<span style="color: #000088;">$admin_cache</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'_templates/_cache/'</span><span style="color: #339933;">;</span> 
&nbsp;
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">glob</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user_cache</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'*.php'</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$uc</span><span style="color: #009900;">&#41;</span> 
<span style="color: #009900;">&#123;</span>    
<span style="color: #990000;">unlink</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$uc</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #009900;">&#125;</span> 
<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'user_success'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">glob</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$admin_cache</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'*.php'</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$ac</span><span style="color: #009900;">&#41;</span> 
<span style="color: #009900;">&#123;</span>
  <span style="color: #990000;">unlink</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$ac</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'admin_success'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>add in the case under /admin/index.php</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// clear cache</span>
<span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'clear-cache'</span><span style="color: #339933;">:</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SESSION</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'AdminId'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		redirect_to<span style="color: #009900;">&#40;</span>BASE_URL<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #990000;">exit</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">require_once</span> <span style="color: #0000ff;">'page_clearcache.php'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$template</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'clear-cache.tpl'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$flag</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span></pre></div></div>

<p>update /admin/header.tpl and look for this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#123;</span>section name<span style="color: #339933;">=</span>index loop<span style="color: #339933;">=</span><span style="color: #000088;">$settings_categories</span><span style="color: #009900;">&#125;</span>
	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$BASE_URL_ADMIN}</span>settings/{<span style="color: #006699; font-weight: bold;">$settings_categories[index]</span>.var_name}/&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$settings_categories</span><span style="color: #009900;">&#91;</span>index<span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span>name<span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span>section<span style="color: #009900;">&#125;</span></pre></div></div>

<p><img src="http://www.redjumpsuit.net/wp-content/uploads/2012/05/admin-clear.png" alt="admin-clear" title="admin-clear" width="498" height="232" class="aligncenter size-full wp-image-1760" /></p>
<p>then add this right after:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$BASE_URL_ADMIN}</span>clear-cache/&quot;</span><span style="color: #339933;">&gt;</span>Clear Cache<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span></pre></div></div>

<p>create a template file under /admin/_templates called clear-cache.tpl and put this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;header.tpl&quot;</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>h2 id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;password&quot;</span><span style="color: #339933;">&gt;</span>Clear Cache<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$user_success</span><span style="color: #009900;">&#125;</span>
		User cache cleared<span style="color: #339933;">.</span> 
&nbsp;
	<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$admin_success</span><span style="color: #009900;">&#125;</span>
		Admin cache cleared<span style="color: #339933;">.</span> 
&nbsp;
	<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;!--</span> <span style="color: #666666; font-style: italic;">#content --&gt;
</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">include</span> <span style="color: #990000;">file</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;footer.tpl&quot;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p><img src="http://www.redjumpsuit.net/wp-content/uploads/2012/05/admin-clear-ok.png" alt="admin-clear-ok" title="admin-clear-ok" width="429" height="261" class="alignleft size-full wp-image-1761" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.redjumpsuit.net/2012/05/18/clear-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show recent job applications</title>
		<link>http://www.redjumpsuit.net/2012/04/05/show-recent-job-applications/</link>
		<comments>http://www.redjumpsuit.net/2012/04/05/show-recent-job-applications/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 10:16:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[jobberBase]]></category>
		<category><![CDATA[recent applications]]></category>

		<guid isPermaLink="false">http://www.redjumpsuit.net/?p=1754</guid>
		<description><![CDATA[for: jobberBase 1.9.1
this tutorial will show you how to display most recent applied to jobs (as opposed to most applied to jobs.) it will display jobs with the most recent applications (but not necessarily the most popular job)

open page_home.php and add this on the list of the define block:

define&#40;'NUMBER_OF_RECENT_APPLIED_TO_JOBS_TO_GET', $settings&#91;'most_applied_jobs'&#93;&#41;;

on the same page, after this [...]]]></description>
			<content:encoded><![CDATA[<p>for: jobberBase 1.9.1</p>
<p>this tutorial will show you how to display most recent applied to jobs (as opposed to most applied to jobs.) it will display jobs with the most recent applications (but not necessarily the most popular job)</p>
<p><img src="http://www.redjumpsuit.net/wp-content/uploads/2012/04/recent-applied.png" alt="recent-applied" title="recent-applied" width="539" height="288" class="aligncenter size-full wp-image-1755" /></p>
<p>open page_home.php and add this on the list of the define block:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'NUMBER_OF_RECENT_APPLIED_TO_JOBS_TO_GET'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$settings</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'most_applied_jobs'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>on the same page, after this line:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'most_applied_to_jobs'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$job</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">GetMostAppliedToJobs</span><span style="color: #009900;">&#40;</span>NUMBER_OF_MOST_APPLIED_TO_JOBS_TO_GET<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>add this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'recent_applied_to_jobs'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$job</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">GetRecentAppliedJobs</span><span style="color: #009900;">&#40;</span>NUMBER_OF_RECENT_APPLIED_TO_JOBS_TO_GET<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>next, open /_includes/class.Job.php and look for this block:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> GetMostAppliedToJobs<span style="color: #009900;">&#40;</span><span style="color: #000088;">$limit</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>add this after:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> GetRecentAppliedJobs<span style="color: #009900;">&#40;</span><span style="color: #000088;">$limit</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$db</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$jobs</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$sql_limit</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'LIMIT '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$limit</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'SELECT job_id AS job_id, DATE_FORMAT(created_on, &quot;'</span> <span style="color: #339933;">.</span> <span style="color: #990000;">DATE_FORMAT</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;) AS applied_on FROM  '</span><span style="color: #339933;">.</span>DB_PREFIX<span style="color: #339933;">.</span><span style="color: #0000ff;">'job_applications 
				ORDER BY created_on DESC '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$sql_limit</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$current_job</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Job<span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'job_id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$job</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current_job</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">GetInfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$job</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'applied_on'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'applied_on'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$jobs</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$job</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$jobs</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></div></div>

<p>third, open /_templates/default/home.tpl and after this block:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$most_applied_to_jobs</span><span style="color: #009900;">&#125;</span>
	<span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;</span>h2<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>homepage<span style="color: #339933;">.</span>popular_jobs<span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
&nbsp;
	<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">foreach</span> item<span style="color: #339933;">=</span>job from<span style="color: #339933;">=</span><span style="color: #000088;">$most_applied_to_jobs</span><span style="color: #009900;">&#125;</span>
		<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{cycle values='row,row-alt'}&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;row-info&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$BASE_URL}</span>_templates/<span style="color: #006699; font-weight: bold;">{$THEME}</span>/img/icon-{<span style="color: #006699; font-weight: bold;">$job</span>.type_var_name}.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{<span style="color: #006699; font-weight: bold;">$job</span>.type_name}&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$BASE_URL}</span><span style="color: #006699; font-weight: bold;">{$URL_JOB}</span>/{<span style="color: #006699; font-weight: bold;">$job</span>.id}/{<span style="color: #006699; font-weight: bold;">$job</span>.url_title}/&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{<span style="color: #006699; font-weight: bold;">$job</span>.title}&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$job</span><span style="color: #339933;">.</span>title<span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;la&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>homepage<span style="color: #339933;">.</span>at<span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$job</span><span style="color: #339933;">.</span>company<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$job</span><span style="color: #339933;">.</span>is_location_anywhere<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>jobs<span style="color: #339933;">.</span>location_anywhere<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;la&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>homepage<span style="color: #339933;">.</span>in<span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$job</span><span style="color: #339933;">.</span>location<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
			<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;time-posted&quot;</span><span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$job</span><span style="color: #339933;">.</span>apps<span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>strong<span style="color: #339933;">&gt;</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>homepage<span style="color: #339933;">.</span>applicants<span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>			
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
	<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p>add this block:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$recent_applied_to_jobs</span><span style="color: #009900;">&#125;</span>
	<span style="color: #339933;">&lt;</span>br <span style="color: #339933;">/&gt;</span>
	<span style="color: #339933;">&lt;</span>h2<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>homepage<span style="color: #339933;">.</span>applied_jobs<span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
	<span style="color: #009900;">&#123;</span><span style="color: #b1b100;">foreach</span> item<span style="color: #339933;">=</span>job from<span style="color: #339933;">=</span><span style="color: #000088;">$recent_applied_to_jobs</span><span style="color: #009900;">&#125;</span>
		<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{cycle values='row,row-alt'}&quot;</span><span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;row-info&quot;</span><span style="color: #339933;">&gt;</span>
				<span style="color: #339933;">&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$BASE_URL}</span>_templates/<span style="color: #006699; font-weight: bold;">{$THEME}</span>/img/icon-{<span style="color: #006699; font-weight: bold;">$job</span>.type_var_name}.png&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{<span style="color: #006699; font-weight: bold;">$job</span>.type_name}&quot;</span> <span style="color: #339933;">/&gt;</span>
				<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$BASE_URL}</span><span style="color: #006699; font-weight: bold;">{$URL_JOB}</span>/{<span style="color: #006699; font-weight: bold;">$job</span>.id}/{<span style="color: #006699; font-weight: bold;">$job</span>.url_title}/&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;{<span style="color: #006699; font-weight: bold;">$job</span>.title}&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$job</span><span style="color: #339933;">.</span>title<span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span> <span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;la&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>homepage<span style="color: #339933;">.</span>at<span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$job</span><span style="color: #339933;">.</span>company<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$job</span><span style="color: #339933;">.</span>is_location_anywhere<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>jobs<span style="color: #339933;">.</span>location_anywhere<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span> <span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;la&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>homepage<span style="color: #339933;">.</span>in<span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$job</span><span style="color: #339933;">.</span>location<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span>
			<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>
			<span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;time-posted&quot;</span><span style="color: #339933;">&gt;&lt;</span>img src<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$BASE_URL}</span>_templates/<span style="color: #006699; font-weight: bold;">{$THEME}</span>/img/clock.gif&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span> <span style="color: #339933;">/&gt;</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$job</span><span style="color: #339933;">.</span>applied_on<span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;</span>			
		<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
	<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p>also replace this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #339933;">!</span><span style="color: #000088;">$latest_jobs</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$most_applied_to_jobs</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p>with this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #339933;">!</span><span style="color: #000088;">$latest_jobs</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$most_applied_to_jobs</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #000088;">$recent_applied_to_jobs</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p>lastly, open /_templates/default/_translations/translations_en.ini and add this under [homepage]:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">applied_jobs <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Recent applied to IT jobs&quot;</span></pre></div></div>

<p>that should be it. enjoy!</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><div class="paypal-donations"><input type="hidden" name="cmd" value="_donations" /><input type="hidden" name="business" value="myredjumpsuit@gmail.com" /><input type="hidden" name="item_name" value="Donation for tutorial on show recent job applications at http://redjumpsuit.net" /><input type="hidden" name="currency_code" value="USD" /><input type="image" src="http://www.redjumpsuit.net/wp-content/uploads/2010/02/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online." /></div></form>
]]></content:encoded>
			<wfw:commentRss>http://www.redjumpsuit.net/2012/04/05/show-recent-job-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Previous Job, Next Job links</title>
		<link>http://www.redjumpsuit.net/2011/07/21/previous-job-next-job-links/</link>
		<comments>http://www.redjumpsuit.net/2011/07/21/previous-job-next-job-links/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 18:04:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[jobberBase]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[next job]]></category>
		<category><![CDATA[previous job]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.redjumpsuit.net/?p=1723</guid>
		<description><![CDATA[for jobberBase 1.9.1

in this tutorial, i will show how you can add a Previous Job and Next Job links on your job posts, for easy navigation through your job site.]]></description>
			<content:encoded><![CDATA[<p>this is for <strong>jobberBase 1.9.1</strong></p>
<p>in this tutorial, i will show how you can add a Previous Job and Next Job links on your job posts, for easy navigation through your job site.</p>
<p>here are screenshots:</p>
<p><strong>first job post</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/07/first.png" alt="first" title="first" width="425" height="255" class="aligncenter size-full wp-image-1726" /></p>
<p><strong>in between jobs</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/07/active.png" alt="active" title="active" width="433" height="239" class="aligncenter size-full wp-image-1725" /></p>
<p><strong>last job post</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/07/last.png" alt="last" title="last" width="437" height="221" class="aligncenter size-full wp-image-1724" /></p>
<p>Steps:</p>
<p>1) open /_includes/class.Job.php and add this block on the Job class</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// get next job</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> GetNextJob<span style="color: #009900;">&#40;</span><span style="color: #000088;">$category_id</span><span style="color: #339933;">=</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$db</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$condition</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$sanitizer</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Sanitizer<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$category_id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$condition</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">' AND category_id = '</span><span style="color: #339933;">.</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">mCategoryId</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'SELECT id AS next_id, title AS title, company AS company FROM '</span><span style="color: #339933;">.</span>DB_PREFIX<span style="color: #339933;">.</span><span style="color: #0000ff;">'jobs WHERE 1 '</span><span style="color: #339933;">.</span> <span style="color: #000088;">$condition</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">' AND is_active = 1 AND id &gt; '</span><span style="color: #339933;">.</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">mId</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">' ORDER BY id ASC LIMIT 1'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'next_id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'next_id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">.</span> <span style="color: #000088;">$sanitizer</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sanitize_title_with_dashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' at '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'company'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span> 
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// get previous job</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> GetPrevJob<span style="color: #009900;">&#40;</span><span style="color: #000088;">$category_id</span><span style="color: #339933;">=</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$db</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$condition</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$sanitizer</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Sanitizer<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$category_id</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$condition</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">' AND category_id = '</span><span style="color: #339933;">.</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">mCategoryId</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'SELECT id AS prev_id, title AS title, company AS company FROM '</span><span style="color: #339933;">.</span>DB_PREFIX<span style="color: #339933;">.</span><span style="color: #0000ff;">'jobs WHERE 1 '</span><span style="color: #339933;">.</span> <span style="color: #000088;">$condition</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">' AND is_active = 1 AND id &lt; '</span><span style="color: #339933;">.</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">mId</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">' ORDER BY id DESC LIMIT 1'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'prev_id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'prev_id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">.</span> <span style="color: #000088;">$sanitizer</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sanitize_title_with_dashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' at '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'company'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'/'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>2) open /_templates/default/_translations/translations_en.ini and add this on the [jobs] section</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">prev</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;&lt; Previous Job&quot;</span>
<span style="color: #990000;">next</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Next Job &gt;&gt;&quot;</span>
divider <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;or&quot;</span></pre></div></div>

<p>3) open page_job.php and after this block:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// ######### list other jobs by the same company #########</span>
<span style="color: #000088;">$compjobs</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$job</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ApiGetJobsByCompany</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'company'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">5</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sanitizedcomp</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$sanitizer</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sanitize_title_with_dashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$info</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'company'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'compjobs'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$compjobs</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jobsat'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$sanitizedcomp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">// ######### list other jobs by the same company #########</span></pre></div></div>

<p>add this block:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// get next and previous jobs</span>
<span style="color: #000088;">$prev</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$job</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">GetPrevJob</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// set to true if previous job of the same category or leave blank</span>
<span style="color: #000088;">$next</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$job</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">GetNextJob</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// set to true if next job of the same category or leave blank</span>
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$prev</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'prev'</span><span style="color: #339933;">,</span> BASE_URL <span style="color: #339933;">.</span> URL_JOB <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$prev</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$next</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'next'</span><span style="color: #339933;">,</span> BASE_URL <span style="color: #339933;">.</span> URL_JOB <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$next</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>4) finally, open /_templates/default/job.tpl and add the code below wherever you want the <strong><< Previous Job or Next Job >></strong> links to appear.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$prev</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$prev}</span>&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>jobs<span style="color: #339933;">.</span><span style="color: #990000;">prev</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>jobs<span style="color: #339933;">.</span><span style="color: #990000;">prev</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>jobs<span style="color: #339933;">.</span>divider<span style="color: #009900;">&#125;</span> <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">if</span> <span style="color: #000088;">$next</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$next}</span>&quot;</span><span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>jobs<span style="color: #339933;">.</span><span style="color: #990000;">next</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span><span style="color: #009900;">&#123;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#123;</span><span style="color: #000088;">$translations</span><span style="color: #339933;">.</span>jobs<span style="color: #339933;">.</span><span style="color: #990000;">next</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#123;</span><span style="color: #339933;">/</span><span style="color: #b1b100;">if</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p>that should be all. </p>
<p>please consider donating if you like this tutorial or used it on your website <img src='http://www.redjumpsuit.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><div class="paypal-donations"><input type="hidden" name="cmd" value="_donations" /><input type="hidden" name="business" value="myredjumpsuit@gmail.com" /><input type="hidden" name="item_name" value="Previous Job, Next Job tutorial at www.redjumpsuit.net" /><input type="hidden" name="currency_code" value="USD" /><input type="image" src="http://www.redjumpsuit.net/wp-content/uploads/2010/02/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online." /></div></form>
]]></content:encoded>
			<wfw:commentRss>http://www.redjumpsuit.net/2011/07/21/previous-job-next-job-links/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Simple PayPal Payment for jobberBase 1.9.1</title>
		<link>http://www.redjumpsuit.net/2011/07/07/simple-paypal-payment-for-jobberbase-1-9-1/</link>
		<comments>http://www.redjumpsuit.net/2011/07/07/simple-paypal-payment-for-jobberbase-1-9-1/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 18:13:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[jobberBase]]></category>
		<category><![CDATA[buy now button]]></category>
		<category><![CDATA[instant payment notification]]></category>
		<category><![CDATA[IPN]]></category>
		<category><![CDATA[paid jobs]]></category>
		<category><![CDATA[payment]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[paypal hack]]></category>
		<category><![CDATA[paypal ipn]]></category>

		<guid isPermaLink="false">http://www.redjumpsuit.net/?p=1688</guid>
		<description><![CDATA[this is a simple PayPal Payment solution for jobberBase 1.9.1 (now using PayPal IPN &#8211; instant payment notification) off of the original tutorial i created a long time ago. if you only need to be able to direct your job posters to a paypal payment facility with the details of the job being posted (job [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.redjumpsuit.net/wp-content/uploads/2010/03/paypal-button.png" alt="paypal-button" title="paypal-button" width="147" height="67" class="alignleft size-full wp-image-1234" />this is a simple PayPal Payment solution for jobberBase 1.9.1 (<strong>now using PayPal IPN &#8211; instant payment notification</strong>) off of the <a href="http://www.redjumpsuit.net/2010/03/19/simple-paypal-pay-now-hack/">original tutorial</a> i created a long time ago. if you only need to be able to direct your job posters to a paypal payment facility with the details of the job being posted (job id, title, etc) and approve jobs based on the payment made, then this solution is for you.</p>
<p><strong>Requirements:</strong></p>
<ul>
<li>jobberBase 1.9.1 installed and running</li>
<li>PayPal account</li>
</ul>
<p>- if you don&#8217;t have a PayPal account, click below to signup.<br />
<a href="https://www.paypal.com/ph/mrb/pal=ZA8ZDHHCBP4LL" target="_blank"><img src="http://images.paypal.com/en_US/i/bnr/paypal_mrb_banner.gif" border="0" alt="Sign up for PayPal and start accepting credit card payments instantly."></a></p>
<p><strong>Features:</strong></p>
<ul>
<li>turn PayPal feature off and on</li>
<li>assign individual amount for each of the job type</li>
<li>update setting to require payment only on first post</li>
<li>update setting to require payment on every post</li>
<li>sends email notification with the payment link</li>
<li>automatically posts job on successful payment</li>
</ul>
<p>here are the screenshots:</p>
<p><strong>admin &#8211; paypal settings</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/07/tn_paypal-settings.png" alt="tn_paypal-settings" title="tn_paypal-settings" width="500" height="392" class="aligncenter size-full wp-image-1710" /></p>
<p><strong>admin &#8211; paypal for job types</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/07/tn_paypal-jobtypes.png" alt="tn_paypal-jobtypes" title="tn_paypal-jobtypes" width="500" height="213" class="aligncenter size-full wp-image-1709" /></p>
<p><strong>post a job</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/07/tn_post-job.png" alt="tn_post-job" title="tn_post-job" width="500" height="328" class="aligncenter size-full wp-image-1693" /></p>
<p><strong>job confirmation</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/07/tn_pay-now.png" alt="tn_pay-now" title="tn_pay-now" width="500" height="219" class="aligncenter size-full wp-image-1696" /></p>
<p><strong>pay now on PayPal</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/07/tn_paypal-payment.png" alt="tn_paypal-payment" title="tn_paypal-payment" width="500" height="282" class="aligncenter size-full wp-image-1697" /></p>
<p><strong>email sent</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/07/tn_email.png" alt="tn_email" title="tn_email" width="477" height="500" class="aligncenter size-full wp-image-1701" /></p>
<p><strong>job automatically posted upon payment</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/07/tn_paypal-success.png" alt="tn_paypal-success" title="tn_paypal-success" width="500" height="325" class="aligncenter size-full wp-image-1708" /></p>
<p>Once you download the file, unzip it and follow the installation instructions carefully. </p>
<p><em><strong>NOTE:</strong> This installs on a vanilla jobberBase 1.9.1 installation on the default template. If you have done changes on your current site affecting the files included in the zip file, you must copy your changes to the files in the zip.</em></p>
<div align="center"><span style="color: #000000; font-size: 16px; font-weight: bold;"><strong>Simple PayPal Payment for jobberBase v1.9.1<br />
US$49*</strong><br />
</span></p>
<p><a href="https://tinypay.me/~OsptoH0" target="_blank"><img class="none" src="http://www.redjumpsuit.net/wp-content/uploads/files/download.jpg" alt="" /></a></div>
<p>* Please make sure to read the <a href="http://www.redjumpsuit.net/software-license/" target="_blank">license agreement</a> before making a purchase</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redjumpsuit.net/2011/07/07/simple-paypal-payment-for-jobberbase-1-9-1/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sub-Categories Module for jobberBase 1.9.1</title>
		<link>http://www.redjumpsuit.net/2011/05/20/sub-categories-module-for-jobberbase-1-9-1/</link>
		<comments>http://www.redjumpsuit.net/2011/05/20/sub-categories-module-for-jobberbase-1-9-1/#comments</comments>
		<pubDate>Fri, 20 May 2011 10:31:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[jobberBase]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[sub-categories]]></category>

		<guid isPermaLink="false">http://www.redjumpsuit.net/?p=1606</guid>
		<description><![CDATA[this module already exists in the previous bundled add-ons for jobberBase (1.8), i had some time this week to work on converting the code to jobberBase 1.9.1. i hope this will be a helpful module for those looking at extending jobberBase to accomodate sub-categories functionality.
Features:

add as many sub-categories under your existing job categories in Admin [...]]]></description>
			<content:encoded><![CDATA[<p>this module already exists in the previous bundled add-ons for jobberBase (1.8), i had some time this week to work on converting the code to jobberBase 1.9.1. i hope this will be a helpful module for those looking at extending jobberBase to accomodate sub-categories functionality.</p>
<p><strong>Features:</strong></p>
<ul>
<li>add as many sub-categories under your existing job categories in Admin panel</li>
<li>delete sub-categories (will only delete when there are no existing jobs posted under it) in Admin panel</li>
<li>supports sub-categories pagination</li>
<li>post jobs with sub-categories selection</li>
<li>show job details with link to job&#8217;s sub-category</li>
</ul>
<p>Screenshots:</p>
<p><strong>category</strong> with pagination<br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/05/category.png" alt="category" title="category" width="541" height="296" class="aligncenter size-full wp-image-1605" /></p>
<p><strong>sub-categories</strong> with pagination<br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/05/sub-category.png" alt="sub-category" title="sub-category" width="533" height="301" class="aligncenter size-full wp-image-1602" /></p>
<p><strong>job details</strong> with link to job&#8217;s sub-category<br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/05/job-details.png" alt="job-details" title="job-details" width="535" height="395" class="aligncenter size-full wp-image-1604" /></p>
<p><strong>job posting</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/05/job-post.png" alt="job-post" title="job-post" width="469" height="536" class="aligncenter size-full wp-image-1603" /></p>
<p><strong>admin</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/05/admin.png" alt="admin" title="admin" width="623" height="536" class="aligncenter size-full wp-image-1601" /></p>
<p>NOTE: This module is using the default jobberBase template. If you are using a different template, you must copy the changes on the default template included in the module to your custom template.</p>
<p>Once you download the file, just unzip it and follow the installation instructions carefully. </p>
<p><em><strong>NOTE:</strong> This installs on a vanilla jobberBase 1.9.1 installation. If you have done changes on your current site affecting the files included in the zip file, you must copy your changes to the files in the zip.</em></p>
<div align="center"><span style="color: #000000; font-size: 16px; font-weight: bold;"><strong>Sub-Categories Module for jobberBase v1.9.1<br />
US$49*</strong><br />
</span></p>
<p><a href="https://tinypay.me/~lmwqYB0" target="_blank"><img class="none" src="http://www.redjumpsuit.net/wp-content/uploads/files/download.jpg" alt="" /></a></div>
<p>* Please make sure to read the <a href="http://www.redjumpsuit.net/software-license/" target="_blank">license agreement</a> before making a purchase</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redjumpsuit.net/2011/05/20/sub-categories-module-for-jobberbase-1-9-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jobberBase 1.9.1 with upgraded features</title>
		<link>http://www.redjumpsuit.net/2011/04/22/jobberbase-with-upgraded-features/</link>
		<comments>http://www.redjumpsuit.net/2011/04/22/jobberbase-with-upgraded-features/#comments</comments>
		<pubDate>Sat, 23 Apr 2011 02:58:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[jobberBase]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.redjumpsuit.net/?p=1589</guid>
		<description><![CDATA[Take your job board to the next level!

Running a jobberBase 1.9.1 job board or thinking about starting one? Find out ways to add feature upgrades to your jobberBase job boards with this new bundled add-ons!]]></description>
			<content:encoded><![CDATA[<p><span style="color: #000000;"><img class="alignleft size-full wp-image-1143" title="home-sticky-300x277" src="http://www.redjumpsuit.net/wp-content/uploads/2009/01/home-sticky-300x277.png" alt="home-sticky-300x277" width="300" height="277" /><strong>Take your job board to the next level!</strong></span></p>
<p>Running a jobberBase 1.9.1 job board or thinking about starting one? Find out ways to add feature upgrades to your jobberBase job boards with this new bundled add-ons!</p>
<h3>SALE &#8211; Bundled Add-Ons for US$99</h3>
<p><strong><a href="http://www.redjumpsuit.net/jb191/" target="_blank">Try the USER DEMO</a></strong></p>
<p><strong><a href="http://www.redjumpsuit.net/jb191/admin/" target="_blank">Try the ADMIN DEMO</a></strong> (u/p:admin)</p>
<p><strong>Requirement:</strong></p>
<p>- a successfully installed jobberBase 1.9.1 job board</p>
<p>the add-ons included in this bundled feature upgrade are the following (you can also get these add-ons separately):</p>
<p><a href="http://www.redjumpsuit.net/2011/01/25/online-job-manager-for-jobberbase-1-9-1/" target="_blank"><strong>Online Job Manager</strong></a></p>
<ul>
<li>job poster does not need to register for an account</li>
<li>no need to login</li>
<li>no forgetting passwords</li>
<li>can manage (edit or delete) older posted jobs without accessing the job’s email</li>
<li>job poster only needs the most recent email received when his/her job was posted</li>
<li>will not affect any of your customizations</li>
<li>supports pagination as well</li>
</ul>
<p><a href="http://www.redjumpsuit.net/2011/02/13/cv-resume-viewer-for-v1-9-1/" target="_blank"><strong>CV/Resume Viewer</strong></a></p>
<ul>
<li>single link to view all job applications online</li>
<li>supports pagination</li>
<li>ability to download resume</li>
<li>resumes uploaded are stored in a complex folder and is encoded for protection</li>
<li>when the job is deleted by the admin, all related applications and resume are deleted as well</li>
</ul>
<p><a href="http://www.redjumpsuit.net/2011/02/20/new-jobs-email-subscription-for-jobberbase-1-9-1/" target="_blank"><strong>Email subscription on new jobs</strong></a></p>
<ul>
<li>users can subscribe to any of the categories</li>
<li>user must confirm email address before getting notifications (to avoid bogus email addresses)</li>
<li>automatic notification will be sent to the subscriber whenever a new job is posted for that job’s category</li>
<li>on the notification sent to the subscribers, an unsubscribe link is provided in case users no longer want to receive emails for that job category</li>
<li>new jobs email alert does not get sent until the job has been approved by the admin or the job poster’s email address has been previously approved (to avoid spamming)</li>
</ul>
<p><a href="http://www.redjumpsuit.net/2011/01/31/tinymce-job-posting-for-jobberbase-1-9-1/" target="_blank"><strong>TinyMCE when posting jobs</strong></a></p>
<ul>
<li>using HTML editor when employers post job</li>
<li>using HTML editor when admin posts a job</li>
<li>using HTML editor when job ad is edited (both by employer and by admin)</li>
</ul>
<p><strong>Note: </strong>the upgrade package is using the jobberBase 1.9.1 default theme. if you are using a different theme, you will need to copy the changes made on the corresponding default template file to your custom template.</p>
<p>Once you download the file, just unzip it and follow the installation instructions carefully.</p>
<p><em><strong>NOTE:</strong> This installs on a vanilla jobberBase 1.9.1 installation. If you have done changes on your current site affecting the files included in the zip file, you must copy your changes to the files in the zip.</em></p>
<div style="text-align: center;"><span style="color: #000000; font-size: 16px; font-weight: bold;"><strong>SALE &#8211; Bundled Add-Ons for jobberBase 1.9.1 </strong></p>
<p style="text-align: center;"><strong>US$99*</strong></p>
<div align="center">
<a href="https://tinypay.me/~mdjMv3J" target="_blank"><img class="none" src="http://www.redjumpsuit.net/wp-content/uploads/files/download.jpg" alt="" /></a></div>
</p>
<p></span></div>
<p style="text-align: center;">* Please make sure to read the <a href="http://www.redjumpsuit.net/software-license/" target="_blank">license agreement</a> before making a purchase</p>
<p style="text-align: left;"><strong>Drive instant traffic to your job board!</strong></p>
<p style="text-align: left;">I am including a backfill script on this bundle for <em>free</em>, with it you can instantly backfill your jobberBase job board with Indeed and SimplyHired jobs (if your job board does not have any content to begin with.)</p>
<p style="text-align: left;"><strong>Warning and Disclaimer:<br />
</strong></p>
<p style="text-align: left;"><strong>If you decide to use the backfill script, your site <span style="color: #000000;"><span style="text-decoration: underline;">must</span></span> adhere to Indeed and SimplyHired&#8217;s Terms of Use. I will not be responsible for the content of your  website that will prohibit you from using the backfill script.</strong></p>
<p style="text-align: left;"><strong>Requirement:</strong></p>
<p style="text-align: left;">1) jobberBase v1.9.x installed (and running)</p>
<p style="text-align: left;"><strong>Features:</strong></p>
<p style="text-align: left;">1) No database modification<br />
2) Setup the backfill jobs as cron jobs to run at your preferred interval<br />
3) No double-posting of the same jobs from the same network<br />
4) It will back fill jobs for all your job categories (and location if wanted)<br />
5) Using the basic RSS feed from SimplyHired and Indeed</p>
<p>Once again&#8230;</p>
<p style="text-align: left;"><strong>Warning and Disclaimer:<br />
</strong></p>
<p style="text-align: left;"><strong>If you decide to use the backfill script, your site <span style="color: #000000;"><span style="text-decoration: underline;">must</span></span> adhere to Indeed and SimplyHired&#8217;s Terms of Use. I will not be  responsible for the content of your  website that will prohibit you from  using the backfill script.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.redjumpsuit.net/2011/04/22/jobberbase-with-upgraded-features/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Facebook-like font on default jobberBase template</title>
		<link>http://www.redjumpsuit.net/2011/04/22/facebook-like-font-on-default-jobberbase-template/</link>
		<comments>http://www.redjumpsuit.net/2011/04/22/facebook-like-font-on-default-jobberbase-template/#comments</comments>
		<pubDate>Fri, 22 Apr 2011 14:58:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[jobberBase]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.redjumpsuit.net/?p=1567</guid>
		<description><![CDATA[this is for jobberBase 1.9.1:
have you ever wanted to change the font of your jobberBase website to look a little like Facebook? i did a little research and tried it on the default jobberBase template. here&#8217;s what i came up with. it only needed change in the screen.css file. 
once you download the css file, [...]]]></description>
			<content:encoded><![CDATA[<p>this is for <strong>jobberBase 1.9.1</strong>:</p>
<p>have you ever wanted to change the font of your jobberBase website to look a little like Facebook? i did a little research and tried it on the default jobberBase template. here&#8217;s what i came up with. it only needed change in the screen.css file. </p>
<p>once you download the css file, you only need to rename your /_templates/default/css/screen.css file and replace with this. from there you can customize this as you need.</p>
<p>see screenshots below:</p>
<p><strong>homepage</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/front.png" alt="front" title="front" width="501" height="288" class="aligncenter size-full wp-image-1572" /></p>
<p><strong>all jobs</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/all-jobs.png" alt="all-jobs" title="all-jobs" width="436" height="309" class="aligncenter size-full wp-image-1568" /></p>
<p><strong>job details</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/job-details.png" alt="job-details" title="job-details" width="464" height="355" class="aligncenter size-full wp-image-1578" /></p>
<p><strong>send to friend</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/send-to-friend.png" alt="send-to-friend" title="send-to-friend" width="356" height="188" class="aligncenter size-full wp-image-1570" /></p>
<p><strong>post a job</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/post-job.png" alt="post-job" title="post-job" width="517" height="332" class="aligncenter size-full wp-image-1571" /></p>
<p><strong>sidebar</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/sidebar.png" alt="sidebar" title="sidebar" width="399" height="360" class="aligncenter size-full wp-image-1569" /></p>
<p><strong>apply for a job</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/apply.png" alt="apply" title="apply" width="430" height="436" class="aligncenter size-full wp-image-1575" /></p>
<p><strong>contact form</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/contact.png" alt="contact" title="contact" width="368" height="438" class="aligncenter size-full wp-image-1574" /></p>
<p><strong>footer</strong><br />
<img src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/footer.png" alt="footer" title="footer" width="475" height="110" class="aligncenter size-full wp-image-1573" /></p>
<p><center><strong>Facebook-like font on default jobberBase template</strong><br /><a href="#" onclick="startGateway('MTg0NDY4');"><img src="http://www.redjumpsuit.net/wp-content/uploads/files/download.jpg" class="none"/></a></center></p>
]]></content:encoded>
			<wfw:commentRss>http://www.redjumpsuit.net/2011/04/22/facebook-like-font-on-default-jobberbase-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment Module for jobberBase 1.9.1</title>
		<link>http://www.redjumpsuit.net/2011/04/17/comment-module-for-jobberbase-1-9-1/</link>
		<comments>http://www.redjumpsuit.net/2011/04/17/comment-module-for-jobberbase-1-9-1/#comments</comments>
		<pubDate>Sun, 17 Apr 2011 10:31:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[jobberBase]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[comment]]></category>
		<category><![CDATA[flag]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.redjumpsuit.net/?p=1557</guid>
		<description><![CDATA[requirements:
a successfully installed jobberBase 1.9.1
features include:

comment posting for every job
ability to flag inappropriate comment (deletes after a set number of flags)
users can only flag a comment once with the same IP address
job poster gets notified every time there is a new comment
link for job poster to directly delete job
link for job posters to manage all [...]]]></description>
			<content:encoded><![CDATA[<p><strong>requirements:</strong></p>
<p>a successfully installed jobberBase 1.9.1</p>
<p><strong>features include:</strong></p>
<ul>
<li>comment posting for every job</li>
<li>ability to flag inappropriate comment (deletes after a set number of flags)</li>
<li>users can only flag a comment once with the same IP address</li>
<li>job poster gets notified every time there is a new comment</li>
<li>link for job poster to directly delete job</li>
<li>link for job posters to manage all the comments in the job</li>
<li>manage comments through the admin panel</li>
</ul>
<p>here are some screen shots of this module</p>
<p>view comments:<br />
<img class="aligncenter size-full wp-image-1551" title="tn_view-comments" src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/tn_view-comments.png" alt="tn_view-comments" width="250" height="500" /></p>
<p>email received:<br />
<img class="aligncenter size-full wp-image-1555" title="tn_email-received" src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/tn_email-received.png" alt="tn_email-received" width="500" height="418" /></p>
<p>manage comments:<br />
<img class="aligncenter size-full wp-image-1556" title="tn_manage-comments" src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/tn_manage-comments.png" alt="tn_manage-comments" width="330" height="500" /></p>
<p>flag comment:<br />
<img class="aligncenter size-full wp-image-1553" title="tn_comment-flagged" src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/tn_comment-flagged.png" alt="tn_comment-flagged" width="255" height="500" /></p>
<p>comment cannot be flagged (when already flagged by the same ip address):<br />
<img class="aligncenter size-full wp-image-1554" title="tn_comment-no-flag" src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/tn_comment-no-flag.png" alt="tn_comment-no-flag" width="255" height="500" /></p>
<p>manage comments on admin:<br />
<img class="aligncenter size-full wp-image-1552" title="tn_admin-comments" src="http://www.redjumpsuit.net/wp-content/uploads/2011/04/tn_admin-comments.png" alt="tn_admin-comments" width="500" height="264" /></p>
<p><em><strong>NOTE:</strong> This installs on a vanilla jobberBase 1.9.1 installation. If you have done changes on your current site affecting the files included in the zip file, you must copy your changes to the files in the zip.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.redjumpsuit.net/2011/04/17/comment-module-for-jobberbase-1-9-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paginating List of Company Jobs</title>
		<link>http://www.redjumpsuit.net/2011/03/17/paginating-list-of-company-jobs/</link>
		<comments>http://www.redjumpsuit.net/2011/03/17/paginating-list-of-company-jobs/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 10:41:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[jobberBase]]></category>
		<category><![CDATA[company jobs]]></category>
		<category><![CDATA[paginate]]></category>

		<guid isPermaLink="false">http://www.redjumpsuit.net/?p=1543</guid>
		<description><![CDATA[For version: 1.9.1
if you have a fairly large database of jobs, and you have companies that have over thousands of jobs, more or less you will probably be getting &#8220;Out of memory&#8221; error when trying to list all the jobs of these companies. 
Error looks like this:

Fatal error: Out of memory &#40;allocated 66584576&#41; &#40;tried to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>For version: 1.9.1</strong></p>
<p>if you have a fairly large database of jobs, and you have companies that have over thousands of jobs, more or less you will probably be getting &#8220;Out of memory&#8221; error when trying to list all the jobs of these companies. </p>
<p>Error looks like this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Fatal error<span style="color: #339933;">:</span> Out of memory <span style="color: #009900;">&#40;</span>allocated <span style="color: #cc66cc;">66584576</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#40;</span>tried to allocate <span style="color: #cc66cc;">830</span> bytes<span style="color: #009900;">&#41;</span> in <span style="color: #339933;">/</span>public_html<span style="color: #339933;">/</span>_includes<span style="color: #339933;">/</span><span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">.</span>Job<span style="color: #339933;">.</span>php on line <span style="color: #cc66cc;">58</span></pre></div></div>

<p>The fix is to paginate the list of jobs instead of listing all of the jobs all the same time.</p>
<p>Here&#8217;s the steps:</p>
<p>1) Create a backup of page_company.php<br />
2) Open page_company.php and replace all the code with this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
	<span style="color: #000088;">$sanitizer</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Sanitizer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'SELECT DISTINCT company FROM '</span><span style="color: #339933;">.</span>DB_PREFIX<span style="color: #339933;">.</span><span style="color: #0000ff;">'jobs'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$comps</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">QueryArray</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comps</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$comp</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$sanitizer</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">sanitize_title_with_dashes</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comp</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'company'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$id</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$company</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$comp</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'company'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #000088;">$jobsCount</span> <span style="color: #339933;">=</span>  <span style="color: #000088;">$job</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">CountJobsOfCompany</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$company</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$paginatorLink</span> <span style="color: #339933;">=</span> BASE_URL <span style="color: #339933;">.</span> URL_JOBS_AT_COMPANY <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;/<span style="color: #006699; font-weight: bold;">$id</span>/&quot;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$paginator</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Paginator<span style="color: #009900;">&#40;</span><span style="color: #000088;">$jobsCount</span><span style="color: #339933;">,</span> JOBS_PER_PAGE<span style="color: #339933;">,</span> <span style="color: #339933;">@</span><span style="color: #000088;">$_REQUEST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'p'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$paginator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setLink</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$paginatorLink</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$paginator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">paginate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$firstLimit</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$paginator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getFirstLimit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$lastLimit</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$paginator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getLastLimit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'jobs'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$job</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ApiGetJobsByCompany</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$company</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$firstLimit</span><span style="color: #339933;">,</span> JOBS_PER_PAGE<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'current_company'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$company</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$smarty</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">assign</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'pages'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$paginator</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">pages_link</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000088;">$html_title</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$translations</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'companies'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'are_you_looking'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$company</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'?'</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$meta_description</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$translations</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'companies'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'meta_part1'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$company</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'! '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$translations</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'companies'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'meta_part2'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$template</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'company.tpl'</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>3) Open /_includes/class.Job.php and look for the block:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> ApiGetJobs<span style="color: #009900;">&#40;</span><span style="color: #000088;">$type_id</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$categ_id</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$limit</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$random</span><span style="color: #339933;">,</span> <span style="color: #000088;">$days_behind</span><span style="color: #339933;">,</span> <span style="color: #000088;">$for_feed</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$city_id</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span> <span style="color: #339933;">...</span> <span style="color: #009900;">&#125;</span></pre></div></div>

<p>add this block after:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> CountJobsOfCompany<span style="color: #009900;">&#40;</span><span style="color: #000088;">$company</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$db</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'SELECT COUNT(id) AS total FROM '</span><span style="color: #339933;">.</span>DB_PREFIX<span style="color: #339933;">.</span><span style="color: #0000ff;">'jobs WHERE company LIKE &quot;'</span><span style="color: #339933;">.</span> <span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">real_escape_string</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$company</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;'</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'total'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></div></div>

<p>4) Look for this block (should be below the block you just added):</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Get all jobs published by a company</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> ApiGetJobsByCompany<span style="color: #009900;">&#40;</span><span style="color: #000088;">$company</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$limit</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$for_feed</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span> <span style="color: #339933;">...</span> <span style="color: #009900;">&#125;</span></pre></div></div>

<p>and replace it with this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Get all jobs published by a company</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> ApiGetJobsByCompany<span style="color: #009900;">&#40;</span><span style="color: #000088;">$company</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$limit</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$for_feed</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$startIndex</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #000088;">$numberOfJobsToGet</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$db</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$jobs</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$conditions</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$company</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$conditions</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">' AND company LIKE &quot;%'</span> <span style="color: #339933;">.</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">real_escape_string</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$company</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'%&quot;'</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$for_feed</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #666666; font-style: italic;">// job was posted more than 10 minutes ago</span>
			<span style="color: #000088;">$conditions</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">' AND DATE_SUB(NOW(), INTERVAL 10 MINUTE) &gt; created_on'</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
&nbsp;
		<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$numberOfJobsToGet</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
			<span style="color: #000088;">$sql_limit</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">' ORDER BY created_on DESC limit '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$startIndex</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">','</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$numberOfJobsToGet</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">else</span>
			<span style="color: #000088;">$sql_limit</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #000088;">$sql</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'SELECT id
		               FROM '</span><span style="color: #339933;">.</span>DB_PREFIX<span style="color: #339933;">.</span><span style="color: #0000ff;">'jobs
		               WHERE 1 '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$conditions</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' AND is_temp = 0 AND is_active = 1 '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$sql_limit</span><span style="color: #339933;">;</span>
		<span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$db</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$result</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#123;</span>
			<span style="color: #000088;">$current_job</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Job<span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$job</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$current_job</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">GetInfo</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$job</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'poster_email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$job</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'auth'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #000088;">$jobs</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$job</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
		<span style="color: #b1b100;">return</span> <span style="color: #000088;">$jobs</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></div></div>

<p>So when listing jobs of a certain company with a few thousand postings, it will now paginate instead of listing all of the company&#8217;s jobs causing your page to throw &#8220;Out-of-memory&#8221; error.</p>
<p>please consider donating if you like this tutorial or used it on your website <img src='http://www.redjumpsuit.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><div class="paypal-donations"><input type="hidden" name="cmd" value="_donations" /><input type="hidden" name="business" value="myredjumpsuit@gmail.com" /><input type="hidden" name="item_name" value="Paginating List of Company Jobs tutorial at www.redjumpsuit.net" /><input type="hidden" name="currency_code" value="USD" /><input type="image" src="http://www.redjumpsuit.net/wp-content/uploads/2010/02/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online." /></div></form>
]]></content:encoded>
			<wfw:commentRss>http://www.redjumpsuit.net/2011/03/17/paginating-list-of-company-jobs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Save US$21 on feature upgrades!</title>
		<link>http://www.redjumpsuit.net/2011/02/28/save-21-on-feature-upgrades/</link>
		<comments>http://www.redjumpsuit.net/2011/02/28/save-21-on-feature-upgrades/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 17:28:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[jobberBase]]></category>
		<category><![CDATA[1.9.1]]></category>
		<category><![CDATA[add-ons]]></category>
		<category><![CDATA[email subscription]]></category>
		<category><![CDATA[manage jobs]]></category>
		<category><![CDATA[tinymce]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[view applicants]]></category>

		<guid isPermaLink="false">http://www.redjumpsuit.net/?p=1535</guid>
		<description><![CDATA[i&#8217;ve decided to put together my four most recent add-ons into one single upgrade for your jobberBase 1.9.1 job board. with this you&#8217;ll save US$21 than if you get each of the add-ons separately   plus you don&#8217;t have to think about installing them one by one.
Try the DEMO
requirement:
- a successfully installed jobberBase 1.9.1 [...]]]></description>
			<content:encoded><![CDATA[<p>i&#8217;ve decided to put together my four most recent add-ons into one single upgrade for your <strong>jobberBase 1.9.1</strong> job board. with this <em>you&#8217;ll save US$21</em> than if you get each of the add-ons separately <img src='http://www.redjumpsuit.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  plus you don&#8217;t have to think about installing them one by one.</p>
<p><strong><a href="http://www.redjumpsuit.net/jb191/" target="_blank">Try the DEMO</a></strong></p>
<p><strong>requirement:</strong><br />
- a successfully installed jobberBase 1.9.1 job board</p>
<p>the add-ons included in this feature upgrade are the following:</p>
<p><a href="http://www.redjumpsuit.net/2011/01/25/online-job-manager-for-jobberbase-1-9-1/" target="_blank"><strong>Online Job Manager</strong></a></p>
<ul>
<li>job poster does not need to register for an account</li>
<li>no need to login</li>
<li>no forgetting passwords</li>
<li>can manage (edit or delete) older posted jobs without accessing the job’s email</li>
<li>job poster only needs the most recent email received when his/her job was posted</li>
<li>will not affect any of your customizations</li>
<li>supports pagination as well</li>
</ul>
<p><a href="http://www.redjumpsuit.net/2011/02/13/cv-resume-viewer-for-v1-9-1/" target="_blank"><strong>CV/Resume Viewer</strong></a></p>
<ul>
<li>single link to view all job applications online</li>
<li>supports pagination</li>
<li>ability to download resume</li>
<li>resumes uploaded are stored in a complex folder and is encoded for protection</li>
<li>when the job is deleted by the admin, all related applications and resume are deleted as well</li>
</ul>
<p><a href="http://www.redjumpsuit.net/2011/02/20/new-jobs-email-subscription-for-jobberbase-1-9-1/" target="_blank"><strong>Email subscription on new jobs</strong></a></p>
<ul>
<li>users can subscribe to any of the categories</li>
<li>user must confirm email address before getting notifications (to avoid bogus email addresses)</li>
<li>automatic notification will be sent to the subscriber whenever a new job is posted for that job’s category</li>
<li>on the notification sent to the subscribers, an unsubscribe link is provided in case users no longer want to receive emails for that job category</li>
<li>new jobs email alert does not get sent until the job has been approved by the admin or the job poster’s email address has been previously approved (to avoid spamming)</li>
</ul>
<p><a href="http://www.redjumpsuit.net/2011/01/31/tinymce-job-posting-for-jobberbase-1-9-1/" target="_blank"><strong>TinyMCE when posting jobs</strong></a></p>
<ul>
<li>using HTML editor when employers post job</li>
<li>using HTML editor when admin posts a job</li>
<li>using HTML editor when job ad is edited (both by employer and by admin)</li>
</ul>
<p>Once you download the file, just unzip it and follow the installation instructions carefully.</p>
<p><em><strong>NOTE:</strong> This installs on a vanilla jobberBase 1.9.1 installation using the default template. If you have done changes on your current site affecting the files included in the zip file, you must copy your changes to the files in the zip.</em></p>
<div align="center"><span style="color: #000000; font-size: 16px; font-weight: bold;"><strong>4 Upgrades to jobberBase 1.9.1<br />
<del datetime="2011-02-28T17:11:48+00:00">US$120</del> US$99*</strong><br />
</span></p>
<p><a href="https://tinypay.me/~mdjMv3J" target="_blank"><img class="none" src="http://www.redjumpsuit.net/wp-content/uploads/files/download.jpg" alt="" /></a></div>
<p>* Please make sure to read the <a href="http://www.redjumpsuit.net/software-license/" target="_blank">license agreement</a> before making a purchase</p>
]]></content:encoded>
			<wfw:commentRss>http://www.redjumpsuit.net/2011/02/28/save-21-on-feature-upgrades/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

