Hello People. I am creating a new drupal based site. Users will be allowed to fill a form weekly and the form will be stored as a node. It's just a custom content type made with CCK.

What I am trying to acheive is to allow one user to fill only one form per week, If they come back tomorrow to fill another one I wanna tell him sorry you have 6 days to go before filling another form.

I am not able to find the appropriate module or method to do that, So would you please help me.

Thanx in advance

Comments

nevets’s picture

Sounds like you are looking for the Node Limit module.

anil614sagar’s picture

You can do this using rules module by defining a rule.

Step 1: Specify an event that your node form is going to be viewed.

Step 2: Add a condition using php code that for specific user check when last node is posted. If last node is posted more than 7 days then return FALSE.

Step 3: Then do nothing.

Step 4: else if not more than 7 days return TRUE in php code.

Step 5: Specify action that to Redirect him to home page using rules event and set a drupal message with your text.

You are done :-)

Cheers,
Anil Sagar.
www.anilsagar.com

Cheers,
Anil Sagar,
Lead Drupal Developer,
Azri Soulutions,
http://azrisolutions.com/