Version Description
- Fixed issue with login popup
- Fixed issue with vote button
- Fixed issue with html
Download this release
Release Info
Developer | yourownprogrammer |
Plugin | YOP Poll |
Version | 5.6 |
Comparing to | |
See all releases |
Code changes from version 5.5 to 5.6
- inc/maintenance.php +4 -0
- inc/poll_admin.php +13 -0
- js/yop-poll-public.js +117 -2
- models/poll_model.php +20 -5
- readme.txt +19 -19
- yop_poll.php +7 -16
inc/maintenance.php
CHANGED
@@ -552,6 +552,10 @@ NOWDOC;
|
|
552 |
if ( version_compare( $installed_version, '5.3', '<=' ) ){
|
553 |
update_option( "yop_poll_version", YOP_POLL_VERSION );
|
554 |
}
|
|
|
|
|
|
|
|
|
555 |
|
556 |
}
|
557 |
public function yop_poll_get_polls_for_body_mail_update(){
|
552 |
if ( version_compare( $installed_version, '5.3', '<=' ) ){
|
553 |
update_option( "yop_poll_version", YOP_POLL_VERSION );
|
554 |
}
|
555 |
+
$installed_version = get_option( "yop_poll_version" );
|
556 |
+
if ( version_compare( $installed_version, '5.5', '<=' ) ){
|
557 |
+
update_option( "yop_poll_version", YOP_POLL_VERSION );
|
558 |
+
}
|
559 |
|
560 |
}
|
561 |
public function yop_poll_get_polls_for_body_mail_update(){
|
inc/poll_admin.php
CHANGED
@@ -586,6 +586,19 @@ class YOP_POLL_Poll_Admin extends YOP_POLL_Abstract_Admin {
|
|
586 |
}
|
587 |
$data['current_poll'] = $current;
|
588 |
if( 'edit' == $action_type ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
589 |
$data['title'] = __yop_poll( 'Edit Poll' );
|
590 |
}
|
591 |
|
586 |
}
|
587 |
$data['current_poll'] = $current;
|
588 |
if( 'edit' == $action_type ) {
|
589 |
+
if(empty($current->vote_button_label)){
|
590 |
+
|
591 |
+
$current->vote_button_label=$options['vote_button_label'];
|
592 |
+
|
593 |
+
|
594 |
+
}
|
595 |
+
if(empty( $current->vote_permisions_wordpress_label)){
|
596 |
+
$current->vote_permisions_wordpress_label=$options['vote_permisions_wordpress_label'];
|
597 |
+
}
|
598 |
+
if(empty( $current->vote_permisions_anonymous_label)){
|
599 |
+
$current->vote_permisions_anonymous_label=$options['vote_permisions_anonymous_label'];
|
600 |
+
}
|
601 |
+
|
602 |
$data['title'] = __yop_poll( 'Edit Poll' );
|
603 |
}
|
604 |
|
js/yop-poll-public.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
var yop_poll_various_config = new Object();
|
2 |
var write_console = true;
|
|
|
3 |
function cslw(msg) {
|
4 |
if( write_console ) {
|
5 |
if( console && console.log ) {
|
@@ -7,7 +8,49 @@ function cslw(msg) {
|
|
7 |
}
|
8 |
}
|
9 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
function yop_poll_runEval(poll_id, unique_id) {
|
12 |
|
13 |
eval("if(typeof window.strip_results_" + poll_id + unique_id + " == 'function') strip_results_"+poll_id + unique_id +"();");
|
@@ -238,7 +281,41 @@ function yop_poll_vote_on_multiple_options(poll_id, vote_type, poll_location, un
|
|
238 |
back_to_vote_loading_image.id = 'yop_poll_wordpress_loading_img-' + poll_id + unique_id;
|
239 |
jQuery( '#yop_poll_wordpress-vote-button-' + poll_id + unique_id ).after( back_to_vote_loading_image );
|
240 |
jQuery( '#yop_poll_wordpress_loading_img-' + poll_id + unique_id ).css( 'border', 'none' );
|
|
|
|
|
|
|
|
|
241 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
yop_poll_vote_with_wordpress( yop_poll_various_config );
|
243 |
break;
|
244 |
case 'anonymous':
|
@@ -287,7 +364,7 @@ function yop_poll_vote_with_wordpress(yop_poll_various_config) {
|
|
287 |
yop_poll_do_vote( yop_poll_various_config );
|
288 |
}
|
289 |
else {
|
290 |
-
|
291 |
yop_poll_various_config.unique_id ).popupWindow( {
|
292 |
windowURL: yop_poll_public_config_general.vote_with_wordpress_login_url +
|
293 |
yop_poll_urlencode( yop_poll_various_config_to_get_params( yop_poll_various_config ) ),
|
@@ -305,6 +382,8 @@ function yop_poll_vote_with_wordpress(yop_poll_various_config) {
|
|
305 |
centerScreen: 1
|
306 |
} );
|
307 |
|
|
|
|
|
308 |
yop_poll_hide_loading( yop_poll_various_config.vote_loading_image_target,
|
309 |
yop_poll_various_config.vote_loading_image_id );
|
310 |
}
|
@@ -402,6 +481,41 @@ function yop_poll_register_vote(poll_id, poll_location, unique_id) {
|
|
402 |
yop_poll_various_config.vote_loading_image_id, yop_poll_public_config );
|
403 |
switch( yop_poll_public_config.poll_options.vote_permisions_types ) {
|
404 |
case 1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
405 |
yop_poll_vote_with_wordpress( yop_poll_various_config );
|
406 |
break;
|
407 |
case 2:
|
@@ -619,6 +733,7 @@ function yop_poll_hide_loading(target, loading_img_id) {
|
|
619 |
}
|
620 |
|
621 |
function yop_poll_do_vote(yop_poll_various_config) {
|
|
|
622 |
poll_id = typeof yop_poll_various_config.poll_id !== 'undefined' ? yop_poll_various_config.poll_id : 0;
|
623 |
is_modal = typeof yop_poll_various_config.is_modal !== 'undefined' ? yop_poll_various_config.is_modal : false;
|
624 |
vote_type = typeof yop_poll_various_config.vote_type !==
|
@@ -639,7 +754,7 @@ function yop_poll_do_vote(yop_poll_various_config) {
|
|
639 |
yop_poll_various_config.worspress_user_id );
|
640 |
|
641 |
}
|
642 |
-
var popupClose =
|
643 |
|
644 |
var pollData = {
|
645 |
'action': yop_poll_public_config_general.ajax.vote_action,
|
1 |
var yop_poll_various_config = new Object();
|
2 |
var write_console = true;
|
3 |
+
|
4 |
function cslw(msg) {
|
5 |
if( write_console ) {
|
6 |
if( console && console.log ) {
|
8 |
}
|
9 |
}
|
10 |
}
|
11 |
+
var wLog=0;
|
12 |
+
jQuery(document).ready(function(){
|
13 |
+
|
14 |
+
jQuery.ajax( {
|
15 |
+
|
16 |
+
type : 'POST',
|
17 |
+
|
18 |
+
async : true,
|
19 |
+
|
20 |
+
url : yop_poll_public_config_general.ajax.url,
|
21 |
+
|
22 |
+
data : 'action=' + yop_poll_public_config_general.ajax.is_wordpress_user_action,
|
23 |
|
24 |
+
cache : false,
|
25 |
+
|
26 |
+
async : false,
|
27 |
+
|
28 |
+
error : function() {
|
29 |
+
|
30 |
+
},
|
31 |
+
|
32 |
+
success: function( data ) {
|
33 |
+
|
34 |
+
data = yop_poll_extractApiResponse( data );
|
35 |
+
|
36 |
+
data = data.split( ';' );
|
37 |
+
|
38 |
+
if( data[0] == 'true' ) {
|
39 |
+
|
40 |
+
wLog=1;
|
41 |
+
|
42 |
+
}
|
43 |
+
|
44 |
+
else {
|
45 |
+
|
46 |
+
wLog=0;
|
47 |
+
}
|
48 |
+
|
49 |
+
}
|
50 |
+
|
51 |
+
} );
|
52 |
+
|
53 |
+
});
|
54 |
function yop_poll_runEval(poll_id, unique_id) {
|
55 |
|
56 |
eval("if(typeof window.strip_results_" + poll_id + unique_id + " == 'function') strip_results_"+poll_id + unique_id +"();");
|
281 |
back_to_vote_loading_image.id = 'yop_poll_wordpress_loading_img-' + poll_id + unique_id;
|
282 |
jQuery( '#yop_poll_wordpress-vote-button-' + poll_id + unique_id ).after( back_to_vote_loading_image );
|
283 |
jQuery( '#yop_poll_wordpress_loading_img-' + poll_id + unique_id ).css( 'border', 'none' );
|
284 |
+
if(wLog == 0){
|
285 |
+
jQuery( '#yop_poll_vote-button-' + yop_poll_various_config.poll_id +
|
286 |
+
|
287 |
+
yop_poll_various_config.unique_id ).popupWindow( {
|
288 |
|
289 |
+
windowURL : yop_poll_public_config_general.vote_with_wordpress_login_url +
|
290 |
+
|
291 |
+
yop_poll_urlencode( yop_poll_various_config_to_get_params( yop_poll_various_config ) ),
|
292 |
+
|
293 |
+
windowName : 'yop_poll_popup_window',
|
294 |
+
|
295 |
+
height : 500,
|
296 |
+
|
297 |
+
left : 0,
|
298 |
+
|
299 |
+
location : 0,
|
300 |
+
|
301 |
+
menubar : 0,
|
302 |
+
|
303 |
+
resizable : 0,
|
304 |
+
|
305 |
+
scrollbars : 1,
|
306 |
+
|
307 |
+
status : 0,
|
308 |
+
|
309 |
+
width : 450,
|
310 |
+
|
311 |
+
top : 0,
|
312 |
+
|
313 |
+
toolbar : 0,
|
314 |
+
|
315 |
+
centerScreen: 1
|
316 |
+
|
317 |
+
} );
|
318 |
+
}
|
319 |
yop_poll_vote_with_wordpress( yop_poll_various_config );
|
320 |
break;
|
321 |
case 'anonymous':
|
364 |
yop_poll_do_vote( yop_poll_various_config );
|
365 |
}
|
366 |
else {
|
367 |
+
jQuery( '#yop_poll_vote-button-' + yop_poll_various_config.poll_id +
|
368 |
yop_poll_various_config.unique_id ).popupWindow( {
|
369 |
windowURL: yop_poll_public_config_general.vote_with_wordpress_login_url +
|
370 |
yop_poll_urlencode( yop_poll_various_config_to_get_params( yop_poll_various_config ) ),
|
382 |
centerScreen: 1
|
383 |
} );
|
384 |
|
385 |
+
|
386 |
+
|
387 |
yop_poll_hide_loading( yop_poll_various_config.vote_loading_image_target,
|
388 |
yop_poll_various_config.vote_loading_image_id );
|
389 |
}
|
481 |
yop_poll_various_config.vote_loading_image_id, yop_poll_public_config );
|
482 |
switch( yop_poll_public_config.poll_options.vote_permisions_types ) {
|
483 |
case 1:
|
484 |
+
if(wLog==0){
|
485 |
+
jQuery( '#yop_poll_vote-button-' + yop_poll_various_config.poll_id +
|
486 |
+
|
487 |
+
yop_poll_various_config.unique_id ).popupWindow( {
|
488 |
+
|
489 |
+
windowURL : yop_poll_public_config_general.vote_with_wordpress_login_url +
|
490 |
+
|
491 |
+
yop_poll_urlencode( yop_poll_various_config_to_get_params( yop_poll_various_config ) ),
|
492 |
+
|
493 |
+
windowName : 'yop_poll_popup_window',
|
494 |
+
|
495 |
+
height : 500,
|
496 |
+
|
497 |
+
left : 0,
|
498 |
+
|
499 |
+
location : 0,
|
500 |
+
|
501 |
+
menubar : 0,
|
502 |
+
|
503 |
+
resizable : 0,
|
504 |
+
|
505 |
+
scrollbars : 1,
|
506 |
+
|
507 |
+
status : 0,
|
508 |
+
|
509 |
+
width : 450,
|
510 |
+
|
511 |
+
top : 0,
|
512 |
+
|
513 |
+
toolbar : 0,
|
514 |
+
|
515 |
+
centerScreen: 1
|
516 |
+
|
517 |
+
} );
|
518 |
+
}
|
519 |
yop_poll_vote_with_wordpress( yop_poll_various_config );
|
520 |
break;
|
521 |
case 2:
|
733 |
}
|
734 |
|
735 |
function yop_poll_do_vote(yop_poll_various_config) {
|
736 |
+
wLog=1;
|
737 |
poll_id = typeof yop_poll_various_config.poll_id !== 'undefined' ? yop_poll_various_config.poll_id : 0;
|
738 |
is_modal = typeof yop_poll_various_config.is_modal !== 'undefined' ? yop_poll_various_config.is_modal : false;
|
739 |
vote_type = typeof yop_poll_various_config.vote_type !==
|
754 |
yop_poll_various_config.worspress_user_id );
|
755 |
|
756 |
}
|
757 |
+
var popupClose = true;
|
758 |
|
759 |
var pollData = {
|
760 |
'action': yop_poll_public_config_general.ajax.vote_action,
|
models/poll_model.php
CHANGED
@@ -600,7 +600,7 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
|
|
600 |
}
|
601 |
$temp_string = str_ireplace( '%POLL-CUSTOM-FIELD-LABEL%', '<label for="yop-poll-customfield-' . $this->ID . $unique_id . '-' . $custom_field->ID . '">' . yop_poll_kses( $custom_field->custom_field ) . '</label>', $m );
|
602 |
|
603 |
-
$temp_string = str_ireplace( '%POLL-CUSTOM-FIELD-TEXT-INPUT%', '<input type="text" value="" name="yop_poll_customfield[' . $question->ID . '][' . $custom_field->ID . ']" id="yop-poll-customfield-' . $this->ID . $unique_id .
|
604 |
$model .= $temp_string;
|
605 |
}
|
606 |
}
|
@@ -692,7 +692,7 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
|
|
692 |
/** End Answer Description replace */
|
693 |
$ans->type = "text";
|
694 |
if( $ans->type == "text" ) {
|
695 |
-
$temp_string = str_ireplace( '%POLL-ANSWER-LABEL%', '<
|
696 |
}
|
697 |
|
698 |
|
@@ -1299,15 +1299,30 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
|
|
1299 |
}
|
1300 |
|
1301 |
$template_css = $template_details['css'];
|
1302 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1303 |
$poll_details = $this;
|
|
|
|
|
|
|
1304 |
|
1305 |
//Translate labels
|
1306 |
if( function_exists( 'icl_translate' ) ) {
|
1307 |
// $poll_details = icl_translate( 'yop_poll', $poll_details->ID . '_poll_title', $poll_details->name );
|
1308 |
$this->singular_answer_result_votes_number_label = icl_translate( 'yop_poll', $poll_details->ID . '_singular_answer_result_votes_number_label', $general_options['singular_answer_result_votes_number_label']);
|
1309 |
$this->plural_answer_result_votes_number_label = icl_translate( 'yop_poll', $poll_details->ID . '_plural_answer_result_votes_number_label', $general_options['plural_answer_result_votes_number_label'] );
|
1310 |
-
$this->vote_button_label = icl_translate( 'yop_poll', $poll_details->ID . '_vote_button_label',
|
1311 |
$this->view_results_link_label = icl_translate( 'yop_poll', $poll_details->ID . '_view_results_link_label', $this->view_results_link_label );
|
1312 |
$this->view_back_to_vote_link_label = icl_translate( 'yop_poll', $poll_details->ID . '_view_back_to_vote_link_label', $this->view_back_to_vote_link_label );
|
1313 |
$this->view_total_votes_label = icl_translate( 'yop_poll', $poll_details->ID . '_view_total_votes_label', $this->view_total_votes_label );
|
@@ -1471,7 +1486,7 @@ Class YOP_POLL_Poll_Model extends YOP_POLL_Abstract_Model {
|
|
1471 |
|
1472 |
$template = "";
|
1473 |
if( $load_css ) {
|
1474 |
-
$template .= '<style
|
1475 |
}
|
1476 |
|
1477 |
$template .= '<div id="yop-poll-container-' . $this->ID . $unique_id . '" class="yop-poll-container">';
|
600 |
}
|
601 |
$temp_string = str_ireplace( '%POLL-CUSTOM-FIELD-LABEL%', '<label for="yop-poll-customfield-' . $this->ID . $unique_id . '-' . $custom_field->ID . '">' . yop_poll_kses( $custom_field->custom_field ) . '</label>', $m );
|
602 |
|
603 |
+
$temp_string = str_ireplace( '%POLL-CUSTOM-FIELD-TEXT-INPUT%', '<input type="text" value="" name="yop_poll_customfield[' . $question->ID . '][' . $custom_field->ID . ']" id="yop-poll-customfield-' . $this->ID . $unique_id .'-'.$custom_field->ID.'" />', $temp_string );
|
604 |
$model .= $temp_string;
|
605 |
}
|
606 |
}
|
692 |
/** End Answer Description replace */
|
693 |
$ans->type = "text";
|
694 |
if( $ans->type == "text" ) {
|
695 |
+
$temp_string = str_ireplace( '%POLL-ANSWER-LABEL%', '<span>' . yop_poll_kses( stripslashes( $ans->answer ) ) . '</span>', $temp_string );
|
696 |
}
|
697 |
|
698 |
|
1299 |
}
|
1300 |
|
1301 |
$template_css = $template_details['css'];
|
1302 |
+
$template_details['before_vote_template']= str_replace('id = "yop-poll-li-answer-%POLL-ID%-%QUESTION-ID%"','', $template_details['before_vote_template']);
|
1303 |
+
$template_details['before_vote_template']= str_replace('id = "yop-poll-li-custom-%POLL-ID%-%QUESTION-ID%"','', $template_details['before_vote_template']);
|
1304 |
+
$template_details['before_vote_template']= str_replace('id = "yop-poll-customs-%POLL-ID%-%QUESTION-ID%"','', $template_details['before_vote_template']);
|
1305 |
+
$template_details['after_end_date_template']= str_replace('id = "pds-feedback-label-%POLL-ID%-%QUESTION-ID%"','', $template_details['after_end_date_template']);
|
1306 |
+
$template_details['after_vote_template']= str_replace('id = "pds-feedback-label-%POLL-ID%-%QUESTION-ID%"','', $template_details['after_vote_template']);
|
1307 |
+
$template_details['after_end_date_template']= str_replace('id = "yop-poll-li-result-%POLL-ID%-%QUESTION-ID%"','', $template_details['after_end_date_template']);
|
1308 |
+
$template_details['after_vote_template']= str_replace('id = "yop-poll-li-result-%POLL-ID%-%QUESTION-ID%"','', $template_details['after_vote_template']);
|
1309 |
+
$template_details['after_end_date_template']= str_replace('id = "pds-answer-text-%POLL-ID%-%QUESTION-ID%"','', $template_details['after_end_date_template']);
|
1310 |
+
$template_details['after_vote_template']= str_replace('id = "pds-answer-text-%POLL-ID%-%QUESTION-ID%"','', $template_details['after_vote_template']);
|
1311 |
+
$template_details['after_end_date_template']= str_replace('id = "pds-feedback-result-%POLL-ID%-%QUESTION-ID%"','', $template_details['after_end_date_template']);
|
1312 |
+
$template_details['after_vote_template']= str_replace('id = "pds-feedback-result-%POLL-ID%-%QUESTION-ID%"','', $template_details['after_vote_template']);
|
1313 |
+
$template_details['after_end_date_template']= str_replace('id = "pds-feedback-per-%POLL-ID%-%QUESTION-ID%"','', $template_details['after_end_date_template']);
|
1314 |
+
$template_details['after_vote_template']= str_replace('id = "pds-feedback-per-%POLL-ID%-%QUESTION-ID%"','', $template_details['after_vote_template']);
|
1315 |
$poll_details = $this;
|
1316 |
+
$this->vote_button_label = empty($this->vote_button_label )?$general_options['vote_button_label']:$this->vote_button_label;
|
1317 |
+
$this->vote_permisions_wordpress_label = empty($this->vote_permisions_wordpress_label )?$general_options['vote_permisions_wordpress_label']:$this->vote_permisions_wordpress_label;
|
1318 |
+
$this->vote_permisions_anonymous_label = empty($this->vote_permisions_anonymous_label )?$general_options['vote_permisions_anonymous_label']:$this->vote_permisions_anonymous_label;
|
1319 |
|
1320 |
//Translate labels
|
1321 |
if( function_exists( 'icl_translate' ) ) {
|
1322 |
// $poll_details = icl_translate( 'yop_poll', $poll_details->ID . '_poll_title', $poll_details->name );
|
1323 |
$this->singular_answer_result_votes_number_label = icl_translate( 'yop_poll', $poll_details->ID . '_singular_answer_result_votes_number_label', $general_options['singular_answer_result_votes_number_label']);
|
1324 |
$this->plural_answer_result_votes_number_label = icl_translate( 'yop_poll', $poll_details->ID . '_plural_answer_result_votes_number_label', $general_options['plural_answer_result_votes_number_label'] );
|
1325 |
+
$this->vote_button_label = icl_translate( 'yop_poll', $poll_details->ID . '_vote_button_label', empty($this->vote_button_label )?$general_options['vote_button_label']:$this->vote_button_labels );
|
1326 |
$this->view_results_link_label = icl_translate( 'yop_poll', $poll_details->ID . '_view_results_link_label', $this->view_results_link_label );
|
1327 |
$this->view_back_to_vote_link_label = icl_translate( 'yop_poll', $poll_details->ID . '_view_back_to_vote_link_label', $this->view_back_to_vote_link_label );
|
1328 |
$this->view_total_votes_label = icl_translate( 'yop_poll', $poll_details->ID . '_view_total_votes_label', $this->view_total_votes_label );
|
1486 |
|
1487 |
$template = "";
|
1488 |
if( $load_css ) {
|
1489 |
+
$template .= '<style scoped>' . self::return_poll_css( $template_css, array( "location" => $location ) ) . '</style>';
|
1490 |
}
|
1491 |
|
1492 |
$template .= '<div id="yop-poll-container-' . $this->ID . $unique_id . '" class="yop-poll-container">';
|
readme.txt
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
=== YOP Poll ===
|
2 |
Contributors: yourownprogrammer
|
3 |
-
Donate Link: http://www.yop-poll.com
|
4 |
-
Tags: booth, poll, polls, vote, voting, survey, polling, yop poll, yop
|
5 |
Requires at least: 3.3
|
6 |
-
Tested up to: 4.1
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.htm
|
10 |
|
11 |
-
Use a full option polling
|
12 |
|
13 |
-
YOP Poll is the perfect, easy to use poll plugin for your
|
14 |
|
15 |
== Description ==
|
16 |
|
@@ -18,7 +18,7 @@ YOP Poll plugin allows you to easily integrate a survey in your blog post/page a
|
|
18 |
|
19 |
To name just a few improvements, you can create polls to include both single or multiple answers, work with a wide variety of options and settings to decide how you wish to sort your poll information, how to manage the results, what details to display and what to keep private, whether you want to view the total votes or the total voters, to set vote permissions or block voters etc.
|
20 |
|
21 |
-
Scheduling your polls is no longer a problem. YOP Poll can simultaneously run multiple
|
22 |
|
23 |
Designed to intuitive and easy to use, this plugin allows shortcodes and includes a widget functionality that fits perfectly with your WordPress website. For more details on the included features, please refer to the description below.
|
24 |
|
@@ -26,7 +26,7 @@ Current poll features:
|
|
26 |
|
27 |
* Create/ Edit / Clone/Delete poll - allows you to create or intervene in your poll at any time, if you consider it necessary.
|
28 |
|
29 |
-
* Poll scheduling: programs each poll to start/end on a certain date. You can simultaneously run multiple polls. This option can be used to schedule your
|
30 |
|
31 |
* Display polls: you can choose to display one or more polls on your website by simply adding the corresponding poll ID. You can also decide for a random display of your active polls.
|
32 |
|
@@ -36,7 +36,7 @@ Current poll features:
|
|
36 |
|
37 |
* Poll results - offers a great flexibility when displaying the results: before/after vote, after poll's end date, on a custom date or never. The results can also be displayed by vote numbers, percentages or both. You can choose to include a view results link, view number of votes or number of voters.
|
38 |
|
39 |
-
* Add new custom fields - is a complex option that you can use to ask for additional information from your voters, information that you can then
|
40 |
|
41 |
* Reset stats - proves useful when you wish to restart a poll.
|
42 |
|
@@ -68,10 +68,8 @@ To view your new poll access "All Polls" from your main menu and choose the corr
|
|
68 |
|
69 |
= How can I link a poll to my webpage? =
|
70 |
|
71 |
-
|
72 |
-
|
73 |
-
Copy the following shortcode and paste it in your page: [yop_poll id="ID"]
|
74 |
-
For instance, if the poll you want to display has the ID=15 the code will be: [yop_poll id="15"].
|
75 |
This is it. Check your page or post now.
|
76 |
|
77 |
= Do you have some predefined shortcodes that I can use? =
|
@@ -87,7 +85,8 @@ Yes, you can run multiple polls at the same time or you can schedule them to beg
|
|
87 |
|
88 |
= Can I ask for additional information from my voters? =
|
89 |
|
90 |
-
Yes, you can customize your poll to request additional information. Eg. name, email, age, profession.
|
|
|
91 |
|
92 |
= How can I create/modify a template? =
|
93 |
|
@@ -99,7 +98,7 @@ If you want to modify an existing template, select it from the Templates list an
|
|
99 |
|
100 |
Locate the poll you want to evaluate by accessing "All Polls".
|
101 |
Below the name of the poll you have several options.
|
102 |
-
Use the "
|
103 |
or access the "Logs" for a more detailed evaluation.
|
104 |
|
105 |
= What is the difference between Options and Poll Options for each poll? =
|
@@ -143,6 +142,11 @@ You can have only one question per poll. If you want to ask more than one questi
|
|
143 |
|
144 |
== Changelog ==
|
145 |
|
|
|
|
|
|
|
|
|
|
|
146 |
= 5.5 =
|
147 |
* Fixed issue with clone poll
|
148 |
* Fixed issue with archive page
|
@@ -297,8 +301,4 @@ You can have only one question per poll. If you want to ask more than one questi
|
|
297 |
* Fixed do_shortcode() with missing argument bug
|
298 |
|
299 |
= 1.1 =
|
300 |
-
* Fixed call_user_func_array() bug
|
301 |
-
|
302 |
-
== Donations ==
|
303 |
-
|
304 |
-
We've given a lot of thought to make this application one of the best ones available and we continue to invest our time and effort perfecting it. If you want to support our work, please consider making a donation.
|
1 |
=== YOP Poll ===
|
2 |
Contributors: yourownprogrammer
|
3 |
+
Donate Link: http://www.yop-poll.com
|
4 |
+
Tags: booth, create poll, poll plugin, poll, polls, wordpress poll, vote, voting, survey, polling, yop poll, yop
|
5 |
Requires at least: 3.3
|
6 |
+
Tested up to: 4.1.1
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.htm
|
10 |
|
11 |
+
Use a full option polling solution to get the answers you need.
|
12 |
|
13 |
+
YOP Poll is the perfect, easy to use poll plugin for your wordpress site.
|
14 |
|
15 |
== Description ==
|
16 |
|
18 |
|
19 |
To name just a few improvements, you can create polls to include both single or multiple answers, work with a wide variety of options and settings to decide how you wish to sort your poll information, how to manage the results, what details to display and what to keep private, whether you want to view the total votes or the total voters, to set vote permissions or block voters etc.
|
20 |
|
21 |
+
Scheduling your polls is no longer a problem. YOP Poll can simultaneously run multiple polls (no limit included) or you can schedule your polls to start one after another. Also, keeping track of your polls is easy, you have various sorting functions and you can access older versions at any time.
|
22 |
|
23 |
Designed to intuitive and easy to use, this plugin allows shortcodes and includes a widget functionality that fits perfectly with your WordPress website. For more details on the included features, please refer to the description below.
|
24 |
|
26 |
|
27 |
* Create/ Edit / Clone/Delete poll - allows you to create or intervene in your poll at any time, if you consider it necessary.
|
28 |
|
29 |
+
* Poll scheduling: programs each poll to start/end on a certain date. You can simultaneously run multiple polls. This option can be used to schedule your polls one after another.
|
30 |
|
31 |
* Display polls: you can choose to display one or more polls on your website by simply adding the corresponding poll ID. You can also decide for a random display of your active polls.
|
32 |
|
36 |
|
37 |
* Poll results - offers a great flexibility when displaying the results: before/after vote, after poll's end date, on a custom date or never. The results can also be displayed by vote numbers, percentages or both. You can choose to include a view results link, view number of votes or number of voters.
|
38 |
|
39 |
+
* Add new custom fields - is a complex option that you can use to ask for additional information from your voters, information that you can then export and use for.
|
40 |
|
41 |
* Reset stats - proves useful when you wish to restart a poll.
|
42 |
|
68 |
|
69 |
= How can I link a poll to my webpage? =
|
70 |
|
71 |
+
Under "All Polls", each poll has an option called "Get Code".
|
72 |
+
Clicking on that will display a popup that generates the code you need to place in your page or post.
|
|
|
|
|
73 |
This is it. Check your page or post now.
|
74 |
|
75 |
= Do you have some predefined shortcodes that I can use? =
|
85 |
|
86 |
= Can I ask for additional information from my voters? =
|
87 |
|
88 |
+
Yes, you can customize your poll to request additional information. Eg. name, email, age, profession.
|
89 |
+
To include this, when you create your poll using the "Add New" form, expand "Custom Fields" section and include as many requests as you need.
|
90 |
|
91 |
= How can I create/modify a template? =
|
92 |
|
98 |
|
99 |
Locate the poll you want to evaluate by accessing "All Polls".
|
100 |
Below the name of the poll you have several options.
|
101 |
+
Use the "View Votes" link to track the results of the poll,
|
102 |
or access the "Logs" for a more detailed evaluation.
|
103 |
|
104 |
= What is the difference between Options and Poll Options for each poll? =
|
142 |
|
143 |
== Changelog ==
|
144 |
|
145 |
+
= 5.6 =
|
146 |
+
* Fixed issue with login popup
|
147 |
+
* Fixed issue with vote button
|
148 |
+
* Fixed issue with html
|
149 |
+
|
150 |
= 5.5 =
|
151 |
* Fixed issue with clone poll
|
152 |
* Fixed issue with archive page
|
301 |
* Fixed do_shortcode() with missing argument bug
|
302 |
|
303 |
= 1.1 =
|
304 |
+
* Fixed call_user_func_array() bug
|
|
|
|
|
|
|
|
yop_poll.php
CHANGED
@@ -1,28 +1,19 @@
|
|
1 |
<?php
|
|
|
2 |
/*
|
3 |
* Plugin Name: YOP Poll
|
4 |
-
* URI: http://www.yop-poll.com
|
5 |
-
* Description: Use a full option polling functionality to get the answers you need. YOP Poll is the perfect, easy to use plugin for your WordPress website.
|
|
|
6 |
* Author: yourownprogrammer
|
7 |
-
* Author
|
8 |
-
|
9 |
-
* Network: false
|
10 |
*/
|
11 |
|
12 |
-
/**
|
13 |
-
* @todo update to 2.0 database default options
|
14 |
-
* @todo edit abstract_model -> is_voted on cookie-ip update to logs table
|
15 |
-
* @todo insert facebook users
|
16 |
-
* @todo users_have_votes_to_vote
|
17 |
-
* @todo vote_with_wordpress questions
|
18 |
-
* @todo answer_result_callback multiple params
|
19 |
-
* @todo poll preview template
|
20 |
-
* @todo paypal buy now button ID
|
21 |
-
* */
|
22 |
if (!(version_compare(phpversion(), '5.3', '<'))) {
|
23 |
define ( 'YOP_POLL_DOMAIN', 'yop_poll' );
|
24 |
define ( 'YOP_POLL_WP_VERSION', '3.3' );
|
25 |
-
define ( 'YOP_POLL_VERSION', '5.
|
26 |
define ( 'YOP_POLL_PATH', plugin_dir_path( __FILE__ ) ); ///home/..../wp-content/plugins/yop-poll-2.0/
|
27 |
define ( 'YOP_POLL_URL', plugin_dir_url( __FILE__ ) ); //http://your-domain/wp-content/plugins/yop-poll-2.0/
|
28 |
define ( 'YOP_POLL_PLUGIN_FILE', __FILE__ ); ///home/..../wp-content/plugins/yop-poll-2.0/yop-poll-2.0.php
|
1 |
<?php
|
2 |
+
|
3 |
/*
|
4 |
* Plugin Name: YOP Poll
|
5 |
+
* Plugin URI: http://www.yop-poll.com
|
6 |
+
* Description: Use a full option polling functionality to get the answers you need. YOP Poll is the perfect, easy to use poll plugin for your WordPress website.
|
7 |
+
* Version: 5.6
|
8 |
* Author: yourownprogrammer
|
9 |
+
* Author URI: http://www.yop-poll.com
|
10 |
+
* License: GPLv2 or later
|
|
|
11 |
*/
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
if (!(version_compare(phpversion(), '5.3', '<'))) {
|
14 |
define ( 'YOP_POLL_DOMAIN', 'yop_poll' );
|
15 |
define ( 'YOP_POLL_WP_VERSION', '3.3' );
|
16 |
+
define ( 'YOP_POLL_VERSION', '5.6' );
|
17 |
define ( 'YOP_POLL_PATH', plugin_dir_path( __FILE__ ) ); ///home/..../wp-content/plugins/yop-poll-2.0/
|
18 |
define ( 'YOP_POLL_URL', plugin_dir_url( __FILE__ ) ); //http://your-domain/wp-content/plugins/yop-poll-2.0/
|
19 |
define ( 'YOP_POLL_PLUGIN_FILE', __FILE__ ); ///home/..../wp-content/plugins/yop-poll-2.0/yop-poll-2.0.php
|