Title: Time based voting restriction
Last modified: March 31, 2021

---

# Time based voting restriction

 *  Resolved [jodp](https://wordpress.org/support/users/jodp/)
 * (@jodp)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/time-based-voting-restriction/)
 * Hi,
 * I want to make sure that a user can only use the poll with 10 minutes interval.
   
   So a user can vote more than once, but he needs to wait 10 minutes between each
   submission. How can I do this ? Thx.
 * Jo

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

 *  Plugin Author [totalsoft](https://wordpress.org/support/users/totalsoft/)
 * (@totalsoft)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/time-based-voting-restriction/#post-14281633)
 * Hello, dear jodp.
 * Thank you for contacting us and for reporting your problem.
 * To solve your problem, edit our Total-Soft-Poll-Widget file. Find code in line
   1709.
 *     ```
       if($Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_10=='true'){
       				if($Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11=='phpcookie' || $Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11=='phpcookietime' && !$ts_tme24 || $Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11=='ipaddresscookie' && isset($_COOKIE['TotalSoft_Poll_Cookie_' . $Total_Soft_Poll]) || $Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11=='ipaddresscookietime' && isset($_COOKIE['TotalSoft_Poll_Cookie_' . $Total_Soft_Poll]) && !$ts_tme24){
       ```
   
 * Please edit the code and write like this.
 * `if($Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11=='phpcookie' || $Total_Soft_Poll_Set[
   0]->TotalSoft_Poll_Set_11=='phpcookietime' && !$ts_tme24 || $Total_Soft_Poll_Set[
   0]->TotalSoft_Poll_Set_11=='ipaddresscookie' && isset($_COOKIE['TotalSoft_Poll_Cookie_'.
   $Total_Soft_Poll]) || $Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11=='ipaddresscookietime'&&
   isset($_COOKIE['TotalSoft_Poll_Cookie_' . $Total_Soft_Poll]) && !$ts_tme24 ||
   $Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11=='ipaddresscookietime10' && isset(
   $_COOKIE['TotalSoft_Poll_Cookie_' . $Total_Soft_Poll]) && !$ts_tme24){`
 *  Plugin Author [totalsoft](https://wordpress.org/support/users/totalsoft/)
 * (@totalsoft)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/time-based-voting-restriction/#post-14281642)
 * Edit our Total-Soft-Poll-Widget file. Find code in line 1720.
 * `else if($Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11=='ipaddress' || $Total_Soft_Poll_Set[
   0]->TotalSoft_Poll_Set_11=='ipaddresstime' || $Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11
   =='ipaddresscookietime' || $Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11=='ipaddresscookie'){`
 * Please edit the code and write like this.
 * `else if($Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11=='ipaddress' || $Total_Soft_Poll_Set[
   0]->TotalSoft_Poll_Set_11=='ipaddresstime' || $Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11
   =='ipaddresscookietime' || $Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11=='ipaddresscookietime10'
   || $Total_Soft_Poll_Set[0]->TotalSoft_Poll_Set_11=='ipaddresscookie'){`
 * Thank You.

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

The topic ‘Time based voting restriction’ is closed to new replies.

 * ![](https://ps.w.org/poll-wp/assets/icon-128x128.png?rev=2692920)
 * [TS Poll - Survey, Versus Poll, Image Poll, Video Poll](https://wordpress.org/plugins/poll-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/poll-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/poll-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/poll-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/poll-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/poll-wp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [totalsoft](https://wordpress.org/support/users/totalsoft/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/time-based-voting-restriction/#post-14281642)
 * Status: resolved