PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

One entry per email, per day.

  1. SceneCreek
    Member

    I tried using this snippet to limit entries to one per day:
    http://gravitywiz.com/better-limit-submission-per-time-period-by-user-or-ip/

    It is working, however, it is restricting the IP to only one entry per day, not email. How do I change it so it only limits emails to one entry per day?

    Also, once I have entered the contest, I can't see any of the content on my contest page. It only shows the "limit_message". Is there a way to redirect a specific URL once the limit has been reached instead of just outputting text?

    Thanks!

    Posted 11 years ago on Sunday April 7, 2013 | Permalink
  2. You will have to modify that code between lines 61 and 72. It is using built in fields in the rg_lead table (user_id, ip, embed_url), but what you will need to do is check the email address of all entries which have been submitted (which are stored in the rg_lead_detail table), and then apply the same logic in the rest of the code.

    Please contact David Smith at the Gravity Wiz site or leave a comment on that post for assistance with the code modifications.

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink