Hi Chuck,
If you defined %POLL-ERROR-MSG% in your template then edit inc/yop_poll_model.php and in return_poll_html function replace
$template = str_ireplace( ‘%POLL-ERROR-MSG%’, ‘<div id=”yop-poll-container-error-‘ . $poll_id . $unique_id . ‘” class=”yop-poll-container-error”></div>’, $template );
(on line 3109) with
if( !$is_voted ){
$template = str_ireplace( ‘%POLL-ERROR-MSG%’, ‘<div id=”yop-poll-container-error-‘ . $poll_id . $unique_id . ‘” class=”yop-poll-container-error”></div>’, $template );
}
else {
$template = str_ireplace( ‘%POLL-ERROR-MSG%’, ‘<div id=”yop-poll-container-error-‘ . $poll_id . $unique_id . ‘” class=”yop-poll-container-error”>You already Voted</div>’, $template );
}
If you did not define %POLL-ERROR-MSG% in your template then in the inc/yop_poll_model.php function replace the content of if ( !$msgDivE ){ } (approximately on line 3138) with
if( $is_voted ){
$template .= ‘<div id=”yop-poll-container-error-‘ . $poll_id . $unique_id . ‘” class=”yop-poll-container-error”>You already voted once! Come back Tomorow</div>’;
}
else {
$template .= ‘<div id=”yop-poll-container-error-‘ . $poll_id . $unique_id . ‘” class=”yop-poll-container-error”></div>’;
}
Best wishes,
YOP Team