Hello community, greetings from a Rules newbie.

I am trying to set up a contest inside drupal, where registered users can post one entry each. Someone suggested this should be done using Rules, perhaps I can get some feedback from more experienced Rules users out there to see if I'm on the right track.

The idea is to have a custom CCK content, say "ContestEntry". I want to make it so that whenever a user submits a new ContestEntry, if there is already one entry from this user, the earlier entry is erased as the new one is published (only one entry per participant). Is this possible using Rules? How would I state the "if there is already a published ContestEntry by this user", using the Rules UI?

Thanks in advance for any replies!

Comments

fago’s picture

"if there is already a published ContestEntry by this user"

That's currently not possible without coding. However, what about making a contest to a "content profile" - this module would ensure for you it's unique.

skourak’s picture

Thank you for the tip fago - and by the way, congratulations for an excellent module!

Content profile seems promising, I'll try to see how I can manipulate it to do what I want :) Cheers!

mitchell’s picture

Title: Rules for creating a competition - am I on the right track? » When a new node is created, delete the author's other node(s) of that type
Status: Active » Postponed (maintainer needs more info)
Issue tags: -contest, -competition

A simple route would be to use the Create quota module.

Marking as postponed because a quota somewhat takes care of this, however I'd like to see about doing this as originally described.

mitchell’s picture

Title: When a new node is created, delete the author's other node(s) of that type » Create quotas
Component: Provided module integration » Documentation
Status: Postponed (maintainer needs more info) » Fixed

Create Quota description now says:

This module is no longer maintained. You can simply use rules to remove a role from a user, so she won't be able to post new content

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.