Support » Plugin: YOP Poll » result after closed

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author YOP

    (@yourownprogrammer)

    Hey EvertonPereira,

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

    Regards,

    YOP Team

    Thread Starter EvertonPereira

    (@evertonpereira)

    Obrigado novamente!
    Funciona bem!

    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.

    Hi,
    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..

    Plugin Author YOP

    (@yourownprogrammer)

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘result after closed’ is closed to new replies.