Hi -

First off, thank you for this lovely module. Secondly, How do I make it so that anyone can apply for a job ?

Thank you!

Stevie

Comments

gmarus’s picture

Status: Active » Closed (works as designed)

By design the module allows only non-anonymous users to apply to postings in order to reduce the potential for mail abuse without needing CAPTCHAs, etc.
Out of curiousity, though, why do you want anonymous users to be able to apply to postings?

stevieAnn’s picture

I don't want users on my site. And the job postings are for anyone, so anyone can apply. I don't want them to have to login to apply for a job.

I saw that there wasn't a permission setting for "apply for job" but there were settings for everything else like "create, edit etc". Why would I want anonymous users to edit a job posting?

I am confused. Is there a way I can hack it? Can I pass a bogus id/pw for only appliers?

stevieAnn’s picture

Priority: Normal » Critical

Well.. any help at all would be very.. helpful.

I would like to use this module as an anonymous user. Can anyone suggest how I can make that happen?

gmarus’s picture

Here's your hack at it's simplest. Use at your own risk:

1. remove line 80 in job_posting.module (it's the line that states: 'access callback' => 'user_is_logged_in',)
2. replace line 893 in job_posting.module so that "if ($user->uid != 0) {" instead reads as "if (TRUE) {"

gmarus’s picture

Correction:

1. replace line 80 in job_posting.module so that "'access callback' => 'user_is_logged_in'," instead reads as "'access callback' => TRUE,"
2. replace line 893 in job_posting.module so that "if ($user->uid != 0) {" instead reads as "if (TRUE) {"

defconjuan’s picture

i agree that for spamming purposes this would not be advisable but there are situations where would be necessary such as employment/career centers which have job application terminals running a job bank based on this app.

anyhow, would it make more sense to add a checkbox to the settings page (admin/settings/job-posting) or add an extra fieldset to the permissions page (admin/user/permissions)?

and what i mean to say is for me... if i wanted to add this functionality, which way would be most consistent with its current path?

higherform’s picture

I agree that adding a permission line to access control is the best way to handle this situation.

micheleannj’s picture

Same situation for me: we have a site without users/login (just a blog, events, news, etc) and would like to have the option of letting anonymous users submit applications.

Adding one permission line shouldn't be too hard. I'll see if I can manage a patch for those who would like it.

ismith’s picture

Version: 6.x-1.9 » 6.x-1.10
Component: Miscellaneous » Code

Hi just wondering how this is going? I would also (Foolishly) like to open our job postings to anonymous users. We will not be providing external users with accounts.

With Drupal 6.6 and job_posting-6.x-1.10.tar.gz I have made the suggested edits. I now have the Submit button. Unfortunately the next page replies with Access denied You are not authorized to access this page.

Any assistance would be greatly appreciated. Any other module suggestions? (But I really like this one.)

whoey’s picture

I also had the same results... the other 1.x dev solution didn't work either...

bolasevich’s picture

Category: support » feature
Status: Closed (works as designed) » Fixed

HEY GUESS WHAT I GOT A WORKING SOLUTION !!!

replace line 80 in job_posting.module so that "'access callback' => 'user_is_logged_in'

with

'access callback' => '1',

and line 893 (ish)

// anonymous user
else {
// displayed link for anonymous user
$variables['joblink'] = l(t('Submit an application'), 'job/application/node/' . $variables['node']->nid);
}

ya thats right ... annoymous postings.. HA!!!

gmarus’s picture

Priority: Critical » Normal
Status: Fixed » Active

Your 'working solution' is pretty much what was offered in #5 above so I fail to see how it warrants a change to 'fixed'.
Don't forget to implement a CAPTCHA or something to prevent the inevitable deluge...

LaurenH’s picture

+1 on this idea! Making someone create an otherwise useless user account just to fill out an application doesn't seem right... even if it means some sort of CAPTCHA.

gmarus’s picture

Status: Active » Closed (works as designed)
LaurenH’s picture

Status: Closed (works as designed) » Needs review
StatusFileSize
new6.13 KB

I've put together a patch!

1. Anonymous users may now apply to job postings.
2. I added a permissions setting... "apply to job posting." Administrators should now be able to define which roles are allowed to apply to postings.
3. I integrated CAPTCHA. If you have the module installed and enabled, the application form will include a maths CAPTCHA. As an added benefit, this also weeds out applicants who can't add or subtract. ;-)

Eventually, I'd like to set up the CAPTCHA integration a little better, so admins can make use of other types of CAPTCHA via the CAPTCHA settings page.

I've attached the patch. It's my first ever, so hopefully I've rolled it correctly!

NB: I converted job_posting.module to Unix (LF) line-endings before generating the patch. It might be necessary to do the same.

jsheffers’s picture

Is this patch for version 6 1.11 or 1.10. I have tried applying the patch but it's saying that 8 out of 8 hunks failed. I am using version 6 1.11 job posting module. I am on a mac, and I converted to patch to unix line endings, and followed drupals patch applying documentation very closely. Any help would be appreciated.

LaurenH’s picture

Version: 6.x-1.10 » 6.x-1.x-dev
StatusFileSize
new9.33 KB
new5.63 KB

Here's another attempt at a patch. I've also integrated the original capability for unregistered users to register themselves if allowed, which I omitted in my initial one.

I can successfully patch 6.x-1.x-dev with this patch, and I've also included module file itself, in case you'd rather try it that way.

cccox’s picture

StatusFileSize
new21.84 KB

Hello,

I have tried the module with the patch and it does now allow anonymous users to submit an application. However, now there is a "unable to send-email" error that appears.(See attached) The application does go through so I'm thinking, maybe it's the confirmation email that is getting hung up?

Any help would be greatly appreciated.

Thanks.

droshani’s picture

I have never installed a patch. If I replace my module with your attached version, will get the functions in place?

esolarc’s picture

I have download you job_posting.module.zip and replace the original file .module by your.

I have authorized anonymous user to Apply to job posting in permissions panel.

Now when i want to see a job posting as anonymous user i see it and i have the link to submit an application.

But when i want to us it i have the message "You are not ahtorized to access this page" ???

Thank's for any help.

lal2017’s picture

Guys I would like this too! This is a fab module and used by the Charities I work with. Very nifty!

We need access control around;-
(1) Anonymous being able to submit an application (albeit with ReCaptcha)
(2) Set user Permissions for certain roles to show/hide the 'application processing' option and for admin to determine it's default setting to either: enabled/disabled.

I am still learning PHP, so hopefully will be able to contribute to this module in the medium term future once I get my head around it.

Thank you for developing this!

Warm regards,
Raj

droshani’s picture

I agree and I think there should be a Archive section where all Job Posts are stored after the meet the deadline and removed from listing from pages.

Thanks for the hard work

krisdotca’s picture

I need to add job postings to a site as well but need it to function for anonymous users. Based on the comments above, it looks like the patch doesn't work. Has anyone managed to get it working?

Cheers,
Kris

technobrarygeek’s picture

It seems to me the ONLY sites that would want only "members" with login credentials to be able to apply for jobs would be job hunting sites like monster or career builders, etc. Those of us who are just wanting to provide a job posting service to our "audience" can't use this module. Since, no workable solution seems to be on the horizon, does anyone have an alternative solution that is similar but allows anonymous job application?

I must admit disappointment as I will have to remove this module from nearly 40 public library sites if a working patch/feature isn't forthcoming.

gmarus’s picture

Views + CCK...it's the future :)

You deployed 40 sites without first determining whether the modules you chose fit your requirements? Or were you just exaggerating for dramatic effect?

technobrarygeek’s picture

It seems that you are more adept at demeaning people with fair questions and concerns than actually formulating a real answer. Yes I did make the mistake of installing your module on nearly 40 websites without fully testing it. The testing step I inadvertently skipped was testing both while logged in and out. Since it appears you are not hindered with the burden of fallibility, it should be a cinch for you to help those of us who are so burdened, with a way to make this fool proof since at least one fool (me) needs you to look down with mercy upon his poor soul.

I do apologize for the length of time to respond. I am also susceptible to viruses.

Thank you for your benevolence.

I would also like to add that it is superior demeaning "help" like this that makes people avoid the Linux world. For the record I KNOW Drupal can run on a platform other than Linux. It's just a shame that SNL's "Computer Guy" and snobby linux forums have become the stereotype for us geeks and nerds.

gmarus’s picture

Gee, man, maybe you should work out your technical problems instead of spending so much time hanging out here and filling everyone's inbox with noise...have a great day:)

technobrarygeek’s picture

The interesting thing about your last reply is that you say "work out your technical problems". I thought that was what I was doing. I am no programmer. I just try to provide websites that, run-of-the-mill librarians can update without a PhD in web coding. If the economy picks up and the rural libraries that count on their web pages for public communication, find the need to hire staff they could fully utilize this module. We are a non-profit agency trying to offer support to rural public libraries who don't have the resources to "hire out" many are struggling just to keep the doors open.

What I don't understand, is why you are so adamant not to help. I am assuming the part where you say "Views + CCK...it's the future :)" is your actual answer. And, I'll defer to your expertise as a "web sage" and assume you are right. This takes me back to why the reluctance to offer a change to this module? It's an amazing piece of work. I can't begin to imagine how long it would take me to rebuild this "wheel" using Views + CCK once I learn Views and CCK in the first place (which I intend to do someday). I do know, however that it would be time I couldn't devote in more direct support of my libraries.

