Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page - Version 4.0.0

Version Description

N/A

Download this release

Release Info

Developer yoffegil
Plugin Icon 128x128 Poll, Survey, Quiz, Slideshow, Form, Story & Landing Page
Version 4.0.0
Comparing to
See all releases

Code changes from version 2.9.0 to 4.0.0

images/logo.png ADDED
Binary file
opinionstage-functions.php CHANGED
@@ -119,17 +119,24 @@ function opinionstage_poll_menu() {
119
  * Instructions page for adding a poll
120
  */
121
  function opinionstage_add_poll_page() {
 
122
  ?>
123
- <h1><strong>Opinion Stage Social Polls</strong></h1>
124
- <h3><strong>To add a social poll to your post/page:</strong></h3>
125
- <p>1) &nbsp; <?php echo opinionstage_create_link('Start a new poll', 'new_poll', ''); ?> or locate a poll from <?php echo opinionstage_create_link('your dashboard', 'dashboard', ''); ?></p>
126
- <p>2) &nbsp; Click on 'Add to Website' link and copy the poll ID</p>
127
- <p>3) &nbsp; From the WordPress post/page text editor, click on the social poll icon to open the insert poll dialog</p>
128
- <img src="http://a5.opinionstage-res.cloudinary.com/image/upload/c_fit,h_294,w_474/v1332371481/mw4b8djjlljrwjy2w3iqa.jpg" />
129
- <p>4) &nbsp; Paste the ID into the insert poll dialog</p>
130
- <span>Note: Instead of steps 3 & 4, you can add the following code directly into the post/page: [socialpoll id="xyz"] , where xyz is the poll id.</span>
131
- <br>
132
- <?php echo opinionstage_insturctions_html_suffix(); ?>
 
 
 
 
 
 
133
  <?php
134
  }
135
 
@@ -158,27 +165,22 @@ function opinionstage_add_poll_popup() {
158
  <div id="opinionstage-insert-poll-form" style="display:none;">
159
  <div id="content">
160
  <h1><strong>Insert a Social Poll</strong></h1>
161
- <h3><strong>Enter Poll ID (e.g. 436):</strong></h3>
162
  <p><input type="text" name="poll-id" id="opinionstage-poll-id" value="" /></p>
163
  <p class="submit">
164
  <input type="button" id="opinionstage-submit" class="button-primary" value="Insert Poll" name="submit" />
165
  </p>
166
- <br>
167
- <p><strong>Haven't created a poll yet? / Don't know the poll ID?</strong></p>
168
- <p>1) &nbsp; <?php echo opinionstage_create_link('Start a new poll', 'new_poll', ''); ?> or locate a poll from <?php echo opinionstage_create_link('your dashboard', 'dashboard', ''); ?></p>
169
- <p>2) &nbsp; Click on 'Add to Website' link and copy the poll ID</p>
170
- <?php echo opinionstage_insturctions_html_suffix(); ?>
 
171
  </div>
172
  </div>
173
  <?php
174
  }
175
 
176
- function opinionstage_insturctions_html_suffix() {
177
- ?>
178
- <br>
179
- Need more information? <?php echo opinionstage_create_link('click here', 'publishers/wordpress', ''); ?>. For support or feedback, please <?php echo opinionstage_create_link('contact us', 'contact_requests/new', ''); ?>
180
- <?php
181
- }
182
  /**
183
  * Utility function to create a link with the correct host and all the required information.
184
  */
@@ -191,6 +193,15 @@ function opinionstage_create_link($caption, $page, $params = "", $options = arra
191
  return "<a href=\"".$link."\"".($new_page ? " target='_blank'" : "")." style=".$style.">".$caption."</a>";
192
  }
193
 
 
 
 
 
 
 
 
 
 
194
  /**
195
  * Adds the poll button to the edit bar for new/edited post/page In TinyMCE >= WordPress 2.5
196
  */
119
  * Instructions page for adding a poll
120
  */
121
  function opinionstage_add_poll_page() {
122
+ opinionstage_add_stylesheet();
123
  ?>
124
+ <div class="opinionstage-wrap">
125
+ <div id="opinionstage-head"></div>
126
+ <div class="section">
127
+ <h2>Actions</h2>
128
+ <ul class="os_links_list">
129
+ <li><?php echo opinionstage_create_link('Create a Social Poll', 'new_poll', ''); ?></li>
130
+ <li><?php echo opinionstage_create_link('Manage Your Polls (Dashboard)', 'dashboard', ''); ?></li>
131
+ </ul>
132
+ <h2>Help</h2>
133
+ <ul class="os_links_list">
134
+ <li><a href="http://www.opinionstage.com/publishers/wordpress?o=wp-v-poll" target="_blank"></a></li>
135
+ <li><a href="http://www.opinionstage.com/contact_requests/new?o=wp-v-poll" target="_blank" ></a></li>
136
+ <li><?php echo opinionstage_create_link('Contact Us for help', 'contact_requests/new', ''); ?></li>
137
+ </ul>
138
+ </div>
139
+ </div>
140
  <?php
141
  }
142
 
165
  <div id="opinionstage-insert-poll-form" style="display:none;">
166
  <div id="content">
167
  <h1><strong>Insert a Social Poll</strong></h1>
168
+ <h3><strong>Enter Poll ID (e.g. 4567):</strong></h3>
169
  <p><input type="text" name="poll-id" id="opinionstage-poll-id" value="" /></p>
170
  <p class="submit">
171
  <input type="button" id="opinionstage-submit" class="button-primary" value="Insert Poll" name="submit" />
172
  </p>
173
+ <p><strong>Haven't created a poll yet?</strong></p>
174
+ <p><?php echo opinionstage_create_link('Create a new poll', 'new_poll', ''); ?></p>
175
+ <p><strong>Don't know the poll ID?</strong></p>
176
+ <?php echo opinionstage_create_link('Find ID of an existing poll (Dashboard)', 'dashboard', ''); ?>
177
+ <p><strong>Need help?</strong></p>
178
+ <p><?php echo opinionstage_create_link('Contact us', 'contact_requests/new', ''); ?></p>
179
  </div>
180
  </div>
181
  <?php
182
  }
183
 
 
 
 
 
 
 
184
  /**
185
  * Utility function to create a link with the correct host and all the required information.
186
  */
193
  return "<a href=\"".$link."\"".($new_page ? " target='_blank'" : "")." style=".$style.">".$caption."</a>";
194
  }
195
 
196
+ /**
197
+ * CSS file loading
198
+ */
199
+ function opinionstage_add_stylesheet() {
200
+ // Respects SSL, Style.css is relative to the current file
201
+ wp_register_style( 'opinionstage-style', plugins_url('style.css', __FILE__) );
202
+ wp_enqueue_style( 'opinionstage-style' );
203
+ }
204
+
205
  /**
206
  * Adds the poll button to the edit bar for new/edited post/page In TinyMCE >= WordPress 2.5
207
  */
opinionstage-polls.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Social Polls by OpinionStage
4
  Plugin URI: http://www.opinionstage.com
5
  Description: Adds a highly engaging social polling system to your blog. You can easily add a social poll to your blog post/page by clicking the social poll icon in the WordPress post/page text editor.
6
- Version: 2.9.0
7
  Author: OpinionStage.com
8
  Author URI: http://www.opinionstage.com
9
  */
@@ -11,7 +11,7 @@ Author URI: http://www.opinionstage.com
11
  /* --- Static initializer for Wordpress hooks --- */
12
 
13
  define('OPINIONSTAGE_SERVER_BASE', "www.opinionstage.com"); /* Don't include the protocol, added dynamically */
14
- define('OPINIONSTAGE_WIDGET_VERSION', '2.9.0');
15
  define('OPINIONSTAGE_WIDGET_PLUGIN_NAME', 'Social Polls by OpinionStage');
16
  define('OPINIONSTAGE_WIDGET_API_KEY', 'wp-v-poll');
17
  define('OPINIONSTAGE_WIDGET_SHORTCODE', 'socialpoll');
3
  Plugin Name: Social Polls by OpinionStage
4
  Plugin URI: http://www.opinionstage.com
5
  Description: Adds a highly engaging social polling system to your blog. You can easily add a social poll to your blog post/page by clicking the social poll icon in the WordPress post/page text editor.
6
+ Version: 4.0.0
7
  Author: OpinionStage.com
8
  Author URI: http://www.opinionstage.com
9
  */
11
  /* --- Static initializer for Wordpress hooks --- */
12
 
13
  define('OPINIONSTAGE_SERVER_BASE', "www.opinionstage.com"); /* Don't include the protocol, added dynamically */
14
+ define('OPINIONSTAGE_WIDGET_VERSION', '4.0.0');
15
  define('OPINIONSTAGE_WIDGET_PLUGIN_NAME', 'Social Polls by OpinionStage');
16
  define('OPINIONSTAGE_WIDGET_API_KEY', 'wp-v-poll');
17
  define('OPINIONSTAGE_WIDGET_SHORTCODE', 'socialpoll');
readme.txt CHANGED
@@ -4,37 +4,40 @@ Donate link:
4
  Tags: poll, polls, polling, vote, voting, debate, survey, social, opinionstage, opinion stage
5
 
6
  Requires at least: 2.8
7
- Tested up to: 3.4.1
8
  Stable tag: trunk
9
 
10
- Add a social polling system to your blog. Opinion Stage connects social networks to polling, providing a rich & engaging polling experience.
11
 
12
  == Description ==
13
 
14
- The Opinion Stage social poll plug-in allows you to easily integrate a social poll in any blog post/page.
15
  <BR>
16
- The social polls are designed to both improve user engagement and to drive additional traffic from social networks to the page in which the poll is embedded.
17
  <BR>
18
- The social poll plug-in is completely free and is easy to install and use.
 
 
 
19
 
20
  = Main Poll Features: =
21
 
22
- * Survey site visitors using their social network identities
 
23
  * View the full poll participant list
24
- * Filter the poll participant list according to vote
25
- * Follow users that participated in the poll
26
- * Get notified about poll votes of users you follow (optionally)
27
  * Filter the poll results by users you follow (e.g Facebook friends)
28
- * Filter the poll results by gender
29
- * Discover what poll participants voted in other polls by visiting their profile
30
  * Get the poll question & poll votes shared in social networks, driving additional traffic to your site
31
- * Custimze the poll's width and the poll's theme
 
32
  * Manage all your polls from one dashboard
33
- * ... And many more features to come!
 
34
 
35
  = About Opinion Stage: =
36
 
37
- Opinion Stage offers web sites a highly engaging social polls & debates solution. For more details on Opinion Stage's polls & debates, visit <a href="http://www.opinionstage.com?o=wp-v-readme" target="_blank">the Opinion Stage site.</a>
38
 
39
  == Installation ==
40
 
@@ -46,23 +49,23 @@ Opinion Stage offers web sites a highly engaging social polls & debates solution
46
 
47
  = What sets Opinion Stage polls apart from other polling solutions? =
48
 
49
- Opinion Stage polls are social polls which means that social network identities are used for polling the participants. This makes the poll more engaging than the typical poll, letting users discover who supports what and how each user voted in other polls. You can also follow users and then filter the poll results by the people you follow. In addition, using social polls improves the distribution of the poll in social networks.
50
 
51
  = Do you require users to identify by logging-in before voting? =
52
 
53
- Yes, we currently support Facebook login, but are working to add additional poll login options such as Twitter.
54
 
55
  = Do you support anonymous voting? =
56
 
57
- Yes, while you do need to login to participate in the poll, you can vote anonymously so that nobody besides yourself knows what you voted in the poll.
58
 
59
  = How do users share the poll & their vote in social networks? =
60
 
61
- Users can either share the poll question from the sharing menu, or share their votes from the Facebook & Twitter sharing buttons that are displayed after voting. We never share anything on the users' behalf.
62
 
63
  = What are the benifits of using social polls? =
