ChronoScripts JobberBase Scripts and (PHP) Support

24Jul/090

Apply Online – Admin Panel Update

This modification expands the simple, but effective, modification by RedJumpsuit: "Allow Online Applications". After installation you will have the ability to adjust the 'apply-online' setting in the admin panel, as well as when creating new jobs from there.

You will need to have this mod installed, or this guide will not work.

Modification Features:

  • Ability to adjust the 'apply-online' setting for existing jobs in the admin panel
  • Ability to set the 'apply-online' setting for new jobs in the admin panel


1. Open "admin/_templates/edit-post.tpl":

Find:

<fieldset>
	<input type="button" id="save" {if $job.id == 0}value="Post"{else}value="Save"{/if} />
	<input type="button" id="preview" value="Preview" />
</fieldset>

Add above:

<fieldset><input type="checkbox" name="apply_online" id="apply_online" {if $job.apply_online == 1 || $job.id == 0}checked="checked"{/if}{if !isset($job.apply_online)}checked="checked"{/if} /> <strong>Allow online applications</strong></input></fieldset>

Find and Remove:

<input type="checkbox" name="apply_online" id="apply_online" checked="checked" />

2. Open "admin/page_edit_post.php":

Find:

$isCitySelected = false;

Add above:

if (isset($_POST['apply_online']) && $_POST['apply_online'] == 'on')
{
	$_POST['apply_online'] = 1;
}
else
{
	$_POST['apply_online'] = 0;
}
SociBook del.icio.us Digg Facebook Google Yahoo Buzz StumbleUpon
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.