So, could you take a moment, and without name calling or sniping or anything negative provide at least an explanation of why this won't or can't be done. If this module is nearing end of life and support then it is. Life goes on. I am a reasonable person looking for a reasonable answer without being made to feel stupid or small.

I am only spending the time on this because I am passionate about offering the very best to my libraries so they can shine as brightly as possible. I assume you have the same attitude for your web site clients, and would go to bat for them as I am mine.

Thank you in advance for your assistance in helping make public libraries work.

gmarus’s picture

I am not 'adamant' about not helping you. In fact, I thought I gave you a good push in the right direction by suggesting you look at the Views and CCK modules for solving your business case. Yes, those are complex modules and you'll need to fight a bit of a learning curve to really appreciate their value (game-changing effects, really).

As far as Job Posting is concerned I've stated publicly here and elsewhere in the Issues Queue that I believe CCK + Views to be the canonical way forward (an opinion shared by MANY in the drupal community) for doing this sort of thing. I've also stated that I have no intention of rewriting an obsolete module to accommodate the business case of allowing anonymous applications. Mostly because I have to feed my family so actual paid work gets my priority. That's it. Furthermore, there are workarounds and patches available in this very thread that may or may not serve your needs. Have you tried them? The ONLY reason I've left this thread open this long is to keep those available to anyone who wants to try them. However, I do NOT provide support for the workarounds.