64
 
65
- Using social polls improves user engagement and adds additional traffic from social networks.
66
 
67
  = What types of polls do you support? =
68
 
@@ -77,13 +80,12 @@ Yes, we plan to add the option to debate the poll. Users will be able to add a t
77
  Follow these steps:
78
 
79
  1. Create a new poll from <a href="http://www.opinionstage.com?o=wp-v-readme" target="_blank">here</a>
80
- 2. From the poll page, click get code and copy the embed ID
81
- 3. Click on the poll icon in the WordPress text editor to open the poll embed dialog
82
- 4. Paste the ID you copied in the embed dialog
83
 
84
  = What is the embed ID and where can I find it? =
85
 
86
- Each poll has a unique ID which identifies it. The poll ID can be found in the poll embed button on the poll page.
87
 
88
  = Can I embed a poll manually? =
89
 
@@ -91,11 +93,11 @@ Yes, just post the following syntax into any post/page: [socialpoll ID="xyz"], w
91
 
92
  == Screenshots ==
93
 
94
- 1. **Two sided poll: before vote** - Example of a poll with 2 videos, you can filter the poll results by the people you follow or by gender of the poll participants
95
- 2. **Two sided poll: after vote** - After voting in the poll, users are encouraged to share their poll vote in Facebook or Twitter driving additional traffic to the site
96
  3. **Full list of poll voters** - Click 'view all', to view the full list of poll voters and discover who supports what. You can also follow users from this screen
97
- 4. **Profile of poll participant** - click on one of the poll participants to view his/her opinion profile. The profile includes votes in other polls, list of following users and more
98
- 5. **Start a poll form** - Just add a question, add sides & select a topic and you're ready to go. Click the 'show details' for advanced poll options
99
  6. **Insert social poll icon** - From the WordPress editor, click on the social poll icon to add a poll to the post/page
100
 
101
  == Upgrade Notice ==
@@ -103,32 +105,40 @@ Yes, just post the following syntax into any post/page: [socialpoll ID="xyz"], w
103
  N/A
104
 
105
  == Changelog ==
 
 
 
 
 
 
 
 
106
  = Version 2.9.0 =
107
- * Added support for anonymous voting via cookies
108
  = Version 2.8.0 =
109
- * Improved editing process of polls by adding a preview to the editing screen
110
  * Additional layout customizations for polls - hide top bars, add bottom padding
111
  * Polls can now be reset
112
  = Version 2.7.0 =
113
- * Additional lanugages support (German, Italian, Serbian)
114
- * Additional customizations for the vote sharing process
115
  = Version 2.6.0 =
116
- * Additional customizations options to the poll: Define which filters to show, social sharing bar removal
117
  * Hiding vote option can be enabled / disabled by poll creator
118
  = Version 2.5.0 =
119
  * Added support for multiple selection polls
120
  = Version 2.4.0 =
121
- * Better support for hiding user votes
122
  * Improved embed options to support both dynamic and constant width for the polls
123
  * Polls can now be closed from the Opininion-Stage dashboard
124
  = Version 2.3.0 =
125
  * Improved creation flow of polls
126
- * Added basic report per poll in Opininion-Stage dashboard
127
- * Added account report in Opininion-Stage dashboard
128
  = Version 2.2.0 =
129
  * Polls are now localized for Arabic
130
- * Better support for sidebars (300px)
131
- * Supporting longer side texts
132
  = Version 2.1.0 =
133
  * Polls are now displayed properly in mobile environments
134
  * Additional built-in poll themes
4
  Tags: poll, polls, polling, vote, voting, debate, survey, social, opinionstage, opinion stage
5
 
6
  Requires at least: 2.8
7
+ Tested up to: 3.5.1
8
  Stable tag: trunk
9
 
10
+ Add a powerful & easy-to-use social polling & voting solution to your web site.
11
 
12
  == Description ==
13
 
14
+ The Opinion Stage social poll plug-in allows you to easily integrate social polls into your site and Facebook page.
15
  <BR>
 
16
  <BR>
