Hi John,
Please edit inc/yop_poll_model.php and on line 3699 replace these 2 blocks
if( $multiple_answers ) {}
else {}
with
if ( $multiple_answers ) {
if ( isset( $answer_options['is_default_answer'] ) && 'yes' == $answer_options['is_default_answer'] )
$temp_string = str_ireplace( '%POLL-ANSWER-CHECK-INPUT%', '<input type="checkbox" checked="checked" value="'.$answer['id'].'" name="yop_poll_answer['.$answer['id'].']" id="yop-poll-answer-'.$answer['id'].'" />', $m[5] );
else
$temp_string = str_ireplace( '%POLL-ANSWER-CHECK-INPUT%', '<input type="checkbox" value="'.$answer['id'].'" name="yop_poll_answer['.$answer['id'].']" id="yop-poll-answer-'.$answer['id'].'" />', $m[5] );
}
else {
if ( isset( $answer_options['is_default_answer'] ) && 'yes' == $answer_options['is_default_answer'] )
$temp_string = str_ireplace( '%POLL-ANSWER-CHECK-INPUT%', '<input type="radio" onclick="if( jQuery(this).is(\':checked\') ) jQuery(this).closest(\'form\').find(\'button[class=yop_poll_vote_button]\').click()" checked="checked" value="'.$answer['id'].'" name="yop_poll_answer" id="yop-poll-answer-'.$answer['id'].'" />', $m[5] );
else
$temp_string = str_ireplace( '%POLL-ANSWER-CHECK-INPUT%', '<input type="radio" onclick="if( jQuery(this).is(\':checked\') ) jQuery(this).closest(\'form\').find(\'button[class=yop_poll_vote_button]\').click()" value="'.$answer['id'].'" name="yop_poll_answer" id="yop-poll-answer-'.$answer['id'].'" />', $m[5] );
}
Please note that once you save the changes they will apply on all your polls.
Also, if in “Options” you set “Vote as WordPress User” and “Vote as Anonymous User” to “Yes”, then the vote will not be registered unless
the users click on the corresponding buttons.
Best wishes,
YOP Team