Answers.Body: <p>You would have to hide the button or page where users could upload a photo.</p>
  
  <p>To do this you could query for all that users entries with today's postDate. If the total is equal to or more than 10 then you'd redirect them to a different page or hide/disable the button that submits an entry.</p>
  
  <p>Something along the lines of the following</p>
  
  <p><code>add-image.twig</code></p>
  
  <pre><code>{% set todaysEntryCount = craft.entries.section( 'images' ) authorId( currentUser.id ).postDate( '&gt; ' ~ now|date_modify('-1 day') ).total() %}
  {% if daysEntryCount &gt;= 10 %}
    {% redirect /your-images?message=dailylimit %}
  {% endif %}
  </code></pre>
  
  <p>or</p>
  
  <pre><code>{% if daysEntryCount &lt; 10 %}
     &lt;button type="submit"&gt;Add your image&lt;/button&gt;
  {% endif %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-13T19:59:10.130Z
Answers.LastActivityDate: 2016-06-13T20:39:02.850Z
Answers.LastEditDate: 2016-06-13T20:39:02.850Z
Answers.UserDisplayName: Luke Pearce
Body: <p>How would you go about creating a daily quota for posts? I have a simple photo gallery where users can submit images, problem is some people are a bit too excited. I'd like to limit submission to let's say 10 per day per user. Any tips how to approach this welcomed.</p>
  
Tags: <form>
Title: Daily quota for post submissions
ThreadText: # Daily quota for post submissions
  
  (Asked by: username_0 on 2016-06-13)
  
  How would you go about creating a daily quota for posts? I have a simple photo gallery where users can submit images, problem is some people are a bit too excited. I'd like to limit submission to let's say 10 per day per user. Any tips how to approach this welcomed.
  
  **Tags:** form
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-06-13. Score: 1 | Accepted answer
  
  You would have to hide the button or page where users could upload a photo.
  
  To do this you could query for all that users entries with today's postDate. If the total is equal to or more than 10 then you'd redirect them to a different page or hide/disable the button that submits an entry.
  
  Something along the lines of the following
  
  `add-image.twig`
  
  ```
  {% set todaysEntryCount = craft.entries.section( 'images' ) authorId( currentUser.id ).postDate( '> ' ~ now|date_modify('-1 day') ).total() %}
  {% if daysEntryCount >= 10 %}
    {% redirect /your-images?message=dailylimit %}
  {% endif %}
  
  ```
  
  or
  
  ```
  {% if daysEntryCount < 10 %}
     <button type="submit">Add your image</button>
  {% endif %}
  
  ```
  
  
  ---
  
  