17
+ The social polls are designed to improve user engagement, drive traffic from social networks to the page in which the poll is embedded and much more.
18
+ <BR>
19
+ <BR>
20
+ The social poll plug-in is completely free and is very easy to install and use.
21
 
22
  = Main Poll Features: =
23
 
24
+ * Create, delete or edit your polls at anytime
25
+ * Poll your site visitors using their social network identities or anonymously
26
  * View the full poll participant list
27
+ * Filter the poll participant list according to side votes
28
+ * Follow users that participated in the poll
 
29
  * Filter the poll results by users you follow (e.g Facebook friends)
30
+ * Filter the poll results by demographic filters (e.g. by gender)
 
31
  * Get the poll question & poll votes shared in social networks, driving additional traffic to your site
32
+ * Customize the poll's width and the poll's theme
33
+ * Set the details of the social sharing (e.g. text, image & link displayed in the facebook sharing dialog)
34
  * Manage all your polls from one dashboard
35
+ * Customize the poll to your needs (e.g. show/don't show number of votes, show results before / after voting, order sides by most votes or as configured, etc)
36
+ * ... And much more!
37
 
38
  = About Opinion Stage: =
39
 
40
+ Opinion Stage offers web sites a highly engaging social polling & voting solution. For more details on Opinion Stage's polling solution, visit <a href="http://www.opinionstage.com?o=wp-v-readme" target="_blank">the Opinion Stage site.</a>
41
 
42
  == Installation ==
43
 
49
 
50
  = What sets Opinion Stage polls apart from other polling solutions? =
51
 
52
+ Opinion Stage polls are social polls which means that social network identities are used for polling the participants. This makes the poll more engaging than the typical poll, letting users discover who supports what and how each user voted in other polls. You can also follow users and then filter the poll results by the people you follow. Using social polls improves the distribution of the poll in social networks, allows gathering contact, demographic & social statistics from the poll participants. Lastly, social polls also work very well for elections & competitions.
53
 
54
  = Do you require users to identify by logging-in before voting? =
55
 
56
+ When creating the polls you can determine if a social profile is required, if it is optional or if it is not required at all for voting. Opinion Stage polls currently support Facebook & Twitter login, and will include additional poll login options in the future.
57
 
58
  = Do you support anonymous voting? =
59
 
60
+ When using a social profile to participate in the poll, you can hide your vote so that nobody besides yourself knows what you voted in the poll. In addition, the administator can configure that users can vote anonymously in the poll without requiring a social profile.
61
 
62
  = How do users share the poll & their vote in social networks? =
63
 
64
+ Users can either share the poll question from the social (e.g. Facebook & Twitter) sharing buttons that are displayed on the top of the poll or by sharing the social sharing dialog that is displayed automatically after they vote in the poll. Opinion Stage never shares anything on the users' behalf without getting explicit permission for it.
65
 
66
  = What are the benifits of using social polls? =
67
 
68
+ Using social polls offer the following main benefits: (1) improves user engagement on the site (2) drives traffic from social networks to the site (3) allow you to discover the the person behind the opinion (4) serves as a great tool for running elections & contests (5) allow you to gather contact, social & demographic information from the poll participants
69
 
70
  = What types of polls do you support? =
71
 
80
  Follow these steps:
81
 
82
  1. Create a new poll from <a href="http://www.opinionstage.com?o=wp-v-readme" target="_blank">here</a>
83
+ 2. After the poll was created, from the dashboard, click "Add to Website" link and copy the WordPress poll code ( e.g. [socialpoll id="9543"] )
84
+ 3. Paste the poll code you copied into the blog post/page/section
 
85
 
86
  = What is the embed ID and where can I find it? =
87
 
88
+ Each poll has a unique ID which identifies it. The poll ID can be found in the WordPress code (e.g. if [socialpoll id="9543"] is the WordPress code, 9543 is the poll ID)
89
 
90
  = Can I embed a poll manually? =
91
 
93
 
94
  == Screenshots ==
95
 
96
+ 1. **Multiple-choice poll** - Example of a multiple-choice poll, note that you can view who voted what in the poll and view the poll voters social profile
97
+ 2. **Head-to-head poll** - Example of a head-to-head poll with 2 images. In this example, you can filter the poll results by the people you follow or by the gender of the poll participants
98
  3. **Full list of poll voters** - Click 'view all', to view the full list of poll voters and discover who supports what. You can also follow users from this screen
99
+ 4. **Poll social sharing dialog** - after voting in the poll, the user is offered to share the poll vote in the social networks he uses. When creating a poll, you can set the link, text & image that are shared in social networks.
100
+ 5. **Start a poll form** - Just add a question, add sides and you're ready to go. Optionally set & edit many advanced poll settings to optimize the poll display & funcionality
101
  6. **Insert social poll icon** - From the WordPress editor, click on the social poll icon to add a poll to the post/page
102
 
103
  == Upgrade Notice ==
105
  N/A
106
 
107
  == Changelog ==
108
+ = Version 4.0.0 =
109
+ * UI improvemnts for the polls (filters, border etc)
110
+ = Version 3.1.0 =
111
+ * Poll creator can select number of allowed poll answers
112
+ * FB poll sharing flow optimizations
113
+ * Poll results can be shown from the Opinion-Stage poll dashboard
114
+ = Version 3.0.0 =
115
+ * New hybrid voting method added to the polls, allowing users to vote either via a social profile or completely anonymously
116
  = Version 2.9.0 =
117
+ * Added support for anonymous poll voting
118
  = Version 2.8.0 =
119
+ * Improved editing process of polls by adding a preview to the poll editing screen
120
  * Additional layout customizations for polls - hide top bars, add bottom padding
121
  * Polls can now be reset
122
  = Version 2.7.0 =
123
+ * Additional poll lanugages support (German, Italian, Serbian)
124
+ * Additional poll customizations for the vote sharing process
125
  = Version 2.6.0 =
126
+ * Additional customizations options to the poll: Define which poll filters to show, poll social sharing bar removal
127
  * Hiding vote option can be enabled / disabled by poll creator
128
  = Version 2.5.0 =
129
  * Added support for multiple selection polls
130
  = Version 2.4.0 =
131
+ * Better support for hiding user votes in the poll
132
  * Improved embed options to support both dynamic and constant width for the polls
133
  * Polls can now be closed from the Opininion-Stage dashboard
134
  = Version 2.3.0 =
135
  * Improved creation flow of polls
136
+ * Added basic report per poll in the Opinion Stage polls dashboard
137
+ * Added account report in Opininion-Stage poll dashboard
138
  = Version 2.2.0 =
139
  * Polls are now localized for Arabic
140
+ * Better support for sidebar polls (300px)
141
+ * Supporting longer side texts in polls
142
  = Version 2.1.0 =
143
  * Polls are now displayed properly in mobile environments
144
  * Additional built-in poll themes
screenshot-1.png CHANGED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
Binary file
screenshot-4.png CHANGED
Binary file
screenshot-5.png CHANGED
Binary file
style.css ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #opinionstage-head {
2
+ background: url("images/logo.png") no-repeat 0px 0px;
3
+ height: 56px;
4
+ margin: 0;
5
+ padding: 0;
6
+ text-align: center;
7
+ }
8
+ .opinionstage-wrap {
9
+ margin: 10px auto;
10
+ background-color: #FAFBFC;
11
+ border: 1px solid #D2E0F0;
12
+ }
13
+ .section {
14
+ padding: 15px;
15
+ }
16
+ h2 {
17
+ color: #25264c;
18
+ font-weight: bold;
19
+ font-size: 23px;
20
+ }
21
+ .os_links_list {
22
+ list-style-type: none;
23
+ margin: 0 0 35px 0;
24
+ padding: 0;
25
+ }
26
+ .os_links_list li {
27
+ margin-bottom: 21px;
28
+ }
29
+ .os_links_list li a {
30
+ color: #5db5d4;
31
+ font-size: 17px;
32
+ text-decoration: none;
33
+ }