YOP Poll
[resolved] result after closed (6 posts)

  1. EvertonPereira
    Posted 3 years ago #

    Hello Again!

    Another doubt,
    when my poll ends this plugin is not bringing the results
    already tried changing it from the html template poll but without success.

    You can check on the page

    he puts the title in the poll, but does not show the result.
    he would show only
    results and their options


  2. YOP
    Plugin Author

    Posted 3 years ago #

    Hey EvertonPereira,

    Edit your poll and in "View Results:" choose "After Poll End Date" and save.


    YOP Team

  3. EvertonPereira
    Posted 3 years ago #

    Obrigado novamente!
    Funciona bem!

  4. kalligator
    Posted 2 years ago #

    Dude this should be in the FAQ. I had to scour through forum posts to find this answer.
    I believe results should show by default in the Polls Archive anyway.

    Also, IMHO polls should not be shown in the Archive unless they've ended.

  5. smoo
    Posted 2 years ago #

    great plugin, thank you.
    However, I'm also having a problem with displaying the poll results after the poll has finished.

    I want people to be able to see the results straight away when they've voted, so under the 'View Results:' I'd need to choose 'After vote';

    However, I would also like the final results to appear on the poll archive page after the poll has finished. Does this mean that I'd need to remember to change that setting manually after the poll has finished, in order for it to appear on the archive page? Seems a bit strange that these are mutually exclusive, -or have I just misunderstood?

    Thanks for any help..

  6. YOP
    Plugin Author

    Posted 2 years ago #

    Hi smoo,

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic