Title: Looup's Replies | WordPress.org

---

# Looup

  [  ](https://wordpress.org/support/users/looup/)

 *   [Profile](https://wordpress.org/support/users/looup/)
 *   [Topics Started](https://wordpress.org/support/users/looup/topics/)
 *   [Replies Created](https://wordpress.org/support/users/looup/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/looup/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/looup/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/looup/engagements/)
 *   [Favorites](https://wordpress.org/support/users/looup/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YOP Poll] Limit the votes in all polls on the website](https://wordpress.org/support/topic/limit-the-votes-in-all-polls-on-the-website/)
 *  Thread Starter [Looup](https://wordpress.org/support/users/looup/)
 * (@looup)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/limit-the-votes-in-all-polls-on-the-website/#post-4527497)
 * Yes, it works fine.
    Thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YOP Poll] Limit the votes in all polls on the website](https://wordpress.org/support/topic/limit-the-votes-in-all-polls-on-the-website/)
 *  Thread Starter [Looup](https://wordpress.org/support/users/looup/)
 * (@looup)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/limit-the-votes-in-all-polls-on-the-website/#post-4527461)
 * This could be useful: if all the polls are limited by username, in _is\_voted\
   _username_ method (line 4291) change this:
 *     ```
       "
       SELECT id
       FROM ".$wpdb->yop_poll_logs."
       WHERE poll_id = %d AND
       user_id = %d AND
       vote_date >= DATE_ADD( %s, INTERVAL -%d ".$unit.")
       ",
       $this->poll['id'],
       $user_id,
       current_time( 'mysql' ),
       $value
       ```
   
 * to this:
 *     ```
       "
       SELECT id
       FROM ".$wpdb->yop_poll_logs."
       WHERE
       user_id = %d AND
       vote_date >= DATE_ADD( %s, INTERVAL -%d ".$unit.")
       ",
       $user_id,
       current_time( 'mysql' ),
       $value
       ```
   
 * Could be a hardcoded solution??

Viewing 2 replies - 1 through 2 (of 2 total)