forked from Bag-Labs/greenhouse-job-board
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
331 lines (242 loc) · 14.1 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
=== Plugin Name ===
Contributors: brownbagmarketing, circlecube
Donate link: https://www.brownbagmarketing.com/
Tags: greenhouse, job board, api, resume, careers, hr, recruiter, job, hire, hiring, wanted
Requires at least: 3.0
Tested up to: 4.8
Stable tag: 2.8.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
GitHub Plugin URI: https://github.com/Bag-Labs/greenhouse-job-board
Plugin URI: https://github.com/Bag-Labs/greenhouse-job-board
Plugin to pull a job board from greenhouse.io via their API.
== Description ==
Plugin to pull a job board from greenhouse.io via their API and display it on your WordPress site. Use a shortcode with your URL Token to pull the data. Find your URL token on <a href="https://app.greenhouse.io/configure/dev_center/config" target="_blank">this page</a> when you are logged into your greenhouse account. Place `[greenhouse url_token="your_url_token"]` in your page or post.
Requirements:
* Must have a greenhouse account.
* Enter your URL Token & API key.
Initial Setup:
* For ease of use, setup your URL Token within Settings->Greenhouse. (NOTE: you can also set this inline with shortcode attributes.)
* Add shortcode or use the wizard to add a job board to any page or post.
Know the code!
* To post your job board on a page, simply add the shortcode: [greenhouse]. By default, this will display all of the postings you currently have, along with the forms for applying. These forms are actually hosted at Greenhouse.io.
Current Features of the [greenhouse] shortcode:
Filter the jobs displayed. These filters can be combined to create complex filters.
Department Filtering
* Want to filter results by department? Show only one deparment or a couple? Exclude a whole department?
* Add the `department_filter` attribute: `[greenhouse department_filter="Value1|Value2"]`
* supports single or multiple values, pipe-delimited
* supports either using the department name OR the department id as the value.
* supports negated values - Excludes department(s) and display others. (example: `department_filter="-Value3|-Value4"`)
Job Filtering
* Want to filter results by job? display only specific jobs? Exclude specific jobs?
* Add the `job_filter` attribute: `[greenhouse job_filter="Value1|Value2"]`
* supports single or multiple values, pipe-delimited
* supports either using the job title OR the job id as the value.
* supports negated values - Excludes this job and show others. (example: `job_filter="-Value3|-Value4"`)
Office Filtering
* Want to filter results by office? Show only jobs from a specific office or exclude a specific office?
* Add the `office_filter` attribute: `[greenhouse office_filter="Value1|Value2"]`
* supports single or multiple values, pipe-delimited
* supports either using the office name OR the office id as the value.
* supports negated values - Excludes office(s) and only display jobs from elsewhere. (example: `office_filter="-Value3"`)
Location Filtering
* Want to filter results by location? Show only jobs from a specific location or exclude a specific location?
* Add the `location_filter` attribute: `[greenhouse location_filter="Value1|Value2"]`
* supports single or multiple values, pipe-delimited
* supports location text value, since there is no id associated to locations in greenhouse.
* supports negated values - Excludes location(s) and only display jobs from elsewhere. (example: `location_filter="-Value3"`)
Hiding Forms
* If you don't want application forms to display and simply want to display listings, just add the `hide_forms` attribute
* ex. `[greenhouse hide_forms="true"]`
Sort Jobs
* Want to sort the jobs listed in your job board?
* Add the orderby attribute to the shortcode.
* Values allowed: title, date, id, department, office, location and random.
* For example: `[greenhouse orderby="title"]`
* Need to customize the order more?
* There is an order attribute as well, supported values: DESC (default) and ASC.
* There is a sticky option as well, force a single job to the top or bottom of the board.
* Sticky attribute format: 'top' or 'bottom' followed by a pipe '|' and then the id for the job to stick.
* For example: `[greenhouse orderby="department" order="ASC" sticky="top|18590"]`
Group Jobs
* Want to group the jobs listed in your job board by department, office or location?
* Add the group attribute to the shortcode.
* Values accepted: department, office or location.
* By default the group name will be used as a headline to seperate each group.
* To omit group headlines, include shortcode attribute: group_headline="false".
* For example: `[greenhouse group="department" group_headline="false"`
== Coming Soon ==
Roadmap
* Add filter hooks for customizing output
* Cleaner, smarter interface
* Widget
* Templating for your own layout
== Installation ==
This section describes how to install the plugin and get it working.
e.g.
1. Upload `greenhouse-job-board.php` to the `/wp-content/plugins/` directory
1. Activate the plugin through the 'Plugins' menu in WordPress
1. Place `[greenhouse url_token="your_url_token"]` in your page or post.
== Changelog ==
= 2.8.0 =
* Add interactive department and location filter.
* Update messaging and description text to be more helpful.
* Clean up codebase more in alignment with WordPress Coding Standards.
* Ensure sanitizing and escaping input and output from database and api for better security.
* Add opt-in feature to track usage via anonymous analytics data.
= 2.7.2 =
* Fix bug with department filter not firing properly when not in debug mode.
= 2.7.0 =
* Add new setting for a custom error message when an application submission fails.
* Adding support for hidden input fields in inline forms.
* Better support for js thank you hook.
= 2.6.1 =
* Fix a bug that jumped to the top of the page when using iframe forms.
= 2.6.0 =
* Update validation script to work better on older browsers.
* Added js hook for when form validation fails: `ghjb_form_validate_fail`
* Add css border to fields when they fail validation: `#apply_form.invalid .field_required input:invalid`, easy to override in your theme styles.
= 2.5.0 =
* Update ajax submit to only allow one submission if response is slow. Disables submit button on submit.
= 2.4.0 =
* Add js hook for after thanks is displayed
* Fix bug with department filter
* Add support for new custom question field types: Yes/No & Single Select
* Expose the cycle transition type on the options page
* Better error logging
* Fix bug with no cache option
= 2.3.0 =
* Adding a js hook for after apply form is build.
* Add optional attribute value for form inputs on job questions.
* Allow for html5 form field types.
* Bugfix for multiple boards on one page.
= 2.2.0 =
* Use job title rather than id when possible (in the hash linking)
* Allow paragraphs and line breaks in thank you message.
* Add filter for job questions (js).
* Add filter for job excerpts (js).
* Add more classes to form elements for easier styling.
* Minor bug fixes.
= 2.1.0 =
* Add grouping and grouping headling options.
* General code cleanup.
= 2.0.2 =
* Update compatability notice.
* Check that new debug and analytics values are set properly.
= 2.0.1 =
* Load css conditionally - only on pages with the job board shortcode. (props - bsteinlo)
= 2.0 =
* Add filter for single job template. (ghjb_single_job_template_after_title)
* Add google analytics integration
* Add debugging option
* Update inline job submission script to be more compatible with current WordPress best practices. (props - bsteinlo)
= 1.9 =
* Load assets (css & js) conditionally - only on pages with the job board shortcode. (props - bsteinlo)
* Check if cycle2 js library is already loaded and only load it if it's needed still.
* Add sorting options to job board.
* Add sticky option to have jobs stick to top or bottom when sorting.
* Ensure to only allow inline forms after API key is entered.
* Set cache expiration limits and clear cached data from Greenhouse API.
* Minor code clean up and documnetation updates.
= 1.8 =
* Fix minor bug in shortcode wizard for form type setting.
* Fix bug when submitting optional files.
* Allow multiple shortcodes on one page.
= 1.7 =
* Add cycle option for the job board layout.
* Add inline form option, no longer need to load an iframe (may take special setup and requires).
* Add custom css block.
* Various bug fixes.
* Cache greenhouse data for faster performance.
= 1.6 =
* Adding options to customize display of job data: location, office, department and description.
* Also adding options to customize labels for each of the above.
* Minor Bug fixes.
= 1.5 =
* Adding add job board media button and wizard to help construct your shortcode.
* Bug fixes - compatability with ACF Pro.
* Bug fixes - unexpected output.
* Updates - requiring a url_token with user feedback on error.
= 1.4 =
* Adding support for location filter (include and exclude).
* Adding support for office filter by name/title or id(include and exclude).
* Adding another global settings for the text strings used on the job list.
* Cleaning up toggle scripts.
= 1.3 =
* Adding support for job filter (include and exclude).
* Adding support to filter by name/title or id.
* Adding global settings for the text strings used on the job list.
= 1.2 =
* Adding support for department filter (include and exclude departments).
* Adding support for hiding forms from the job board.
= 1.1 =
* Adding settings page with global default settings.
= 1.0 =
* Initial release
== Screenshots ==
1. Shortcode in action. Notice the 'Add Greenhouse Job Board' button.
2. View the job board list.
3. Click to view description of each job.
4. Click to apply for each job.
5. View the 'Add Greenhosuse Job Board' button modal wizard. This will allow you to easily configure your board with all the settings. It will insert the configured shortcode into the content editor.
== Frequently Asked Questions ==
= Any Requirements? =
Yes, this plugin requires that you have a greenhouse.io account. You will need to enter your url token as well as your API key.
= Server requirements =
If you desire inline forms rather than iframe forms, to submit applications to the greenhouse API the web server must support cURL since it is used for the proxy data submission as to not expose your API key to the public.
= Can I add my own styles? =
Yes, you can add your own custom CSS on the plugin options page.
= I made edits in my Greenhouse account, but I'm not seeing those edits on my website, what gives? =
This plugin connects to Greenhouse to retreive data and saves it locally in your WordPress database for a while so your site will load faster and not have to wait for Greenhouse API everytime your job board loads. Go to the settings page and check your cache expiration setting to see how long this temporary or transient data will be stored locally, and also notice the checkbox option to clear the cache. To force fresh data to your site, check this box and save changes.
= Can I add social share links or something relative to the job listing? =
Yes, there is a php filter in place for after the job title on the full job listing template. It is called: `ghjb_single_job_template_after_title`. Place a function with this name into your theme functions file or your theme plugin php and you may add content following the title of each job. Note that this refers to the full job display and not the job list display. Here's a simple example usage:
`add_action('ghjb_single_job_template_after_title', 'add_note_to_single_job_template', 10, 1);
function add_note_to_single_job_template ($html){
$html .= '<h2>Job Subtitle</h2>';
$html .= '<a href="#facebook-share-url">Share this job with friends</a>';
return $html;
}`
= Can I customize the job board job excerpts? =
You can add your own content or edit the job excerpt on the job board via a javascript hook. This works much in the same way as a <a href="http://codex.wordpress.org/Plugin_API/Hooks" target="_blank">WordPress hook</a>, but it's javascript based rather than php. Simply add a javascript function to your site named: `ghjb_excerpt_filter` and it will automatically be called and executed as the plugin creates the job board list. Here's an example use to trim the excerpt to 100 characters and add an ellipsis.:
`//greenhouse job board plugin js filters
function ghjb_excerpt_filter(content) {
var short_content_start = 0;
var short_content_end = 100;
var new_content = content.substring(short_content_start, short_content_end) + ' …';
return new_content;
}
`
= Can I customize the fields in use on my forms? =
You can customize the inline forms, but not the iframe forms. There is a hook available for use via javascript to filter the fields on inline forms called `ghjb_questions_filter`. Call it in your theme or plugin javascript. It will receive as parameter the array of questions as returned by the greenhouse api for each job and your filter must return a similarly formatted array of questions, but you may rearrange the fields or change labels field types, etc. Here's an example use that customizes some fields:
`function ghjb_questions_filter( questions ) {
//find field indexes
var remove_index, coverletter_index, resume_index;
for ( var i = 0; i < questions.length; i++){
if ( questions[i].label === 'Resume' ) {
resume_index = i;
}
if ( questions[i].label === 'Cover Letter' ) {
coverletter_index = i;
}
if ( questions[i].label === 'Remove Me' ) {
remove_index = i;
}
}
//remove field
questions.splice(remove_index,1);
//set default file_input type to textarea rather than file upload
questions[coverletter_index].fields.reverse();
//change label
questions[coverletter_index].label = "Updated Cover Letter Label";
//move to last field
var coverletter_question = questions.splice(coverletter_index, 1);
questions.push ( coverletter_question[0] );
var resume_question = questions.splice(resume_index, 1);
questions.push ( resume_question[0] );
//return customized questions array
return questions;
}
`
= Can I have some custom tracking when the form a successful submission completes? =
There is a javascript hook you can add to your theme code that will work here. The function is `ghjb_after_thanks` and is called after the thank you message is processed and displayed on the page.