And if you still don't like those options I suggest you consider hiring a php programmer on a freelance basis to make the changes for you. Plenty of options there as well. Good luck.

technobrarygeek’s picture

Status: Needs review » Closed (fixed)

Thank you for the useful reply. I have tried the workarounds without success. I CERTAINLY understand prioritizing paying work over pro bono. And if we weren't just barely keeping the doors open around here a professional programmer would be a consideration.

Thanks again for this response.

nitebreed’s picture

The thing I would like to know when using CCK + Views is how to make the contact-form refer to the current job.

nitebreed’s picture

Status: Closed (fixed) » Needs review

I found a way to get around the error message and get a confirmation message and send mail without errors. Here's what you have to change:

in job_posting.module change line 662:

$apply_from = $user->mail;

To:

$apply_from = $form_state['values']['job_posting_applicant_email'];

Also change line 665:

$confirm_to = $user->mail;

To:

$confirm_to = $form_state['values']['job_posting_applicant_email'];

The thing with anonymous users is that they don't have a global $user, and therefore don't have a e-mail adress.
The only thing is that for logged in users, $user->mail has to be used. But i think that's just a matter of checking if $user exists, and then make a selection.

mangailk’s picture

Does this work for durpal 5? I need this - but for 5. The reason I'm sticking with 5 (for the time being) is that an important module is available for 5 and not 6.

nitebreed’s picture

Dont know if it works for Drupal 5. Just test it :)

KentT’s picture

Regarding the "patch and full module" posted above, I tried to use this full version (job_posting_modlule.zip) and it failed if I was logged in, as you implied. If I logged out, it simply took me to a link to register for the site before I could submit an application. It did not allow me to submit an application as an Anonymous user.

Am I missing something?

nitebreed’s picture

Did you gave anonymous users the 'apply to job posting' permission?

KentT’s picture

I see only these three permissions associated with this module:

create job posting
edit job posting
edit own job posting