Adlogic Job Board Standalone Installation Guide v1.0
----------------------------------------------------

Requirements:

- Windows or Unix OS
- Apache 2.0+ with mod_rewrite preferred (not required)
- PHP 5.2+ with SOAP PHP Extension


Note:
This Job Board package is designed for standalone website integrations, or integrations with Content Management Systems currently not supported by existing Adlogic plugins (such as Wordpress and Joomla!).  Please contact our Sales Team for more information on our other plugins.


Installation:

In our experience, installing a basic working Job Board from our standalone installation should take no longer than 10 minutes. Customisation time may vary.

There are three main components to the Job Board System:

- Job Search Form/Widget
- Search Results Page
- Job Details Page

Unzip the Adlogic Job Board Package (standalone), into your web directory, keeping the zip's existing directory structure as follows.

<root website directory>/
	adlogicJobBoard/
		css/
		docs/
		js/
		lib/

Configuration
-------------
To start with the installation, edit the configuration file in adlogicJobBoard/lib/config.inc.php.

Edit the variables for your website name and address.  Then using the details provided to you by Adlogic, add the Recruiter ID and Advertiser ID as provided to you by Adlogic.

Configure the search settings to your liking, including how many search results to display per page, no results message, and link to the Job Details Page (more on this later).


Job Search Widget
-----------------
To integrate the Job Search Widget into any page, please add the following lines between your <head> tags.

<!-- START: Adlogic Job Board Code and Includes -->
	<!-- Required jQuery -->
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
	<!-- Required jQuery UI and Theme -->
	<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
	<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css" type="text/css" media="all" />

	<!-- Job Search Form Styling -->
	<link rel="stylesheet" href="adlogicJobBoard/css/search_widget.css" type="text/css" />

	<!-- Ajax Server URL Location/RSS URL Location -->
	<script type="text/javascript">
		var adlogicJobSearch = {"ajaxurl":"adlogicJobBoard/lib/ajaxServer.php","rssurl":"adlogicJobBoard/lib/rss.php"};
	</script>
	<!-- Adlogic Settings -->
	<script src="adlogicJobBoard/js/jquery.adlogic.settings.js" type="text/javascript"></script>
	<!-- Adlogic Search Widget Plugin -->
	<script src="adlogicJobBoard/js/jquery.adlogic.searchWidget.js" type="text/javascript"></script>
<!-- END: Adlogic Job Board Code and Includes -->

Note: If you already use jQuery or jQuery UI you may remove the includes below and use your own, so long as jQuery is version 1.6+ and jQuery UI is 1.8.12+. To generate your own jQueryUI theme rather than use the jQuery Base theme visit http://jqueryui.com/themeroller/.

Make sure that the urls pointing to the css stylesheets and javascript files and php library files correspond to their location, if not you may need to change them to point to the right files.

If you use a non-jQuery javascript library like MooTools, PrototypeJS, ExtJS you will need to put jQuery into no-conflict mode by replacing the following code:

	<script type="text/javascript">
		var adlogicJobSearch = {"ajaxurl":"adlogicJobBoard/lib/ajaxServer.php","rssurl":"adlogicJobBoard/lib/rss.php"};
	</script>

With:

	<script type="text/javascript">
		jQuery.noConflict();
		var adlogicJobSearch = {"ajaxurl":"adlogicJobBoard/lib/ajaxServer.php","rssurl":"adlogicJobBoard/lib/rss.php"};
	</script>


Then include the following code where you wish to display the Job Search Widget:

	<?php require_once 'adlogicJobBoard/searchForm.php'; ?>



Search Results Page
-------------------

To integrate the Job Search Results Page please add the following lines between your <head> tags:

<!-- START: Adlogic Job Board Code and Includes -->
	<!-- Required jQuery -->
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
	<!-- Required jQuery UI and Theme -->
	<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
	<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css" type="text/css" media="all" />

	<!-- Job Search Results Styling -->
	<link rel="stylesheet" href="adlogicJobBoard/css/search_page.css" type="text/css" />

	<!-- Ajax Server URL Location/RSS URL Location -->
	<script type="text/javascript">
		var adlogicJobSearch = {"ajaxurl":"adlogicJobBoard/lib/ajaxServer.php","rssurl":"adlogicJobBoard/lib/rss.php"};
	</script>
	<!-- Adlogic Settings -->
	<script src="adlogicJobBoard/js/jquery.adlogic.settings.js" type="text/javascript"></script>
	<!-- BlockUI Library -->
	<script src="adlogicJobBoard/js/jquery.blockUI.js" type="text/javascript"></script>
	<!-- Ben Alman's Back Button and Query Library (BA-BBQ) -->
	<script src="adlogicJobBoard/js/jquery.ba-bbq.min.js" type="text/javascript"></script>
	<!-- jQuery Pagination Library -->
	<script src="adlogicJobBoard/js/jquery.pagination.js" type="text/javascript"></script>
	<!-- Adlogic Search Page Plugin -->
	<script src="adlogicJobBoard/js/jquery.adlogic.searchPage.js" type="text/javascript"></script>
<!-- END: Adlogic Job Board Code and Includes -->

Note: If you wish to include the Job Search Widget above on the same page as the search page, just add the search widget javascript and css includes into the above code, as per the instructions for the Job Search Widget.

Then add the following code where you wish for the search results and pagination to appear:

	<?php require_once 'adlogicJobBoard/searchPage.php'; ?>


Job Details Page
----------------

To integrate the Job Details Page please add the following lines between your <head> tags:

<?php 
	require_once 'adlogicJobBoard/jobDetails.php';
	Adlogic_Job_Details_Shortcodes::get_ad_details();
	print '<title>' . Adlogic_Job_Details_Shortcodes::add_page_title('text to display after your job title') . '</title>';
	Adlogic_Job_Details_Shortcodes::add_meta_tags();
?>

Edit the text in the add_page_title() to suit your website's title, it will be appended after the Job Title. eg. Secretary Job position in Sydney | My Recruitment Company Name

Then add the following text also between the <head> tags:

<!-- START: Adlogic Job Board Code and Includes -->
	<!-- Required jQuery -->
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
	<!-- Required jQuery UI and Theme -->
	<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js" type="text/javascript"></script>
	<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css" type="text/css" media="all" />

	<!-- Job Details Page StyleSheet -->
	<link rel="stylesheet" href="adlogicJobBoard/css/job_details.css" type="text/css" media="all" />
	<!-- Ajax Server URL Location/RSS URL Location -->
	<script type="text/javascript">
		jQuery(document).ready(function($) {
			adlogicApplyJobDimensions = { height: '600', width: '680' };
			$("#applyJobPopup").dialog("option", adlogicApplyJobDimensions);

			adlogicEmailToFriendDimensions = { height: '600', width: '680' };
			$("#emailFriendPopup").dialog("option", adlogicEmailToFriendDimensions);
		});
		
		var adlogicJobSearch = {"ajaxurl":"adlogicJobBoard/lib/ajaxServer.php","rssurl":"adlogicJobBoard/lib/rss.php"};
	</script>
	<!-- Adlogic Settings -->
	<script src="adlogicJobBoard/js/jquery.adlogic.settings.js" type="text/javascript"></script>
<!-- END: Adlogic Job Board Code and Includes -->

Note: If you wish to include the Job Search Widget above on the same page as the job details page, just add the search widget javascript and css includes into the above code, as per the instructions for the Job Search Widget.

In order to edit the Apply Job Popup and Email To Friend Popup Size, edit the height and width parameters in the above variables.

Then to display the Job Details add this to where you would like the job details to show up:

	<?php print Adlogic_Job_Details_Shortcodes::job_details(null, null); ?>


Customising Styling
-------------------

All of the Adlogic Job board is easily stylable by editing the CSS files in the adlogicJobBoard/css folder

The following CSS files correspond to the various widgets as follows:

	job_details.css		- Job Details Page
	search_page.css		- Job Search Results Page
	search_widget.css	- Job Search Widget
