Posted by wjaspers on November 23, 2010 at 5:55pm
Is there any way to accomplish this?
I'm building out a "jobs" site that needs to restrict applicants from applying for more than one position (per job) per day.
Is there any way to accomplish this?
I'm building out a "jobs" site that needs to restrict applicants from applying for more than one position (per job) per day.
Comments
A really quick way to do this
A really quick way to do this would be to use webforms http://drupal.org/project/webform as your resume submission instead of a standard CT, the webform module has tons of useful restrictions built in...
I thought about using webform
I thought about using webform but I needed to really leverage the flexibility of CCK and node references. As such, I decided to create a specific content type.
Maybe if there was a Webform
Maybe if there was a Webform NodeReference component module, this would suffice.
A somewhat complicated way...
One way of accomplishing the one-node-per-day thing is to use a special role that is allowed to post job applications, take away the role from the user when a application is posted, and add it back one day later.
Something like this:
You could also have the re-allow rule set send out an e-mail to the user, letting him/her know that 24 hours has passed.
The drawback of this solution is that with many users you would have a tonne of scheduled rule tasks at the same time – one for each user that has applied for a job in the last 24 hours. If this is a few hundered users it probably wouldn't be a problem, but if you approach thousands of users I would recommend some other (yet unknown) solution.
Good luck!
//Johan Falk, NodeOne, Sweden
Want to learn more Rules? Check out my latest screen cast series!
A little late, but I rewrote
A little late reply, but I rewrote Node Limit Number for this very problem. It allows for users to be restricted on the amount of nodes they create in a day. It integrates with rules so it shouldn't be too difficult to figure out. Let me know if you have any problems. Make sure you get the 2.x version!