• Resolved jodp

    (@jodp)


    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

    (@totalsoft)

    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

    (@totalsoft)

    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.