WordPress.org

Ready to get started?Download WordPress

Forums

YOP Poll
[resolved] Show results after vote and poll end date (3 posts)

  1. plucile
    Member
    Posted 8 months ago #

    Hi!

    I'd like to show results after vote AND after poll end date. How can i do that ?
    Thanks

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

  2. YOP
    Member
    Plugin Author

    Posted 8 months ago #

    Hi plucile,

    Edit inc/yop_poll_model.php and look for

    ( 'after-poll-end-date' == $poll_options['view_results'] && self::get_mysql_curent_date() >= $this -> poll['end_date'] )

    (approximately on line 3343)

    After this line add

    || ( 'after' == $poll_options['view_results'] && self::get_mysql_curent_date() >= $this -> poll['end_date'] )

    and it should fix the problem.

    Best wishes,

    YOP Team

  3. plucile
    Member
    Posted 8 months ago #

    It works ! Thanks !!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.