• Resolved sirol81

    (@sirol81)


    The Cookie expiration time now is a dropdown with these options:

    <select id="TotalSoft_Poll_Set_12" name="TotalSoft_Poll_Set_12">
    <option value="1h">1 hours</option>
    <option value="3h">3 hours</option>
    <option value="6h">6 hours</option>
    <option value="12h">12 hours</option>
    <option value="1d" selected="selected">1 days</option>
    <option value="3d">3 days</option>
    <option value="1w">1 week</option>
    </select>

    I would like the ability to choose minutes expiration, like:

    <option value="1m">1 minute</option>

    <option value="2m">2 minutes</option>

    and so on. But a more flexible solution could be to have a free numeric field and a dropdown with choice “seconds/minutes/hours/days/weeks/years” like shown in the link:

    https://imgbox.com/ZSb6mB0l


Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sirol81

    (@sirol81)

    Minor spelling fix:

    ‘options’ => array(
    ‘s’  => esc_attr__( ‘Second(es)‘, ‘tspoll’ ),
    ‘m’  => esc_attr__( ‘Minute(s)’, ‘tspoll’ ),
    ‘h’  => esc_attr__( ‘Hour(es)‘, ‘tspoll’ ),
    ‘d’  => esc_attr__( ‘Day(s)’, ‘tspoll’ ),
    ‘w’ => esc_attr__( ‘Week(s)’, ‘tspoll’ ),
    ‘y’  => esc_attr__( ‘Year(s)’, ‘tspoll’ ),
    )

    it should be second(s) and hour(s), no (es)

    Plugin Author totalsoft

    (@totalsoft)

    Hello, dear sirol81.

    Thank you for contacting us and reporting your problem.

    Edit our gallery file class-ts_poll.php. Add this code line 779

    case ‘s’:
    $tsp_time_with_seconds = (int) $tsp_select_number;
    break;
    case ‘m’:
    $tsp_time_with_seconds = 60 * (int) $tsp_select_number;
    break;

    Everything needs to be changed. After that save the gallery file.

    We are always happy to hear from you and solve all problems. We will develop the plugin with you. For us, the most important thing is that the plugin should be used by the developers themselves.

    Have a good day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Suggestion for Cookie timespan options in Timed Expiration Vote’ is closed to new replies.