YOP Poll - Version 1.1

Version Description

  • Fixed call_user_func_array() bug

=

Download this release

Release Info

Developer yourownprogrammer
Plugin Icon 128x128 YOP Poll
Version 1.1
Comparing to
See all releases

Code changes from version 1.0 to 1.1

Files changed (3) hide show
  1. inc/public-admin.php +4 -0
  2. readme.txt +96 -47
  3. yop_poll.php +2 -2
inc/public-admin.php CHANGED
@@ -6,6 +6,10 @@
6
  $this->add_filter( 'the_content', 'yop_poll_do_shortcode_the_content_filter');
7
  $this->add_filter( 'widget_text', 'do_shortcode');
8
  }
 
 
 
 
9
 
10
  public function public_loader() {
11
  add_shortcode( 'yop_poll', array( &$this, 'yop_poll_shortcode_function' ) );
6
  $this->add_filter( 'the_content', 'yop_poll_do_shortcode_the_content_filter');
7
  $this->add_filter( 'widget_text', 'do_shortcode');
8
  }
9
+
10
+ public function do_shortcode() {
11
+ do_shortcode();
12
+ }
13
 
14
  public function public_loader() {
15
  add_shortcode( 'yop_poll', array( &$this, 'yop_poll_shortcode_function' ) );
readme.txt CHANGED
@@ -1,18 +1,20 @@
1
  === YOP Poll ===
2
  Contributors: yourownprogrammer
3
  Donate Link: http://www.yourownprogrammer.com/thankyou/donation.html
4
- Tags: poll, polls
5
  Requires at least: 3.2
6
  Tested up to: 3.4.2
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
 
10
- 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.
 
 
11
 
12
 
13
  == Description ==
14
 
15
- YOP Poll plugin allows you to easily integrate a survey in your blog post/page and to manage the polls from within your WordPress dashboard but if offers so much more than other similar products. Simply put, it doesnt lose sight of your needs and ensures that no detail is left unaccounted for.
16
 
17
  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.
18
 
@@ -20,20 +22,34 @@ Scheduling your polls is no longer a problem. YOP Poll can simultaneously run mu
20
 
21
  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.
22
 
23
- Current poll features:
24
- - Create/ Edit / Clone/Delete poll - allows you to create or intervene in your survey at any time, if you consider it necessary.
25
- - Poll scheduling: programs each poll to start/end on a certain date. You can simultaneously run multiple polls you can use this option to schedule your polls one after another.
26
- - 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.
27
- - View all polls: lists all your polls that you can sort by number of votes or voters, by question or by date and includes a search option.
28
- - Poll answers - allows other answers, multiple answers and includes a sorting module by various criteria: in exact order, in alphabetical order, by number of votes, ascending, descending etc.
29
- - 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.
30
- - 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 download and use for�.
31
- - Reset stats - proves useful when you wish to restart a poll.
32
- - Vote permissions: - limits the voting accessibility to guests, registered users or both, or blocks user access by cookie, IP and username.
33
- - Archive options - allows the users of the website to access former polls statistics. You can choose which polls to display according to their start/end date.
34
- - Edit/delete/clone templates � allows you to customize the poll using either the html or the visual modes. You can also customize the result bar.
35
- - Display Options �displays answers and results tabulated, vertically or horizontally.
36
- - Logs and bans - user logs and bans can be seen in the admin section. You can ban users by email, username and IP and you can set the limitation preferences for all your polls or for just one of them.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
 
38
  == Installation ==
39
 
@@ -42,43 +58,70 @@ Current poll features:
42
 
43
  == Frequently Asked Questions ==
44
 
45
- This plugin was especially designed for flexibility and it is very easy to use. We dont expect you to encounter serious issues, but we included a list with some logical questions that you may find useful.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
- 1. How can I create a poll?
48
- a. Go to your YOP Poll menu and select the �Add New Yop Poll� option.
49
- b. Fill the required information according to the examples we included: name, question, answers (add additional ones if you need), select the start/end date for your poll, and decide on the advanced settings for results, votes, voters, accessibility etc.
50
- c. Once you decided on all your poll details, click on �Save�.
51
- d. To view your new poll access �All YOP Polls� from your main menu and choose the corresponding entry from the list.
52
 
53
- 2. How can I link a poll to my webpage?
54
- a. Find out the ID assigned to poll by accessing �All YOP Polls�.
55
- Locate your poll and notice the ID on the left, before the name section.
56
- b. Copy the following shortcode and paste it in your page: [yop_poll id="ID"]
57
- For instance, if the poll you want to display has the ID=15 the code will be: [yop_poll id="15"].
58
- c. This is it. Check your page or post now.
59
 
60
- 3. Do you have some predefined shortcodes that I can use?
61
- Yes.
62
- Current Active Poll ID = -1: [yop_poll id="-1"]
63
- Latest Poll id = -2: [yop_poll id="-2"]
64
- Random Poll id = -3: [yop_poll id="-3"]
65
 
66
- 4. Can I have more than one poll active?
67
- Yes, you can run multiple polls at the same time or you can schedule them to begin one after another using the �Select start/end date� option.
68
 
69
- 5. Can I ask for additional information from my voters?
70
- Yes, you can customize your poll to request additional information. Eg. name, email, age, profession. To include this, when you create your poll using the �Add New Yop Poll� form, go to �Custom Text Fields� -> �Add new custom field� and include as many requests as you need.
71
 
72
- 6. How can I create/modify a template?
73
- a. Access the �YOP Poll Templates� menu.
74
- b. If you want to create a new template use the �Add new� option and include the corresponding HTML/visual code.
75
- c. If you want to modify an existing template, select it from the YOP Poll Templates list and choose �Edit�. You will access the HTML/visual code you want to edit.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
 
77
- 7. How do I check the results?
78
- a. Locate the poll you want to evaluate by accessing �All YOP Polls�.
79
- b. Below the name of the poll you have several options.
80
- c. Use the �Results� link to track the results of the poll,
81
- d. or access the �Logs� for a more detailed evaluation.
82
 
83
 
84
  == Screenshots ==
@@ -91,6 +134,12 @@ This plugin was especially designed for flexibility and it is very easy to use.
91
  5. YOP Poll on a page with a custom field defined
92
 
93
 
 
 
 
 
 
 
94
  == Donations ==
95
 
96
  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.yourownprogrammer.com/thankyou/donation.html
4
+ Tags: poll, polls, vote, survey, polling, yop poll, yop
5
  Requires at least: 3.2
6
  Tested up to: 3.4.2
7
  Stable tag: trunk
8
  License: GPLv2 or later
9
 
10
+ Use a full option polling functionality to get the answers you need.
11
+
12
+ YOP Poll is the perfect, easy to use plugin for your WordPress site.
13
 
14
 
15
  == Description ==
16
 
17
+ YOP Poll plugin allows you to easily integrate a survey in your blog post/page and to manage the polls from within your WordPress dashboard but if offers so much more than other similar products. Simply put, it doesn't lose sight of your needs and ensures that no detail is left unaccounted for.
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
 
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
 
25
+ Current poll features:
26
+
27
+ * Create/ Edit / Clone/Delete poll - allows you to create or intervene in your survey 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 you can use this option 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
+
33
+ * View all polls: lists all your polls that you can sort by number of votes or voters, by question or by date and includes a search option.
34
+
35
+ * Poll answers - allows other answers, multiple answers and includes a sorting module by various criteria: in exact order, in alphabetical order, by number of votes, ascending, descending etc.
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 download and use for.
40
+
41
+ * Reset stats - proves useful when you wish to restart a poll.
42
+
43
+ * Vote permissions: - limits the voting accessibility to guests, registered users or both, or blocks user access by cookie, IP and username.
44
+
45
+ * Archive options - allows the users of the website to access former polls statistics. You can choose which polls to display according to their start/end date.
46
+
47
+ * Edit/delete/clone templates - allows you to customize the poll using either the html or the visual modes. You can also customize the result bar.
48
+
49
+ * Display Options - displays answers and results tabulated, vertically or horizontally.
50
+
51
+ * Logs and bans - user logs and bans can be seen in the admin section. You can ban users by email, username and IP and you can set the limitation preferences for all your polls or for just one of them.
52
+
53
 
54
  == Installation ==
55
 
58
 
59
  == Frequently Asked Questions ==
60
 
61
+ This plugin was especially designed for flexibility and it is very easy to use. We don't expect you to encounter serious issues, but we included a list with some logical questions that you may find useful.
62
+
63
+ 1. How can I create a poll?
64
+
65
+ * Go to your YOP Poll menu and select the "Add New Yop Poll" option.
66
+
67
+ * Fill the required information according to the examples we included: name, question, answers (add additional ones if you need), select the start/end date for your poll, and decide on the advanced settings for results, votes, voters, accessibility etc.
68
+
69
+ * Once you decided on all your poll details, click on "Save".
70
+
71
+ * To view your new poll access "All YOP Polls" from your main menu and choose the corresponding entry from the list.
72
+
73
+
74
+ 2. How can I link a poll to my webpage?
75
+
76
+ * Find out the ID assigned to poll by accessing "All YOP Polls".
77
+ Locate your poll and notice the ID on the left, before the name section.
78
 
79
+ * Copy the following shortcode and paste it in your page: [yop_poll id="ID"]
80
+ For instance, if the poll you want to display has the ID=15 the code will be: [yop_poll id="15"].
 
 
 
81
 
82
+ * This is it. Check your page or post now.
 
 
 
 
 
83
 
 
 
 
 
 
84
 
85
+ 3. Do you have some predefined shortcodes that I can use?
 
86
 
87
+ Yes.
 
88
 
89
+ Current Active Poll ID = -1: [yop_poll id="-1"]
90
+
91
+ Latest Poll id = -2: [yop_poll id="-2"]
92
+
93
+ Random Poll id = -3: [yop_poll id="-3"]
94
+
95
+
96
+ 4. Can I have more than one poll active?
97
+
98
+ Yes, you can run multiple polls at the same time or you can schedule them to begin one after another using the "Select start/end date" option.
99
+
100
+
101
+ 5. Can I ask for additional information from my voters?
102
+
103
+ Yes, you can customize your poll to request additional information. Eg. name, email, age, profession. To include this, when you create your poll using the "Add New Yop Poll" form, go to "Custom Text Fields" -> "Add new custom field" and include as many requests as you need.
104
+
105
+
106
+ 6. How can I create/modify a template?
107
+
108
+ * Access the "YOP Poll Templates" menu.
109
+
110
+ * If you want to create a new template use the "Add new" option and include the corresponding HTML/visual code.
111
+
112
+ * If you want to modify an existing template, select it from the YOP Poll Templates list and choose "Edit". You will access the HTML/visual code you want to edit.
113
+
114
+
115
+ 7. How do I check the results?
116
+
117
+ * Locate the poll you want to evaluate by accessing "All YOP Polls".
118
+
119
+ * Below the name of the poll you have several options.
120
+
121
+ * Use the "Results" link to track the results of the poll,
122
+
123
+ * or access the "Logs" for a more detailed evaluation.
124
 
 
 
 
 
 
125
 
126
 
127
  == Screenshots ==
134
  5. YOP Poll on a page with a custom field defined
135
 
136
 
137
+ == Changelog ==
138
+
139
+ = 1.1 =
140
+ * Fixed call_user_func_array() bug
141
+
142
+
143
  == Donations ==
144
 
145
  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.
yop_poll.php CHANGED
@@ -5,10 +5,10 @@
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 URL: http://www.yourownprogrammer.com
8
- Version: 1.0
9
  */
10
  define( 'YOP_POLL_WP_VERSION', '3.4.2' );
11
- define( 'YOP_POLL_VERSION', '1.0' );
12
  define( 'YOP_POLL_PATH', plugin_dir_path( __FILE__ ) );
13
  define( 'YOP_POLL_URL', plugins_url( '', __FILE__ ) );
14
  define( 'YOP_POLL_PLUGIN_FILE', plugin_basename( __FILE__ ) );
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 URL: http://www.yourownprogrammer.com
8
+ Version: 1.1
9
  */
10
  define( 'YOP_POLL_WP_VERSION', '3.4.2' );
11
+ define( 'YOP_POLL_VERSION', '1.1' );
12
  define( 'YOP_POLL_PATH', plugin_dir_path( __FILE__ ) );
13
  define( 'YOP_POLL_URL', plugins_url( '', __FILE__ ) );
14
  define( 'YOP_POLL_PLUGIN_FILE', plugin_basename( __FILE__ ) );