WordPress.org

Forums

YOP Poll
[resolved] show end of voting timer (7 posts)

  1. thadfiebich
    Member
    Posted 2 years ago #

    is it possible to show when the vote will end, date and time? I am using another plugin for this, but would rather use only yours. Thanks!

    http://wordpress.org/plugins/yop-poll/

  2. YOP
    Member
    Plugin Author

    Posted 2 years ago #

    Hi thadfiebich,

    Edit the template you used for you poll and in the "Template Before Vote" section add %POLL-END-DATE% wherever you want it to be displayed.

    Best wishes,

    YOP team

  3. thadfiebich
    Member
    Posted 2 years ago #

    is it possible to change the date and time format?

  4. YOP
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    Yes, you can do that. Please tell us what date and time format you want and we will provide the instructions on how to change it.

    Regards,

    YOP Team

  5. thadfiebich
    Member
    Posted 2 years ago #

    09/19/2013 at 9:03AM

    I dont do military time

  6. YOP
    Member
    Plugin Author

    Posted 2 years ago #

    Hey thadfiebich,

    Edit inc/yop_poll_model.php and on line 3175 replace

    $template = str_ireplace( '%POLL-END-DATE%', esc_html( stripslashes( self::convert_date( $poll_details['end_date'], 'd/m/Y H:i:s') ) ), $template );

    with

    $template = str_ireplace( '%POLL-END-DATE%', esc_html( stripslashes( self::convert_date( $poll_details['end_date'], 'd/m/Y \a\t g:iA') ) ), $template );

    Regards,

    YO Team

  7. thadfiebich
    Member
    Posted 2 years ago #

    Worked perfectly, thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.