WP-Polls - Version 2.21

Version Description

Download this release

Release Info

Developer GamerZ
Plugin Icon WP-Polls
Version 2.21
Comparing to
See all releases

Code changes from version 2.20 to 2.21

polls/polls-add.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Polls 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Add Poll |
@@ -95,6 +95,7 @@ if(!empty($_POST['do'])) {
95
  if(empty($text)) {
96
  $text = '<p style="color: green;">'.sprintf(__('Poll \'%s\' Added Successfully.', 'wp-polls'), stripslashes($pollq_question)).' <a href="'.$base_page.'">Manage Polls &raquo;</a></p>';
97
  }
 
98
  break;
99
  }
100
  }
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Polls 2.21 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Add Poll |
95
  if(empty($text)) {
96
  $text = '<p style="color: green;">'.sprintf(__('Poll \'%s\' Added Successfully.', 'wp-polls'), stripslashes($pollq_question)).' <a href="'.$base_page.'">Manage Polls &raquo;</a></p>';
97
  }
98
+ cron_polls_place();
99
  break;
100
  }
101
  }
polls/polls-admin-ajax.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Polls 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Polls AJAX For Admin Backend |
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Polls 2.21 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Polls AJAX For Admin Backend |
polls/polls-admin-js.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Polls 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Polls Admin Javascript File |
@@ -199,4 +199,19 @@ function closing_poll(poll_id, poll_confirm) {
199
  polls_admin.onCompletion = closing_poll_message;
200
  polls_admin.runAJAX();
201
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
202
  }
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Polls 2.21 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Polls Admin Javascript File |
199
  polls_admin.onCompletion = closing_poll_message;
200
  polls_admin.runAJAX();
201
  }
202
+ }
203
+
204
+ // Function: Insert Poll Quick Tag
205
+ function insertPoll(where, myField) {
206
+ var poll_id = prompt("<?php _e('Enter Poll ID', 'wp-polls'); ?>");
207
+ while(isNaN(poll_id)) {
208
+ poll_id = prompt("<?php _e('Error: Poll ID must be numeric', 'wp-polls'); ?>\n\n<?php _e('Please enter Poll ID again', 'wp-polls'); ?>");
209
+ }
210
+ if (poll_id > 0) {
211
+ if(where == 'code') {
212
+ edInsertContent(myField, '[poll=' + poll_id + ']');
213
+ } else {
214
+ return '[poll=' + poll_id + ']';
215
+ }
216
+ }
217
  }
polls/polls-css.css CHANGED
@@ -1,12 +1,12 @@
1
  /*
2
  +----------------------------------------------------------------+
3
  | |
4
- | WordPress 2.0 Plugin: WP-Polls 2.20 |
5
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
6
  | |
7
  | File Written By: |
8
  | - Lester "GaMerZ" Chan |
9
- | - http://www.lesterchan.net |
10
  | |
11
  | File Information: |
12
  | - Polls CSS File |
@@ -16,6 +16,9 @@
16
  */
17
 
18
 
 
 
 
19
  .wp-polls, .wp-polls-form {
20
  /* background-color: #ffffff; */
21
  }
1
  /*
2
  +----------------------------------------------------------------+
3
  | |
4
+ | WordPress 2.0 Plugin: WP-Polls 2.21 |
5
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
6
  | |
7
  | File Written By: |
8
  | - Lester "GaMerZ" Chan |
9
+ | - http://lesterchan.net |
10
  | |
11
  | File Information: |
12
  | - Polls CSS File |
16
  */
17
 
18
 
19
+ .wp-polls-archive {
20
+ /* background-color: #ffffff; */
21
+ }
22
  .wp-polls, .wp-polls-form {
23
  /* background-color: #ffffff; */
24
  }
polls/polls-js.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Polls 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Polls Javascript File |
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Polls 2.21 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Polls Javascript File |
polls/polls-logs.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Polls 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Polls Logs |
@@ -298,7 +298,7 @@ if(!empty($_POST['do'])) {
298
  $pollip_user = stripslashes($poll_ip->pollip_user);
299
  $pollip_ip = $poll_ip->pollip_ip;
300
  $pollip_host = $poll_ip->pollip_host;
301
- $pollip_date = mysql2date(get_option('date_format').' @ '.get_option('time_format'), gmdate('Y-m-d H:i:s', $poll_ip->pollip_timestamp));
302
  if($i%2 == 0) {
303
  $style = 'style=\'background-color: none\'';
304
  } else {
@@ -326,7 +326,7 @@ if(!empty($_POST['do'])) {
326
  $pollip_user = stripslashes($poll_ip->pollip_user);
327
  $pollip_ip = $poll_ip->pollip_ip;
328
  $pollip_host = $poll_ip->pollip_host;
329
- $pollip_date = mysql2date(get_option('date_format').' @ '.get_option('time_format'), gmdate('Y-m-d H:i:s', $poll_ip->pollip_timestamp));
330
  if($pollip_aid != $poll_last_aid) {
331
  if($pollip_aid == 0) {
332
  echo "<tr style='background-color: #b8d4ff'>\n<td colspan=\"4\"><strong>$pollip_answers[$pollip_aid]</strong></td>\n</tr>\n";
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Polls 2.21 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Polls Logs |
298
  $pollip_user = stripslashes($poll_ip->pollip_user);
299
  $pollip_ip = $poll_ip->pollip_ip;
300
  $pollip_host = $poll_ip->pollip_host;
301
+ $pollip_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_ip->pollip_timestamp));
302
  if($i%2 == 0) {
303
  $style = 'style=\'background-color: none\'';
304
  } else {
326
  $pollip_user = stripslashes($poll_ip->pollip_user);
327
  $pollip_ip = $poll_ip->pollip_ip;
328
  $pollip_host = $poll_ip->pollip_host;
329
+ $pollip_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_ip->pollip_timestamp));
330
  if($pollip_aid != $poll_last_aid) {
331
  if($pollip_aid == 0) {
332
  echo "<tr style='background-color: #b8d4ff'>\n<td colspan=\"4\"><strong>$pollip_answers[$pollip_aid]</strong></td>\n</tr>\n";
polls/polls-manager.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Polls 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Manage Your Polls |
@@ -142,6 +142,7 @@ if(!empty($_POST['do'])) {
142
  // Update Lastest Poll ID To Poll Options
143
  $latest_pollid = polls_latest_id();
144
  $update_latestpoll = update_option('poll_latestpoll', $latest_pollid);
 
145
  break;
146
  }
147
  }
@@ -396,7 +397,7 @@ switch($mode) {
396
  <tr style="background-color: #eee;">
397
  <td width="20%" valign="top"><strong><?php _e('Start Date/Time', 'wp-polls'); ?></strong>:</td>
398
  <td width="80%">
399
- <?php echo mysql2date(get_option('date_format').' @ '.get_option('time_format'), gmdate('Y-m-d H:i:s', $poll_timestamp)); ?><br />
400
  <input type="checkbox" name="edit_polltimestamp" id="edit_polltimestamp" value="1" onclick="check_polltimestamp()" />&nbsp;<label for="edit_polltimestamp"><?php _e('Edit Start Date/Time', 'wp-polls'); ?></label><br />
401
  <?php poll_timestamp($poll_timestamp, 'pollq_timestamp', 'none'); ?>
402
  </td>
@@ -408,7 +409,7 @@ switch($mode) {
408
  if(empty($poll_expiry)) {
409
  _e('This Poll Will Not Expire', 'wp-polls');
410
  } else {
411
- echo mysql2date(get_option('date_format').' @ '.get_option('time_format'), gmdate('Y-m-d H:i:s', $poll_expiry));
412
  }
413
  ?>
414
  <br />
@@ -485,7 +486,7 @@ switch($mode) {
485
  foreach($polls as $poll) {
486
  $poll_id = intval($poll->pollq_id);
487
  $poll_question = stripslashes($poll->pollq_question);
488
- $poll_date = mysql2date(get_option('date_format').' @ '.get_option('time_format'), gmdate('Y-m-d H:i:s', $poll->pollq_timestamp));
489
  $poll_totalvotes = intval($poll->pollq_totalvotes);
490
  $poll_totalvoters = intval($poll->pollq_totalvoters);
491
  $poll_active = intval($poll->pollq_active);
@@ -493,7 +494,7 @@ switch($mode) {
493
  if(empty($poll_expiry)) {
494
  $poll_expiry_text = __('No Expiry', 'wp-polls');
495
  } else {
496
- $poll_expiry_text = mysql2date(get_option('date_format').' @ '.get_option('time_format'), gmdate('Y-m-d H:i:s', $poll_expiry));
497
  }
498
  if($i%2 == 0) {
499
  $style = 'style=\'background-color: #eee;\'';
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Polls 2.21 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Manage Your Polls |
142
  // Update Lastest Poll ID To Poll Options
143
  $latest_pollid = polls_latest_id();
144
  $update_latestpoll = update_option('poll_latestpoll', $latest_pollid);
145
+ cron_polls_place();
146
  break;
147
  }
148
  }
397
  <tr style="background-color: #eee;">
398
  <td width="20%" valign="top"><strong><?php _e('Start Date/Time', 'wp-polls'); ?></strong>:</td>
399
  <td width="80%">
400
+ <?php echo mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_timestamp)); ?><br />
401
  <input type="checkbox" name="edit_polltimestamp" id="edit_polltimestamp" value="1" onclick="check_polltimestamp()" />&nbsp;<label for="edit_polltimestamp"><?php _e('Edit Start Date/Time', 'wp-polls'); ?></label><br />
402
  <?php poll_timestamp($poll_timestamp, 'pollq_timestamp', 'none'); ?>
403
  </td>
409
  if(empty($poll_expiry)) {
410
  _e('This Poll Will Not Expire', 'wp-polls');
411
  } else {
412
+ echo mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_expiry));
413
  }
414
  ?>
415
  <br />
486
  foreach($polls as $poll) {
487
  $poll_id = intval($poll->pollq_id);
488
  $poll_question = stripslashes($poll->pollq_question);
489
+ $poll_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll->pollq_timestamp));
490
  $poll_totalvotes = intval($poll->pollq_totalvotes);
491
  $poll_totalvoters = intval($poll->pollq_totalvoters);
492
  $poll_active = intval($poll->pollq_active);
494
  if(empty($poll_expiry)) {
495
  $poll_expiry_text = __('No Expiry', 'wp-polls');
496
  } else {
497
+ $poll_expiry_text = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_expiry));
498
  }
499
  if($i%2 == 0) {
500
  $style = 'style=\'background-color: #eee;\'';
polls/polls-options.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Polls 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Configure Poll Options |
@@ -90,10 +90,7 @@ if($_POST['Submit']) {
90
  if(empty($text)) {
91
  $text = '<font color="red">'.__('No Poll Option Updated', 'wp-polls').'</font>';
92
  }
93
- wp_clear_scheduled_hook('polls_cron');
94
- if (!wp_next_scheduled('polls_cron')) {
95
- wp_schedule_event(time(), 'daily', 'polls_cron');
96
- }
97
  }
98
  ?>
99
  <script type="text/javascript">
@@ -226,6 +223,7 @@ if($_POST['Submit']) {
226
  <select name="poll_ans_sortby" size="1">
227
  <option value="polla_aid"<?php selected('polla_aid', get_option('poll_ans_sortby')); ?>><?php _e('Exact Order', 'wp-polls'); ?></option>
228
  <option value="polla_answers"<?php selected('polla_answers', get_option('poll_ans_sortby')); ?>><?php _e('Alphabetical Order', 'wp-polls'); ?></option>
 
229
  </select>
230
  </td>
231
  </tr>
@@ -250,6 +248,7 @@ if($_POST['Submit']) {
250
  <option value="polla_votes"<?php selected('polla_votes', get_option('poll_ans_result_sortby')); ?>><?php _e('Votes', 'wp-polls'); ?></option>
251
  <option value="polla_aid"<?php selected('polla_aid', get_option('poll_ans_result_sortby')); ?>><?php _e('Exact Order', 'wp-polls'); ?></option>
252
  <option value="polla_answers"<?php selected('polla_answers', get_option('poll_ans_result_sortby')); ?>><?php _e('Alphabetical Order', 'wp-polls'); ?></option>
 
253
  </select>
254
  </td>
255
  </tr>
@@ -364,7 +363,7 @@ if($_POST['Submit']) {
364
  </tr>
365
  <?php if(function_exists('dynamic_sidebar')) { ?>
366
  <tr valign="top">
367
- <th align="left" colspan="2"><em><?php _e('Note: If you chose \'Display Multiple Polls\' for the above option, you need to configure it in Presentation -> Sidebar Widgets -> Poll.', 'wp-polls'); ?></em></th>
368
  </tr>
369
  <?php } ?>
370
  <tr valign="top">
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Polls 2.21 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Configure Poll Options |
90
  if(empty($text)) {
91
  $text = '<font color="red">'.__('No Poll Option Updated', 'wp-polls').'</font>';
92
  }
93
+ cron_polls_place();
 
 
 
94
  }
95
  ?>
96
  <script type="text/javascript">
223
  <select name="poll_ans_sortby" size="1">
224
  <option value="polla_aid"<?php selected('polla_aid', get_option('poll_ans_sortby')); ?>><?php _e('Exact Order', 'wp-polls'); ?></option>
225
  <option value="polla_answers"<?php selected('polla_answers', get_option('poll_ans_sortby')); ?>><?php _e('Alphabetical Order', 'wp-polls'); ?></option>
226
+ <option value="RAND()"<?php selected('RAND()', get_option('poll_ans_sortby')); ?>><?php _e('Random Order', 'wp-polls'); ?></option>
227
  </select>
228
  </td>
229
  </tr>
248
  <option value="polla_votes"<?php selected('polla_votes', get_option('poll_ans_result_sortby')); ?>><?php _e('Votes', 'wp-polls'); ?></option>
249
  <option value="polla_aid"<?php selected('polla_aid', get_option('poll_ans_result_sortby')); ?>><?php _e('Exact Order', 'wp-polls'); ?></option>
250
  <option value="polla_answers"<?php selected('polla_answers', get_option('poll_ans_result_sortby')); ?>><?php _e('Alphabetical Order', 'wp-polls'); ?></option>
251
+ <option value="RAND()"<?php selected('RAND()', get_option('poll_ans_result_sortby')); ?>><?php _e('Random Order', 'wp-polls'); ?></option>
252
  </select>
253
  </td>
254
  </tr>
363
  </tr>
364
  <?php if(function_exists('dynamic_sidebar')) { ?>
365
  <tr valign="top">
366
+ <th align="left" colspan="2"><em><?php _e('Note: If you chose \'Display Multiple Polls\' for the above option, you need to configure it in Presentation -> Widgets -> Poll.', 'wp-polls'); ?></em></th>
367
  </tr>
368
  <?php } ?>
369
  <tr valign="top">
polls/polls-templates.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Polls 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Configure Poll Templates |
@@ -277,7 +277,7 @@ if($_POST['Submit']) {
277
  - %POLL_TOTALVOTES%<br />
278
  - %POLL_TOTALVOTERS%<br />
279
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
280
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('voteheader');" class="button" />
281
  </td>
282
  <td align="left"><textarea cols="80" rows="12" id="poll_template_voteheader" name="poll_template_voteheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_voteheader'))); ?></textarea></td>
283
  </tr>
@@ -290,7 +290,7 @@ if($_POST['Submit']) {
290
  - %POLL_ANSWER%<br />
291
  - %POLL_ANSWER_VOTES%<br />
292
  - %POLL_CHECKBOX_RADIO%<br /><br />
293
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('votebody');" class="button" />
294
  </td>
295
  <td align="left"><textarea cols="80" rows="12" id="poll_template_votebody" name="poll_template_votebody"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_votebody'))); ?></textarea></td>
296
  </tr>
@@ -301,7 +301,7 @@ if($_POST['Submit']) {
301
  - %POLL_ID%<br />
302
  - %POLL_RESULT_URL%<br />
303
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
304
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('votefooter');" class="button" />
305
  </td>
306
  <td align="left"><textarea cols="80" rows="12" id="poll_template_votefooter" name="poll_template_votefooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_votefooter'))); ?></textarea></td>
307
  </tr>
@@ -321,7 +321,7 @@ if($_POST['Submit']) {
321
  - %POLL_TOTALVOTES%<br />
322
  - %POLL_TOTALVOTERS%<br />
323
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
324
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('resultheader');" class="button" />
325
  </td>
326
  <td align="left"><textarea cols="80" rows="12" id="poll_template_resultheader" name="poll_template_resultheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultheader'))); ?></textarea></td>
327
  </tr>
@@ -335,7 +335,7 @@ if($_POST['Submit']) {
335
  - %POLL_ANSWER_VOTES%<br />
336
  - %POLL_ANSWER_PERCENTAGE%<br />
337
  - %POLL_ANSWER_IMAGEWIDTH%<br /><br />
338
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('resultbody');" class="button" />
339
  </td>
340
  <td align="left"><textarea cols="80" rows="12" id="poll_template_resultbody" name="poll_template_resultbody"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultbody'))); ?></textarea></td>
341
  </tr>
@@ -349,7 +349,7 @@ if($_POST['Submit']) {
349
  - %POLL_ANSWER_VOTES%<br />
350
  - %POLL_ANSWER_PERCENTAGE%<br />
351
  - %POLL_ANSWER_IMAGEWIDTH%<br /><br />
352
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('resultbody2');" class="button" />
353
  </td>
354
  <td align="left"><textarea cols="80" rows="12" id="poll_template_resultbody2" name="poll_template_resultbody2"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultbody2'))); ?></textarea></td>
355
  </tr>
@@ -369,7 +369,7 @@ if($_POST['Submit']) {
369
  - %POLL_LEAST_VOTES%<br />
370
  - %POLL_LEAST_PERCENTAGE%<br />
371
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
372
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('resultfooter');" class="button" />
373
  </td>
374
  <td align="left"><textarea cols="80" rows="12" id="poll_template_resultfooter" name="poll_template_resultfooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultfooter'))); ?></textarea></td>
375
  </tr>
@@ -389,7 +389,7 @@ if($_POST['Submit']) {
389
  - %POLL_LEAST_VOTES%<br />
390
  - %POLL_LEAST_PERCENTAGE%<br />
391
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
392
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('resultfooter2');" class="button" />
393
  </td>
394
  <td align="left"><textarea cols="80" rows="12" id="poll_template_resultfooter2" name="poll_template_resultfooter2"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultfooter2'))); ?></textarea></td>
395
  </tr>
@@ -403,7 +403,7 @@ if($_POST['Submit']) {
403
  <strong><?php _e('Poll Archive Link', 'wp-polls'); ?></strong><br /><?php _e('Template For Displaying Poll Archive Link', 'wp-polls'); ?><br /><br />
404
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
405
  - %POLL_ARCHIVE_URL%<br /><br />
406
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('pollarchivelink');" class="button" />
407
  </td>
408
  <td align="left"><textarea cols="80" rows="12" id="poll_template_pollarchivelink" name="poll_template_pollarchivelink"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivelink'))); ?></textarea></td>
409
  </tr>
@@ -412,7 +412,7 @@ if($_POST['Submit']) {
412
  <strong><?php _e('Individual Poll Header', 'wp-polls'); ?></strong><br /><?php _e('Displayed Before Each Poll In The Poll Archive', 'wp-polls'); ?><br /><br />
413
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
414
  - <?php _e('N/A', 'wp-polls'); ?><br /><br />
415
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('pollarchiveheader');" class="button" />
416
  </td>
417
  <td align="left"><textarea cols="80" rows="12" id="poll_template_pollarchiveheader" name="poll_template_pollarchiveheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchiveheader'))); ?></textarea></td>
418
  </tr>
@@ -431,7 +431,7 @@ if($_POST['Submit']) {
431
  - %POLL_LEAST_VOTES%<br />
432
  - %POLL_LEAST_PERCENTAGE%<br />
433
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
434
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('pollarchivefooter');" class="button" />
435
  </td>
436
  <td align="left"><textarea cols="80" rows="12" id="poll_template_pollarchivefooter" name="poll_template_pollarchivefooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivefooter'))); ?></textarea></td>
437
  </tr>
@@ -445,7 +445,7 @@ if($_POST['Submit']) {
445
  <strong><?php _e('Poll Disabled', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The Poll Is Disabled', 'wp-polls'); ?><br /><br />
446
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
447
  - <?php _e('N/A', 'wp-polls'); ?><br /><br />
448
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('disable');" class="button" />
449
  </td>
450
  <td align="left"><textarea cols="80" rows="12" id="poll_template_disable" name="poll_template_disable"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_disable'))); ?></textarea></td>
451
  </tr>
@@ -454,7 +454,7 @@ if($_POST['Submit']) {
454
  <strong><?php _e('Poll Error', 'wp-polls'); ?></strong><br /><?php _e('Displayed When An Error Has Occured While Processing The Poll', 'wp-polls'); ?><br /><br />
455
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
456
  - <?php _e('N/A', 'wp-polls'); ?><br /><br />
457
- <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="javascript: poll_default_templates('error');" class="button" />
458
  </td>
459
  <td align="left"><textarea cols="80" rows="12" id="poll_template_error" name="poll_template_error"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_error'))); ?></textarea></td>
460
  </tr>
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Polls 2.21 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Configure Poll Templates |
277
  - %POLL_TOTALVOTES%<br />
278
  - %POLL_TOTALVOTERS%<br />
279
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
280
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('voteheader');" class="button" />
281
  </td>
282
  <td align="left"><textarea cols="80" rows="12" id="poll_template_voteheader" name="poll_template_voteheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_voteheader'))); ?></textarea></td>
283
  </tr>
290
  - %POLL_ANSWER%<br />
291
  - %POLL_ANSWER_VOTES%<br />
292
  - %POLL_CHECKBOX_RADIO%<br /><br />
293
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('votebody');" class="button" />
294
  </td>
295
  <td align="left"><textarea cols="80" rows="12" id="poll_template_votebody" name="poll_template_votebody"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_votebody'))); ?></textarea></td>
296
  </tr>
301
  - %POLL_ID%<br />
302
  - %POLL_RESULT_URL%<br />
303
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
304
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('votefooter');" class="button" />
305
  </td>
306
  <td align="left"><textarea cols="80" rows="12" id="poll_template_votefooter" name="poll_template_votefooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_votefooter'))); ?></textarea></td>
307
  </tr>
321
  - %POLL_TOTALVOTES%<br />
322
  - %POLL_TOTALVOTERS%<br />
323
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
324
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultheader');" class="button" />
325
  </td>
326
  <td align="left"><textarea cols="80" rows="12" id="poll_template_resultheader" name="poll_template_resultheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultheader'))); ?></textarea></td>
327
  </tr>
335
  - %POLL_ANSWER_VOTES%<br />
336
  - %POLL_ANSWER_PERCENTAGE%<br />
337
  - %POLL_ANSWER_IMAGEWIDTH%<br /><br />
338
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultbody');" class="button" />
339
  </td>
340
  <td align="left"><textarea cols="80" rows="12" id="poll_template_resultbody" name="poll_template_resultbody"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultbody'))); ?></textarea></td>
341
  </tr>
349
  - %POLL_ANSWER_VOTES%<br />
350
  - %POLL_ANSWER_PERCENTAGE%<br />
351
  - %POLL_ANSWER_IMAGEWIDTH%<br /><br />
352
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultbody2');" class="button" />
353
  </td>
354
  <td align="left"><textarea cols="80" rows="12" id="poll_template_resultbody2" name="poll_template_resultbody2"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultbody2'))); ?></textarea></td>
355
  </tr>
369
  - %POLL_LEAST_VOTES%<br />
370
  - %POLL_LEAST_PERCENTAGE%<br />
371
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
372
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultfooter');" class="button" />
373
  </td>
374
  <td align="left"><textarea cols="80" rows="12" id="poll_template_resultfooter" name="poll_template_resultfooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultfooter'))); ?></textarea></td>
375
  </tr>
389
  - %POLL_LEAST_VOTES%<br />
390
  - %POLL_LEAST_PERCENTAGE%<br />
391
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
392
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultfooter2');" class="button" />
393
  </td>
394
  <td align="left"><textarea cols="80" rows="12" id="poll_template_resultfooter2" name="poll_template_resultfooter2"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultfooter2'))); ?></textarea></td>
395
  </tr>
403
  <strong><?php _e('Poll Archive Link', 'wp-polls'); ?></strong><br /><?php _e('Template For Displaying Poll Archive Link', 'wp-polls'); ?><br /><br />
404
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
405
  - %POLL_ARCHIVE_URL%<br /><br />
406
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivelink');" class="button" />
407
  </td>
408
  <td align="left"><textarea cols="80" rows="12" id="poll_template_pollarchivelink" name="poll_template_pollarchivelink"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivelink'))); ?></textarea></td>
409
  </tr>
412
  <strong><?php _e('Individual Poll Header', 'wp-polls'); ?></strong><br /><?php _e('Displayed Before Each Poll In The Poll Archive', 'wp-polls'); ?><br /><br />
413
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
414
  - <?php _e('N/A', 'wp-polls'); ?><br /><br />
415
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchiveheader');" class="button" />
416
  </td>
417
  <td align="left"><textarea cols="80" rows="12" id="poll_template_pollarchiveheader" name="poll_template_pollarchiveheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchiveheader'))); ?></textarea></td>
418
  </tr>
431
  - %POLL_LEAST_VOTES%<br />
432
  - %POLL_LEAST_PERCENTAGE%<br />
433
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
434
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivefooter');" class="button" />
435
  </td>
436
  <td align="left"><textarea cols="80" rows="12" id="poll_template_pollarchivefooter" name="poll_template_pollarchivefooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivefooter'))); ?></textarea></td>
437
  </tr>
445
  <strong><?php _e('Poll Disabled', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The Poll Is Disabled', 'wp-polls'); ?><br /><br />
446
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
447
  - <?php _e('N/A', 'wp-polls'); ?><br /><br />
448
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('disable');" class="button" />
449
  </td>
450
  <td align="left"><textarea cols="80" rows="12" id="poll_template_disable" name="poll_template_disable"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_disable'))); ?></textarea></td>
451
  </tr>
454
  <strong><?php _e('Poll Error', 'wp-polls'); ?></strong><br /><?php _e('Displayed When An Error Has Occured While Processing The Poll', 'wp-polls'); ?><br /><br />
455
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
456
  - <?php _e('N/A', 'wp-polls'); ?><br /><br />
457
+ <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('error');" class="button" />
458
  </td>
459
  <td align="left"><textarea cols="80" rows="12" id="poll_template_error" name="poll_template_error"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_error'))); ?></textarea></td>
460
  </tr>
polls/polls-uninstall.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Polls 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Uninstall WP-Polls |
@@ -28,12 +28,8 @@ $base_name = plugin_basename('polls/polls-manager.php');
28
  $base_page = 'admin.php?page='.$base_name;
29
  $mode = trim($_GET['mode']);
30
  $polls_tables = array($wpdb->pollsq, $wpdb->pollsa, $wpdb->pollsip);
31
- $polls_settings = array('poll_template_voteheader', 'poll_template_votebody', 'poll_template_votefooter', 'poll_template_resultheader',
32
- 'poll_template_resultbody', 'poll_template_resultbody2', 'poll_template_resultfooter', 'poll_template_resultfooter2',
33
- 'poll_template_disable', 'poll_template_error', 'poll_currentpoll', 'poll_latestpoll',
34
- 'poll_archive_perpage', 'poll_ans_sortby', 'poll_ans_sortorder', 'poll_ans_result_sortby',
35
- 'poll_ans_result_sortorder', 'poll_logging_method', 'poll_allowtovote', 'poll_archive_show',
36
- 'poll_archive_url', 'poll_bar', 'poll_close', 'poll_ajax_style', 'poll_template_pollarchivelink', 'widget_polls', 'poll_archive_displaypoll', 'poll_archive_pollarchiveheader', 'poll_archive_pollarchivefooter');
37
 
38
  ### Form Processing
39
  if(!empty($_POST['do'])) {
@@ -77,7 +73,7 @@ if(!empty($_POST['do'])) {
77
  switch($mode) {
78
  // Deactivating WP-Polls (By: Philippe Corbes)
79
  case 'end-UNINSTALL':
80
- $deactivate_url = "plugins.php?action=deactivate&amp;plugin=polls/polls.php";
81
  if(function_exists('wp_nonce_url')) {
82
  $deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_polls/polls.php');
83
  }
@@ -98,7 +94,7 @@ switch($mode) {
98
  </p>
99
  <p style="text-align: left; color: red">
100
  <strong><?php _e('WARNING:', 'wp-polls'); ?></strong><br />
101
- <?php _e('Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.', 'wp-polls') ?>
102
  </p>
103
  <p style="text-align: left; color: red">
104
  <strong><?php _e('The following WordPress Options/Tables will be DELETED:', 'wp-polls'); ?></strong><br />
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Polls 2.21 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - Uninstall WP-Polls |
28
  $base_page = 'admin.php?page='.$base_name;
29
  $mode = trim($_GET['mode']);
30
  $polls_tables = array($wpdb->pollsq, $wpdb->pollsa, $wpdb->pollsip);
31
+ $polls_settings = array('poll_template_voteheader', 'poll_template_votebody', 'poll_template_votefooter', 'poll_template_resultheader', 'poll_template_resultbody', 'poll_template_resultbody2', 'poll_template_resultfooter', 'poll_template_resultfooter2', 'poll_template_disable', 'poll_template_error', 'poll_currentpoll', 'poll_latestpoll', 'poll_archive_perpage', 'poll_ans_sortby', 'poll_ans_sortorder', 'poll_ans_result_sortby', 'poll_ans_result_sortorder', 'poll_logging_method', 'poll_allowtovote', 'poll_archive_show', 'poll_archive_url', 'poll_bar', 'poll_close', 'poll_ajax_style', 'poll_template_pollarchivelink', 'widget_polls', 'poll_archive_displaypoll', 'poll_template_pollarchiveheader', 'poll_template_pollarchivefooter');
32
+
 
 
 
 
33
 
34
  ### Form Processing
35
  if(!empty($_POST['do'])) {
73
  switch($mode) {
74
  // Deactivating WP-Polls (By: Philippe Corbes)
75
  case 'end-UNINSTALL':
76
+ $deactivate_url = 'plugins.php?action=deactivate&amp;plugin=polls/polls.php';
77
  if(function_exists('wp_nonce_url')) {
78
  $deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_polls/polls.php');
79
  }
94
  </p>
95
  <p style="text-align: left; color: red">
96
  <strong><?php _e('WARNING:', 'wp-polls'); ?></strong><br />
97
+ <?php _e('Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.', 'wp-polls'); ?>
98
  </p>
99
  <p style="text-align: left; color: red">
100
  <strong><?php _e('The following WordPress Options/Tables will be DELETED:', 'wp-polls'); ?></strong><br />
polls/polls-usage.php CHANGED
@@ -2,12 +2,12 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.1 Plugin: WP-Polls 2.20 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
- | - http://www.lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - How To Use WP-Polls |
@@ -23,13 +23,13 @@ if(!current_user_can('manage_polls')) {
23
  }
24
  ?>
25
  <div class="wrap">
26
- <h2><?php _e("General Usage (Without Widget)", 'wp-polls'); ?></h2>
27
  <ol>
28
  <li>
29
- <?php _e("Open ", 'wp-polls'); ?><b>wp-content/themes/&lt;<?php _e("YOUR THEME NAME", 'wp-polls'); ?>&gt;/sidebar.php</b>
30
  </li>
31
  <li>
32
- <?php _e("Add:", 'wp-polls'); ?>
33
  <blockquote>
34
  <pre class="wp-polls-usage-pre">&lt;?php if (function_exists('vote_poll') &amp;&amp; !in_pollarchive()): ?&gt;
35
  &lt;li&gt;
@@ -41,85 +41,85 @@ if(!current_user_can('manage_polls')) {
41
  &lt;/li&gt;
42
  &lt;?php endif; ?&gt; </pre>
43
  </blockquote>
44
- <?php _e("To show specific poll, use :", 'wp-polls'); ?>
45
- <blockquote><pre class="wp-polls-usage-pre">&lt;?php get_poll(<b>2</b>);?&gt;</pre></blockquote>
46
- <?php _e("where <b>2</b> is your poll id.", 'wp-polls'); ?>
47
- <?php _e("To embed a specific poll in your post, use :", 'wp-polls'); ?>
48
- <blockquote><pre class="wp-polls-usage-pre">[poll=<b>2</b>]</pre></blockquote>
49
- <?php _e("where <b>2</b> is your poll id.", 'wp-polls'); ?>
50
  </li>
51
  <li>
52
- <?php _e("Scroll down for instructions on how to create <b>Polls Archive</b>.", 'wp-polls'); ?>
53
  </li>
54
  </ol>
55
  </div>
56
  <div class="wrap">
57
- <h2><?php _e("General Usage (With Widget)", 'wp-polls'); ?></h2>
58
  <ol>
59
  <li>
60
- <?php _e("<b>Activate</b> WP-Polls Widget Plugin", 'wp-polls'); ?>
61
  </li>
62
  <li>
63
- <?php _e("Go to 'WP-Admin -> Presentation -> Sidebar Widgets'", 'wp-polls'); ?>
64
  </li>
65
  <li>
66
- <?php _e("<b>Drag</b> the Polls Widget to your sidebar", 'wp-polls'); ?>
67
  </li>
68
  <li>
69
- <?php _e("You can <b>configure</b> the Polls Widget by clicking on the configure icon", 'wp-polls'); ?>
70
  </li>
71
  <li>
72
- <?php _e("Click 'Save changes'", 'wp-polls'); ?>
73
  </li>
74
  <li>
75
- <?php _e(" down for instructions on how to create a <b>Polls Archive</b>.", 'wp-polls'); ?>
76
  </li>
77
  </ol>
78
  </div>
79
  <div class="wrap">
80
- <h2><?php _e("Polls Archive", 'wp-polls'); ?></h2>
81
  <ol>
82
  <li>
83
- <?php _e("Go to 'WP-Admin -> Write -> Write Page'", 'wp-polls'); ?>
84
  </li>
85
  <li>
86
- <?php _e("Type any title you like in the post's title area", 'wp-polls'); ?>
87
  </li>
88
  <li>
89
- <?php _e("Type '<b>[page_polls]</b>' in the post's content area (without the quotes)", 'wp-polls'); ?>
90
  </li>
91
  <li>
92
- <?php _e("Type '<b>pollsarchive</b>' in the post's slug area (without the quotes)", 'wp-polls'); ?>
93
  </li>
94
  <li>
95
- <?php _e("Click 'Publish'", 'wp-polls'); ?>
96
  </li>
97
  <li>
98
- <?php _e("If you <b>ARE NOT</b> using nice permalinks, you need to go to 'WP-Admin -> Polls -> Poll Option' and under '<b>Poll Archive -> Polls Archive URL</b>', you need to fill in the URL to the Polls Archive Page you created above.", 'wp-polls'); ?>
99
  </li>
100
  </ol>
101
  </div>
102
  <div class="wrap">
103
  <h2><?php _e('Polls Stats', 'wp-polls'); ?></h2>
104
- <h3><?php _e("To Display Total Polls", 'wp-polls'); ?></h3>
105
  <blockquote>
106
  <pre class="wp-polls-usage-pre">&lt;?php if (function_exists('get_pollquestions')): ?&gt;
107
  &nbsp;&nbsp;&nbsp;&lt;?php get_pollquestions(); ?&gt;
108
  &lt;?php endif; ?&gt; </pre>
109
  </blockquote>
110
- <h3><?php _e("To Display Total Poll Answers", 'wp-polls'); ?></h3>
111
  <blockquote>
112
  <pre class="wp-polls-usage-pre">&lt;?php if (function_exists('get_pollanswers')): ?&gt;
113
  &nbsp;&nbsp;&nbsp;&lt;?php get_pollanswers(); ?&gt;
114
  &lt;?php endif; ?&gt; </pre>
115
  </blockquote>
116
- <h3><?php _e("To Display Total Poll Votes", 'wp-polls'); ?></h3>
117
  <blockquote>
118
  <pre class="wp-polls-usage-pre">&lt;?php if (function_exists('get_pollvotes')): ?&gt;
119
  &nbsp;&nbsp;&nbsp;&lt;?php get_pollvotes(); ?&gt;
120
  &lt;?php endif; ?&gt; </pre>
121
  </blockquote>
122
- <h3><?php _e("To Display Total Poll Voters", 'wp-polls'); ?></h3>
123
  <blockquote>
124
  <pre class="wp-polls-usage-pre">&lt;?php if (function_exists('get_pollvoters')): ?&gt;
125
  &nbsp;&nbsp;&nbsp;&lt;?php get_pollvoters(); ?&gt;
@@ -127,22 +127,22 @@ if(!current_user_can('manage_polls')) {
127
  </blockquote>
128
  </div>
129
  <div class="wrap">
130
- <h2><?php _e("Note", 'wp-polls'); ?></h2>
131
  <ul>
132
  <li>
133
- <?php _e("In IE, some of the poll's text may appear jagged (this is normal in IE). To solve this issue,", 'wp-polls'); ?>
134
  <ol>
135
  <li>
136
- <?php _e("Open <b>poll-css.css</b>", 'wp-polls'); ?>
137
  </li>
138
  <li>
139
- <?php _e("Find:", 'wp-polls'); ?>
140
  <blockquote><pre class="wp-polls-usage-pre">/* background-color: #ffffff; */</pre></blockquote>
141
  </li>
142
  <li>
143
- <?php _e("Replace:", 'wp-polls'); ?>
144
  <blockquote><pre class="wp-polls-usage-pre">background-color: #ffffff;</pre></blockquote>
145
- <?php _e("Where <b>#ffffff</b> should be your background color for the poll.", 'wp-polls'); ?>
146
  </li>
147
  </ol>
148
  </li>
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.1 Plugin: WP-Polls 2.21 |
6
  | Copyright (c) 2007 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
9
  | - Lester "GaMerZ" Chan |
10
+ | - http://lesterchan.net |
11
  | |
12
  | File Information: |
13
  | - How To Use WP-Polls |
23
  }
24
  ?>
25
  <div class="wrap">
26
+ <h2><?php _e('General Usage (Without Widget)', 'wp-polls'); ?></h2>
27
  <ol>
28
  <li>
29
+ <?php _e('Open ', 'wp-polls'); ?><strong>wp-content/themes/&lt;<?php _e('YOUR THEME NAME', 'wp-polls'); ?>&gt;/sidebar.php</strong>
30
  </li>
31
  <li>
32
+ <?php _e('Add:', 'wp-polls'); ?>
33
  <blockquote>
34
  <pre class="wp-polls-usage-pre">&lt;?php if (function_exists('vote_poll') &amp;&amp; !in_pollarchive()): ?&gt;
35
  &lt;li&gt;
41
  &lt;/li&gt;
42
  &lt;?php endif; ?&gt; </pre>
43
  </blockquote>
44
+ <?php _e('To show specific poll, use :', 'wp-polls'); ?>
45
+ <blockquote><pre class="wp-polls-usage-pre">&lt;?php get_poll(<strong>2</strong>);?&gt;</pre></blockquote>
46
+ <?php _e('where <strong>2</strong> is your poll id.', 'wp-polls'); ?>
47
+ <?php _e('To embed a specific poll in your post, use :', 'wp-polls'); ?>
48
+ <blockquote><pre class="wp-polls-usage-pre">[poll=<strong>2</strong>]</pre></blockquote>
49
+ <?php _e('where <strong>2</strong> is your poll id.', 'wp-polls'); ?>
50
  </li>
51
  <li>
52
+ <?php _e('Scroll down for instructions on how to create <strong>Polls Archive</strong>.', 'wp-polls'); ?>
53
  </li>
54
  </ol>
55
  </div>
56
  <div class="wrap">
57
+ <h2><?php _e('General Usage (With Widget)', 'wp-polls'); ?></h2>
58
  <ol>
59
  <li>
60
+ <?php _e('<strong>Activate</strong> WP-Polls Widget Plugin', 'wp-polls'); ?>
61
  </li>
62
  <li>
63
+ <?php _e('Go to \'WP-Admin -> Presentation -> Sidebar Widgets\'', 'wp-polls'); ?>
64
  </li>
65
  <li>
66
+ <?php _e('<strong>Drag</strong> the Polls Widget to your sidebar', 'wp-polls'); ?>
67
  </li>
68
  <li>
69
+ <?php _e('You can <strong>configure</strong> the Polls Widget by clicking on the configure icon', 'wp-polls'); ?>
70
  </li>
71
  <li>
72
+ <?php _e('Click \'Save changes\'', 'wp-polls'); ?>
73
  </li>
74
  <li>
75
+ <?php _e(' down for instructions on how to create a <strong>Polls Archive</strong>.', 'wp-polls'); ?>
76
  </li>
77
  </ol>
78
  </div>
79
  <div class="wrap">
80
+ <h2><?php _e('Polls Archive', 'wp-polls'); ?></h2>
81
  <ol>
82
  <li>
83
+ <?php _e('Go to \'WP-Admin -> Write -> Write Page\'', 'wp-polls'); ?>
84
  </li>
85
  <li>
86
+ <?php _e('Type any title you like in the post\'s title area', 'wp-polls'); ?>
87
  </li>
88
  <li>
89
+ <?php printf(__('Type \'<strong>%s</strong>\' in the post\'s content area (without the quotes)', 'wp-polls'), '[page_polls]'); ?>
90
  </li>
91
  <li>
92
+ <?php _e('Type \'<strong>pollsarchive</strong>\' in the post\'s slug area (without the quotes)', 'wp-polls'); ?>
93
  </li>
94
  <li>
95
+ <?php _e('Click \'Publish\'', 'wp-polls'); ?>
96
  </li>
97
  <li>
98
+ <?php _e('If you <strong>ARE NOT</strong> using nice permalinks, you need to go to \'WP-Admin -> Polls -> Poll Option\' and under \'<strong>Poll Archive -> Polls Archive URL</strong>\', you need to fill in the URL to the Polls Archive Page you created above.', 'wp-polls'); ?>
99
  </li>
100
  </ol>
101
  </div>
102
  <div class="wrap">
103
  <h2><?php _e('Polls Stats', 'wp-polls'); ?></h2>
104
+ <h3><?php _e('To Display Total Polls', 'wp-polls'); ?></h3>
105
  <blockquote>
106
  <pre class="wp-polls-usage-pre">&lt;?php if (function_exists('get_pollquestions')): ?&gt;
107
  &nbsp;&nbsp;&nbsp;&lt;?php get_pollquestions(); ?&gt;
108
  &lt;?php endif; ?&gt; </pre>
109
  </blockquote>
110
+ <h3><?php _e('To Display Total Poll Answers', 'wp-polls'); ?></h3>
111
  <blockquote>
112
  <pre class="wp-polls-usage-pre">&lt;?php if (function_exists('get_pollanswers')): ?&gt;
113
  &nbsp;&nbsp;&nbsp;&lt;?php get_pollanswers(); ?&gt;
114
  &lt;?php endif; ?&gt; </pre>
115
  </blockquote>
116
+ <h3><?php _e('To Display Total Poll Votes', 'wp-polls'); ?></h3>
117
  <blockquote>
118
  <pre class="wp-polls-usage-pre">&lt;?php if (function_exists('get_pollvotes')): ?&gt;
119
  &nbsp;&nbsp;&nbsp;&lt;?php get_pollvotes(); ?&gt;
120
  &lt;?php endif; ?&gt; </pre>
121
  </blockquote>
122
+ <h3><?php _e('To Display Total Poll Voters', 'wp-polls'); ?></h3>
123
  <blockquote>
124
  <pre class="wp-polls-usage-pre">&lt;?php if (function_exists('get_pollvoters')): ?&gt;
125
  &nbsp;&nbsp;&nbsp;&lt;?php get_pollvoters(); ?&gt;
127
  </blockquote>
128
  </div>
129
  <div class="wrap">
130
+ <h2><?php _e('Note', 'wp-polls'); ?></h2>
131
  <ul>
132
  <li>
133
+ <?php _e('In IE, some of the poll\'s text may appear jagged (this is normal in IE). To solve this issue,', 'wp-polls'); ?>
134
  <ol>
135
  <li>
136
+ <?php _e('Open <strong>poll-css.css</strong>', 'wp-polls'); ?>
137
  </li>
138
  <li>
139
+ <?php _e('Find:', 'wp-polls'); ?>
140
  <blockquote><pre class="wp-polls-usage-pre">/* background-color: #ffffff; */</pre></blockquote>
141
  </li>
142
  <li>
143
+ <?php _e('Replace:', 'wp-polls'); ?>
144
  <blockquote><pre class="wp-polls-usage-pre">background-color: #ffffff;</pre></blockquote>
145
+ <?php _e('Where <strong>#ffffff</strong> should be your background color for the poll.', 'wp-polls'); ?>
146
  </li>
147
  </ol>
148
  </li>
polls/polls-widget.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: WP-Polls Widget
4
- Plugin URI: http://www.lesterchan.net/portfolio/programming.php
5
  Description: Adds a Poll Widget to display single or multiple polls from WP-Polls Plugin. You will need to activate WP-Polls first.
6
- Version: 2.20
7
  Author: Lester 'GaMerZ' Chan
8
- Author URI: http://www.lesterchan.net
9
  */
10
 
11
 
@@ -66,7 +66,7 @@ function widget_polls_init() {
66
  if ($_POST['polls-submit']) {
67
  $poll_currentpoll = intval($_POST['poll_currentpoll']);
68
  $poll_archive_show = intval($_POST['poll_archive_show']);
69
- $options['title'] = strip_tags(stripslashes($_POST['polls-title']));
70
  if(is_array($_POST['poll_multiplepolls'])) {
71
  $options['multiple_polls'] = implode(',', $_POST['poll_multiplepolls']);
72
  } else {
@@ -93,8 +93,8 @@ function widget_polls_init() {
93
  </script>
94
  <?php
95
  echo '<p style="text-align: left;"><label for="polls-title">';
96
- _e('Title');
97
- echo ': </label><input type="text" id="polls-title" name="polls-title" value="'.htmlspecialchars($options['title']).'" />'."\n";
98
  echo '<p style="text-align: left;"><label for="polls-displayarchive">';
99
  _e('Display Polls Archive Link Below Poll?', 'wp-polls');
100
  echo ' </label>'."\n";
@@ -102,12 +102,12 @@ function widget_polls_init() {
102
  echo '<option value="0"';
103
  selected('0', get_option('poll_archive_show'));
104
  echo '>';
105
- _e('No');
106
  echo '</option>'."\n";
107
  echo '<option value="1"';
108
  selected('1', get_option('poll_archive_show'));
109
  echo '>';
110
- _e('Yes');
111
  echo '</option>'."\n";
112
  echo '</select></p>'."\n";
113
  echo '<p style="text-align: left;"><label for="poll_currentpoll">';
1
  <?php
2
  /*
3
  Plugin Name: WP-Polls Widget
4
+ Plugin URI: http://lesterchan.net/portfolio/programming.php
5
  Description: Adds a Poll Widget to display single or multiple polls from WP-Polls Plugin. You will need to activate WP-Polls first.
6
+ Version: 2.21
7
  Author: Lester 'GaMerZ' Chan
8
+ Author URI: http://lesterchan.net
9
  */
10
 
11
 
66
  if ($_POST['polls-submit']) {
67
  $poll_currentpoll = intval($_POST['poll_currentpoll']);
68
  $poll_archive_show = intval($_POST['poll_archive_show']);
69
+ $options['title'] = strip_tags(addslashes($_POST['polls-title']));
70
  if(is_array($_POST['poll_multiplepolls'])) {
71
  $options['multiple_polls'] = implode(',', $_POST['poll_multiplepolls']);
72
  } else {
93
  </script>
94
  <?php
95
  echo '<p style="text-align: left;"><label for="polls-title">';
96
+ _e('Title', 'wp-polls');
97
+ echo ': </label><input type="text" id="polls-title" name="polls-title" value="'.htmlspecialchars(stripslashes($options['title'])).'" /></p>'."\n";
98
  echo '<p style="text-align: left;"><label for="polls-displayarchive">';
99
  _e('Display Polls Archive Link Below Poll?', 'wp-polls');
100
  echo ' </label>'."\n";
102
  echo '<option value="0"';
103
  selected('0', get_option('poll_archive_show'));
104
  echo '>';
105
+ _e('No', 'wp-polls');
106
  echo '</option>'."\n";
107
  echo '<option value="1"';
108
  selected('1', get_option('poll_archive_show'));
109
  echo '>';
110
+ _e('Yes', 'wp-polls');
111
  echo '</option>'."\n";
112
  echo '</select></p>'."\n";
113
  echo '<p style="text-align: left;"><label for="poll_currentpoll">';
polls/polls.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: WP-Polls
4
- Plugin URI: http://www.lesterchan.net/portfolio/programming.php
5
  Description: Adds an AJAX poll system to your WordPress blog. You can easily include a poll into your WordPress's blog post/page. WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.
6
- Version: 2.20
7
  Author: Lester 'GaMerZ' Chan
8
- Author URI: http://www.lesterchan.net
9
  */
10
 
11
 
@@ -35,7 +35,10 @@ if (!function_exists('add_action')) {
35
 
36
 
37
  ### Create Text Domain For Translations
38
- load_plugin_textdomain('wp-polls', 'wp-content/plugins/polls');
 
 
 
39
 
40
 
41
  ### Polls Table Name
@@ -124,6 +127,8 @@ function get_poll($temp_poll_id = 0, $display = true) {
124
  $check_voted = check_voted($poll_id);
125
  if($poll_active == 0) {
126
  $poll_close = intval(get_option('poll_close'));
 
 
127
  }
128
  if($check_voted > 0 || ($poll_active == 0 && $poll_close == 1) || !check_allowtovote()) {
129
  if($display) {
@@ -186,6 +191,47 @@ function poll_header_admin() {
186
  }
187
 
188
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
  ### Function: Check Who Is Allow To Vote
190
  function check_allowtovote() {
191
  global $user_ID;
@@ -263,7 +309,11 @@ function check_voted_ip($poll_id) {
263
  global $wpdb;
264
  // Check IP From IP Logging Database
265
  $get_voted_aids = $wpdb->get_col("SELECT pollip_aid FROM $wpdb->pollsip WHERE pollip_qid = $poll_id AND pollip_ip = '".get_ipaddress()."'");
266
- return $get_voted_aids;
 
 
 
 
267
  }
268
 
269
 
@@ -277,7 +327,11 @@ function check_voted_username($poll_id) {
277
  $pollsip_userid = intval($user_ID);
278
  // Check User ID From IP Logging Database
279
  $get_voted_aids = $wpdb->get_col("SELECT pollip_aid FROM $wpdb->pollsip WHERE pollip_qid = $poll_id AND pollip_userid = $pollsip_userid");
280
- return $get_voted_aids;
 
 
 
 
281
  }
282
 
283
 
@@ -293,12 +347,12 @@ function display_pollvote($poll_id, $without_poll_title = false) {
293
  $poll_question_id = intval($poll_question->pollq_id);
294
  $poll_question_totalvotes = intval($poll_question->pollq_totalvotes);
295
  $poll_question_totalvoters = intval($poll_question->pollq_totalvoters);
296
- $poll_start_date = mysql2date(get_option('date_format').' @ '.get_option('time_format'), gmdate('Y-m-d H:i:s', $poll_question->pollq_timestamp));
297
  $poll_expiry = trim($poll_question->pollq_expiry);
298
  if(empty($poll_expiry)) {
299
  $poll_end_date = __('No Expiry', 'wp-polls');
300
  } else {
301
- $poll_end_date = mysql2date(get_option('date_format').' @ '.get_option('time_format'), gmdate('Y-m-d H:i:s', $poll_expiry));
302
  }
303
  $poll_multiple_ans = intval($poll_question->pollq_multiple);
304
  $template_question = stripslashes(get_option('poll_template_voteheader'));
@@ -409,12 +463,12 @@ function display_pollresult($poll_id, $user_voted = '', $without_poll_title = fa
409
  $poll_question_totalvotes = intval($poll_question->pollq_totalvotes);
410
  $poll_question_totalvoters = intval($poll_question->pollq_totalvoters);
411
  $poll_question_active = intval($poll_question->pollq_active);
412
- $poll_start_date = mysql2date(get_option('date_format').' @ '.get_option('time_format'), gmdate('Y-m-d H:i:s', $poll_question->pollq_timestamp));
413
  $poll_expiry = trim($poll_question->pollq_expiry);
414
  if(empty($poll_expiry)) {
415
  $poll_end_date = __('No Expiry', 'wp-polls');
416
  } else {
417
- $poll_end_date = mysql2date(get_option('date_format').' @ '.get_option('time_format'), gmdate('Y-m-d H:i:s', $poll_expiry));
418
  }
419
  $poll_multiple_ans = intval($poll_question->pollq_multiple);
420
  $template_question = stripslashes(get_option('poll_template_resultheader'));
@@ -572,11 +626,12 @@ function place_pollsarchive($content){
572
 
573
  ### Function: Place Poll In Content (By: Robert Accettura Of http://robert.accettura.com/)
574
  add_filter('the_content', 'place_poll', '7');
 
575
  function place_poll($content){
576
  if(!is_feed()) {
577
  $content = preg_replace("/\[poll=(\d+)\]/ise", "display_poll('\\1')", $content);
578
  } else {
579
- $content = preg_replace("/\[poll=(\d+)\]/i", __('Note: There is a poll within this post, please visit the site to participate in this post\'s poll.', 'wp-polls'), $content);
580
  }
581
  return $content;
582
  }
@@ -776,7 +831,7 @@ function polls_archive() {
776
  }
777
 
778
  // Poll Archives
779
- $pollsarchive_output_archive .= "<div class=\"wp-polls\">\n";
780
  foreach($polls_questions as $polls_question) {
781
  // Most/Least Variables
782
  $poll_most_answer = '';
@@ -790,11 +845,11 @@ function polls_archive() {
790
  if($polls_question['totalvotes'] > 0) {
791
  $poll_totalvotes_zero = false;
792
  }
793
- $poll_start_date = mysql2date(get_option('date_format').' @ '.get_option('time_format'), gmdate('Y-m-d H:i:s', $polls_question['start']));
794
  if(empty($polls_question['end'])) {
795
  $poll_end_date = __('No Expiry', 'wp-polls');
796
  } else {
797
- $poll_end_date = mysql2date(get_option('date_format').' @ '.get_option('time_format'), gmdate('Y-m-d H:i:s', $polls_question['end']));
798
  }
799
  // Archive Poll Header
800
  $template_archive_header = stripslashes(get_option('poll_template_pollarchiveheader'));
@@ -1040,6 +1095,15 @@ function poll_timestamp($poll_timestamp, $fieldname = 'pollq_timestamp', $displa
1040
  }
1041
 
1042
 
 
 
 
 
 
 
 
 
 
1043
  ### Funcion: Check All Polls Status To Check If It Expires
1044
  add_action('polls_cron', 'cron_polls_status');
1045
  function cron_polls_status() {
@@ -1085,8 +1149,8 @@ function in_pollarchive() {
1085
  vote_poll();
1086
  function vote_poll() {
1087
  global $wpdb, $user_identity, $user_ID;
1088
- header('Content-Type: text/html; charset='.get_option('blog_charset').'');
1089
  if(!empty($_POST['vote'])) {
 
1090
  $poll_id = intval($_POST['poll_id']);
1091
  $poll_aid = $_POST["poll_$poll_id"];
1092
  $poll_aid_array = explode(',', $poll_aid);
@@ -1143,16 +1207,56 @@ function vote_poll() {
1143
  }
1144
 
1145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1146
  ### Function: Create Poll Tables
1147
  add_action('activate_polls/polls.php', 'create_poll_table');
1148
  function create_poll_table() {
1149
  global $wpdb;
1150
- include_once(ABSPATH.'/wp-admin/upgrade-functions.php');
 
 
 
 
 
 
1151
  // Create Poll Tables (3 Tables)
1152
  $create_table = array();
1153
  $create_table['pollsq'] = "CREATE TABLE $wpdb->pollsq (".
1154
  "pollq_id int(10) NOT NULL auto_increment,".
1155
- "pollq_question varchar(200) NOT NULL default '',".
1156
  "pollq_timestamp varchar(20) NOT NULL default '',".
1157
  "pollq_totalvotes int(10) NOT NULL default '0',".
1158
  "pollq_active tinyint(1) NOT NULL default '1',".
@@ -1163,7 +1267,7 @@ function create_poll_table() {
1163
  $create_table['pollsa'] = "CREATE TABLE $wpdb->pollsa (".
1164
  "polla_aid int(10) NOT NULL auto_increment,".
1165
  "polla_qid int(10) NOT NULL default '0',".
1166
- "polla_answers varchar(200) NOT NULL default '',".
1167
  "polla_votes int(10) NOT NULL default '0',".
1168
  "PRIMARY KEY (polla_aid))";
1169
  $create_table['pollsip'] = "CREATE TABLE $wpdb->pollsip (".
@@ -1255,5 +1359,6 @@ function create_poll_table() {
1255
  if(!$role->has_cap('manage_polls')) {
1256
  $role->add_cap('manage_polls');
1257
  }
 
1258
  }
1259
  ?>
1
  <?php
2
  /*
3
  Plugin Name: WP-Polls
4
+ Plugin URI: http://lesterchan.net/portfolio/programming.php
5
  Description: Adds an AJAX poll system to your WordPress blog. You can easily include a poll into your WordPress's blog post/page. WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.
6
+ Version: 2.21
7
  Author: Lester 'GaMerZ' Chan
8
+ Author URI: http://lesterchan.net
9
  */
10
 
11
 
35
 
36
 
37
  ### Create Text Domain For Translations
38
+ add_action('init', 'polls_textdomain');
39
+ function polls_textdomain() {
40
+ load_plugin_textdomain('wp-polls', 'wp-content/plugins/polls');
41
+ }
42
 
43
 
44
  ### Polls Table Name
127
  $check_voted = check_voted($poll_id);
128
  if($poll_active == 0) {
129
  $poll_close = intval(get_option('poll_close'));
130
+ } else {
131
+ $poll_close = 0;
132
  }
133
  if($check_voted > 0 || ($poll_active == 0 && $poll_close == 1) || !check_allowtovote()) {
134
  if($display) {
191
  }
192
 
193
 
194
+ ### Function: Displays Polls Footer In WP-Admin
195
+ add_action('admin_footer', 'poll_footer_admin');
196
+ function poll_footer_admin() {
197
+ // Javascript Code Courtesy Of WP-AddQuicktag (http://bueltge.de/wp-addquicktags-de-plugin/120/)
198
+ echo '<script type="text/javascript">'."\n";
199
+ echo "\t".'if(document.getElementById("ed_toolbar")){'."\n";
200
+ echo "\t\t".'qt_toolbar = document.getElementById("ed_toolbar");'."\n";
201
+ echo "\t\t".'edButtons[edButtons.length] = new edButton("ed_poll","'.__('Poll', 'wp-polls').'", "", "","");'."\n";
202
+ echo "\t\t".'var qt_button = qt_toolbar.lastChild;'."\n";
203
+ echo "\t\t".'while (qt_button.nodeType != 1){'."\n";
204
+ echo "\t\t\t".'qt_button = qt_button.previousSibling;'."\n";
205
+ echo "\t\t".'}'."\n";
206
+ echo "\t\t".'qt_button = qt_button.cloneNode(true);'."\n";
207
+ echo "\t\t".'qt_button.value = "'.__('Poll', 'wp-polls').'";'."\n";
208
+ echo "\t\t".'qt_button.title = "'.__('Insert Poll', 'wp-polls').'";'."\n";
209
+ echo "\t\t".'qt_button.onclick = function () { insertPoll(\'code\', edCanvas);}'."\n";
210
+ echo "\t\t".'qt_button.id = "ed_poll";'."\n";
211
+ echo "\t\t".'qt_toolbar.appendChild(qt_button);'."\n";
212
+ echo "\t".'}'."\n";
213
+ echo '</script>'."\n";
214
+ }
215
+
216
+
217
+ ### Function: Add Quick Tag For Poll In TinyMCE, Coutesy Of An-Archos (http://an-archos.com/anarchy-media-player)
218
+ add_filter('mce_plugins', 'poll_mce_plugins', 5);
219
+ function poll_mce_plugins($plugins) {
220
+ array_push($plugins, '-polls', 'bold');
221
+ return $plugins;
222
+ }
223
+ add_filter('mce_buttons', 'poll_mce_buttons', 5);
224
+ function poll_mce_buttons($buttons) {
225
+ array_push($buttons, 'separator', 'polls');
226
+ return $buttons;
227
+ }
228
+ add_action('tinymce_before_init','poll_external_plugins');
229
+ function poll_external_plugins() {
230
+ echo 'tinyMCE.loadPlugin("polls", "'.get_option('siteurl').'/wp-content/plugins/polls/tinymce/plugins/polls/");' . "\n";
231
+ return;
232
+ }
233
+
234
+
235
  ### Function: Check Who Is Allow To Vote
236
  function check_allowtovote() {
237
  global $user_ID;
309
  global $wpdb;
310
  // Check IP From IP Logging Database
311
  $get_voted_aids = $wpdb->get_col("SELECT pollip_aid FROM $wpdb->pollsip WHERE pollip_qid = $poll_id AND pollip_ip = '".get_ipaddress()."'");
312
+ if($get_voted_aids) {
313
+ return $get_voted_aids;
314
+ } else {
315
+ return 0;
316
+ }
317
  }
318
 
319
 
327
  $pollsip_userid = intval($user_ID);
328
  // Check User ID From IP Logging Database
329
  $get_voted_aids = $wpdb->get_col("SELECT pollip_aid FROM $wpdb->pollsip WHERE pollip_qid = $poll_id AND pollip_userid = $pollsip_userid");
330
+ if($get_voted_aids) {
331
+ return $get_voted_aids;
332
+ } else {
333
+ return 0;
334
+ }
335
  }
336
 
337
 
347
  $poll_question_id = intval($poll_question->pollq_id);
348
  $poll_question_totalvotes = intval($poll_question->pollq_totalvotes);
349
  $poll_question_totalvoters = intval($poll_question->pollq_totalvoters);
350
+ $poll_start_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_question->pollq_timestamp));
351
  $poll_expiry = trim($poll_question->pollq_expiry);
352
  if(empty($poll_expiry)) {
353
  $poll_end_date = __('No Expiry', 'wp-polls');
354
  } else {
355
+ $poll_end_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_expiry));
356
  }
357
  $poll_multiple_ans = intval($poll_question->pollq_multiple);
358
  $template_question = stripslashes(get_option('poll_template_voteheader'));
463
  $poll_question_totalvotes = intval($poll_question->pollq_totalvotes);
464
  $poll_question_totalvoters = intval($poll_question->pollq_totalvoters);
465
  $poll_question_active = intval($poll_question->pollq_active);
466
+ $poll_start_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_question->pollq_timestamp));
467
  $poll_expiry = trim($poll_question->pollq_expiry);
468
  if(empty($poll_expiry)) {
469
  $poll_end_date = __('No Expiry', 'wp-polls');
470
  } else {
471
+ $poll_end_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $poll_expiry));
472
  }
473
  $poll_multiple_ans = intval($poll_question->pollq_multiple);
474
  $template_question = stripslashes(get_option('poll_template_resultheader'));
626
 
627
  ### Function: Place Poll In Content (By: Robert Accettura Of http://robert.accettura.com/)
628
  add_filter('the_content', 'place_poll', '7');
629
+ add_filter('the_excerpt', 'place_poll', '7');
630
  function place_poll($content){
631
  if(!is_feed()) {
632
  $content = preg_replace("/\[poll=(\d+)\]/ise", "display_poll('\\1')", $content);
633
  } else {
634
+ $content = preg_replace("/\[poll=(\d+)\]/i", __('Note: There is a poll embedded within this post, please visit the site to participate in this post\'s poll.', 'wp-polls'), $content);
635
  }
636
  return $content;
637
  }
831
  }
832
 
833
  // Poll Archives
834
+ $pollsarchive_output_archive .= "<div class=\"wp-polls wp-polls-archive\">\n";
835
  foreach($polls_questions as $polls_question) {
836
  // Most/Least Variables
837
  $poll_most_answer = '';
845
  if($polls_question['totalvotes'] > 0) {
846
  $poll_totalvotes_zero = false;
847
  }
848
+ $poll_start_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $polls_question['start']));
849
  if(empty($polls_question['end'])) {
850
  $poll_end_date = __('No Expiry', 'wp-polls');
851
  } else {
852
+ $poll_end_date = mysql2date(sprintf(__('%s @ %s', 'wp-polls'), get_option('date_format'), get_option('time_format')), gmdate('Y-m-d H:i:s', $polls_question['end']));
853
  }
854
  // Archive Poll Header
855
  $template_archive_header = stripslashes(get_option('poll_template_pollarchiveheader'));
1095
  }
1096
 
1097
 
1098
+ ### Function: Place Cron
1099
+ function cron_polls_place() {
1100
+ wp_clear_scheduled_hook('polls_cron');
1101
+ if (!wp_next_scheduled('polls_cron')) {
1102
+ wp_schedule_event(time(), 'daily', 'polls_cron');
1103
+ }
1104
+ }
1105
+
1106
+
1107
  ### Funcion: Check All Polls Status To Check If It Expires
1108
  add_action('polls_cron', 'cron_polls_status');
1109
  function cron_polls_status() {
1149
  vote_poll();
1150
  function vote_poll() {
1151
  global $wpdb, $user_identity, $user_ID;
 
1152
  if(!empty($_POST['vote'])) {
1153
+ header('Content-Type: text/html; charset='.get_option('blog_charset').'');
1154
  $poll_id = intval($_POST['poll_id']);
1155
  $poll_aid = $_POST["poll_$poll_id"];
1156
  $poll_aid_array = explode(',', $poll_aid);
1207
  }
1208
 
1209
 
1210
+ ### Function: Plug Into WP-Stats
1211
+ if(strpos(get_option('stats_url'), $_SERVER['REQUEST_URI']) || strpos($_SERVER['REQUEST_URI'], 'stats-options.php') || strpos($_SERVER['REQUEST_URI'], 'stats/stats.php')) {
1212
+ add_filter('wp_stats_page_admin_plugins', 'polls_page_admin_general_stats');
1213
+ add_filter('wp_stats_page_plugins', 'polls_page_general_stats');
1214
+ }
1215
+
1216
+
1217
+ ### Function: Add WP-Polls General Stats To WP-Stats Page Options
1218
+ function polls_page_admin_general_stats($content) {
1219
+ $stats_display = get_option('stats_display');
1220
+ if($stats_display['polls'] == 1) {
1221
+ $content .= '<input type="checkbox" name="stats_display[]" id="wpstats_polls" value="polls" checked="checked" />&nbsp;&nbsp;<label for="wpstats_polls">'.__('WP-Polls', 'wp-polls').'</label><br />'."\n";
1222
+ } else {
1223
+ $content .= '<input type="checkbox" name="stats_display[]" id="wpstats_polls" value="polls" />&nbsp;&nbsp;<label for="wpstats_polls">'.__('WP-Polls', 'wp-polls').'</label><br />'."\n";
1224
+ }
1225
+ return $content;
1226
+ }
1227
+
1228
+
1229
+ ### Function: Add WP-Polls General Stats To WP-Stats Page
1230
+ function polls_page_general_stats($content) {
1231
+ $stats_display = get_option('stats_display');
1232
+ if($stats_display['polls'] == 1) {
1233
+ $content .= '<p><strong>'.__('WP-Polls', 'wp-polls').'</strong></p>'."\n";
1234
+ $content .= '<ul>'."\n";
1235
+ $content .= '<li><strong>'.get_pollquestions(false).'</strong> '.__('polls were created.', 'wp-polls').'</li>'."\n";
1236
+ $content .= '<li><strong>'.get_pollanswers(false).'</strong> '.__('polls\' answers were given.', 'wp-polls').'</li>'."\n";
1237
+ $content .= '<li><strong>'.get_pollvotes(false).'</strong> '.__('votes were casted.', 'wp-polls').'</li>'."\n";
1238
+ $content .= '</ul>'."\n";
1239
+ }
1240
+ return $content;
1241
+ }
1242
+
1243
+
1244
  ### Function: Create Poll Tables
1245
  add_action('activate_polls/polls.php', 'create_poll_table');
1246
  function create_poll_table() {
1247
  global $wpdb;
1248
+ if(@is_file(ABSPATH.'/wp-admin/upgrade-functions.php')) {
1249
+ include_once(ABSPATH.'/wp-admin/upgrade-functions.php');
1250
+ } elseif(@is_file(ABSPATH.'/wp-admin/includes/upgrade.php')) {
1251
+ include_once(ABSPATH.'/wp-admin/includes/upgrade.php');
1252
+ } else {
1253
+ die('We have problem finding your \'/wp-admin/upgrade-functions.php\' and \'/wp-admin/includes/upgrade.php\'');
1254
+ }
1255
  // Create Poll Tables (3 Tables)
1256
  $create_table = array();
1257
  $create_table['pollsq'] = "CREATE TABLE $wpdb->pollsq (".
1258
  "pollq_id int(10) NOT NULL auto_increment,".
1259
+ "pollq_question varchar(200) character set utf8 NOT NULL default '',".
1260
  "pollq_timestamp varchar(20) NOT NULL default '',".
1261
  "pollq_totalvotes int(10) NOT NULL default '0',".
1262
  "pollq_active tinyint(1) NOT NULL default '1',".
1267
  $create_table['pollsa'] = "CREATE TABLE $wpdb->pollsa (".
1268
  "polla_aid int(10) NOT NULL auto_increment,".
1269
  "polla_qid int(10) NOT NULL default '0',".
1270
+ "polla_answers varchar(200) character set utf8 NOT NULL default '',".
1271
  "polla_votes int(10) NOT NULL default '0',".
1272
  "PRIMARY KEY (polla_aid))";
1273
  $create_table['pollsip'] = "CREATE TABLE $wpdb->pollsip (".
1359
  if(!$role->has_cap('manage_polls')) {
1360
  $role->add_cap('manage_polls');
1361
  }
1362
+ cron_polls_place();
1363
  }
1364
  ?>
polls/tinymce/plugins/polls/editor_plugin.js ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ tinyMCE.importPluginLanguagePack('polls');
2
+ var TinyMCE_PollsPlugin = {
3
+ getInfo : function() {
4
+ return {
5
+ longname : 'WP-Polls',
6
+ author : 'Lester Chan',
7
+ authorurl : 'http://lesterchan.net',
8
+ infourl : 'http://lesterchan.net/portfolio/programming.php',
9
+ version : "2.21"
10
+ };
11
+ },
12
+ getControlHTML : function(cn) {
13
+ switch (cn) {
14
+ case "polls":
15
+ return tinyMCE.getButtonHTML(cn, 'lang_polls_desc', '{$pluginurl}/images/poll.gif', 'mcePollInsert');
16
+ }
17
+ return "";
18
+ },
19
+ execCommand : function(editor_id, element, command, user_interface, value) {
20
+ switch (command) {
21
+ case "mcePollInsert":
22
+ tinyMCE.execInstanceCommand(editor_id, "mceInsertContent", false, insertPoll('visual', ''));
23
+ return true;
24
+ }
25
+ return false;
26
+ }
27
+ };
28
+ tinyMCE.addPlugin("polls", TinyMCE_PollsPlugin);
polls/tinymce/plugins/polls/images/poll.gif ADDED
Binary file
polls/tinymce/plugins/polls/langs/en.js ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ tinyMCE.addToLang('polls',{
2
+ desc : 'Insert Poll'
3
+ });
polls/tinymce/plugins/polls/langs/en_us.js ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ tinyMCE.addToLang('polls',{
2
+ desc : 'Insert Poll'
3
+ });
polls/wp-polls.mo CHANGED
Binary file
polls/wp-polls.pot CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WP-Polls 2.20\n"
4
  "POT-Creation-Date: \n"
5
- "PO-Revision-Date: 2007-06-10 23:28+0800\n"
6
  "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n"
7
  "Language-Team: Ravan <ravanhagen@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
@@ -15,9 +15,9 @@ msgstr ""
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
  #: polls-add.php:36
18
- #: polls-add.php:173
19
- #: polls-add.php:245
20
- #: polls.php:55
21
  msgid "Add Poll"
22
  msgstr ""
23
 
@@ -37,111 +37,111 @@ msgstr ""
37
  msgid "Poll '%s' Added Successfully."
38
  msgstr ""
39
 
40
- #: polls-add.php:123
41
  #: polls-logs.php:291
42
  #: polls-logs.php:334
43
- #: polls-manager.php:236
44
  msgid "Answer"
45
  msgstr ""
46
 
47
- #: polls-add.php:152
48
  msgid "You need at least a minimum of 2 poll answers."
49
  msgstr ""
50
 
51
- #: polls-add.php:175
52
- #: polls-manager.php:306
53
  msgid "Poll Question"
54
  msgstr ""
55
 
56
- #: polls-add.php:178
57
  msgid "Question:"
58
  msgstr ""
59
 
60
- #: polls-add.php:183
61
- #: polls-manager.php:314
62
  msgid "Poll Answers"
63
  msgstr ""
64
 
65
- #: polls-add.php:188
66
- #: polls-manager.php:354
67
  msgid "Add Answer"
68
  msgstr ""
69
 
70
- #: polls-add.php:188
71
- #: polls-manager.php:354
72
  msgid "Remove Answer"
73
  msgstr ""
74
 
75
- #: polls-add.php:200
76
- #: polls-manager.php:341
77
  #, php-format
78
  msgid "Answer %s:"
79
  msgstr ""
80
 
81
- #: polls-add.php:209
82
- #: polls-manager.php:365
83
  msgid "Poll Multiple Answers"
84
  msgstr ""
85
 
86
- #: polls-add.php:212
87
- #: polls-manager.php:368
88
  msgid "Allows Users To Select More Than One Answer?"
89
  msgstr ""
90
 
91
- #: polls-add.php:215
92
- #: polls-manager.php:371
93
- #: polls-options.php:204
94
- #: polls-options.php:213
95
- #: polls-options.php:324
96
  #: polls-widget.php:105
97
  msgid "No"
98
  msgstr ""
99
 
100
- #: polls-add.php:216
101
  #: polls-logs.php:381
102
- #: polls-manager.php:372
103
- #: polls-manager.php:588
104
- #: polls-options.php:205
105
- #: polls-options.php:214
106
- #: polls-options.php:325
107
- #: polls-uninstall.php:134
108
  #: polls-widget.php:110
109
  msgid "Yes"
110
  msgstr ""
111
 
112
- #: polls-add.php:221
113
- #: polls-manager.php:377
114
  msgid "Maximum Number Of Selected Answers Allowed?"
115
  msgstr ""
116
 
117
- #: polls-add.php:234
118
- #: polls-manager.php:394
119
  msgid "Poll Start/End Date"
120
  msgstr ""
121
 
122
- #: polls-add.php:237
123
  msgid "Start Date/Time:"
124
  msgstr ""
125
 
126
- #: polls-add.php:241
127
  msgid "End Date/Time:"
128
  msgstr ""
129
 
130
- #: polls-add.php:242
131
- #: polls-manager.php:416
132
  msgid "Do NOT Expire This Poll"
133
  msgstr ""
134
 
135
- #: polls-add.php:245
136
- #: polls-manager.php:442
137
- #: polls-options.php:382
138
  #: polls-templates.php:464
139
  msgid "Cancel"
140
  msgstr ""
141
 
142
  #: polls-admin-ajax.php:38
143
  #: polls-admin-js.php:78
144
- #: polls-manager.php:589
145
  msgid "Delete All Logs"
146
  msgstr ""
147
 
@@ -186,7 +186,7 @@ msgstr ""
186
 
187
  #: polls-admin-ajax.php:78
188
  #: polls-admin-js.php:172
189
- #: polls-manager.php:441
190
  msgid "Open Poll"
191
  msgstr ""
192
 
@@ -202,7 +202,7 @@ msgstr ""
202
 
203
  #: polls-admin-ajax.php:89
204
  #: polls-admin-js.php:195
205
- #: polls-manager.php:440
206
  msgid "Close Poll"
207
  msgstr ""
208
 
@@ -232,7 +232,7 @@ msgid "Poll '%s' Deleted Successfully"
232
  msgstr ""
233
 
234
  #: polls-admin-js.php:69
235
- #: polls-manager.php:592
236
  msgid "No poll logs available."
237
  msgstr ""
238
 
@@ -250,6 +250,18 @@ msgstr ""
250
  msgid "Please check the 'Yes' checkbox if you want to delete all logs for this poll ONLY."
251
  msgstr ""
252
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  #: polls-js.php:36
254
  msgid "Your last request is still being processed. Please wait a while ..."
255
  msgstr ""
@@ -396,6 +408,22 @@ msgstr ""
396
  msgid "Date"
397
  msgstr ""
398
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
399
  #: polls-logs.php:309
400
  #: polls-logs.php:339
401
  msgid "User"
@@ -436,8 +464,8 @@ msgid "Note: If your logging method is by IP and Cookie or by Cookie, users may
436
  msgstr ""
437
 
438
  #: polls-manager.php:39
439
- #: polls-manager.php:304
440
- #: polls-manager.php:430
441
  msgid "Edit Poll"
442
  msgstr ""
443
 
@@ -471,181 +499,181 @@ msgstr ""
471
  msgid "Poll '%s' Edited Successfully."
472
  msgstr ""
473
 
474
- #: polls-manager.php:277
475
  msgid "No more poll's answer to be removed."
476
  msgstr ""
477
 
478
- #: polls-manager.php:309
479
- #: polls-manager.php:465
480
  msgid "Question"
481
  msgstr ""
482
 
483
- #: polls-manager.php:318
484
  msgid "Answer No.:"
485
  msgstr ""
486
 
487
- #: polls-manager.php:319
488
  msgid "Answer Text:"
489
  msgstr ""
490
 
491
- #: polls-manager.php:320
492
  msgid "No. Of Votes"
493
  msgstr ""
494
 
495
- #: polls-manager.php:329
496
  msgid "Null Votes"
497
  msgstr ""
498
 
499
- #: polls-manager.php:343
500
- #: polls-manager.php:543
501
  msgid "Delete"
502
  msgstr ""
503
 
504
- #: polls-manager.php:343
505
  #, php-format
506
  msgid "You are about to delete this poll's answer '%s'."
507
  msgstr ""
508
 
509
- #: polls-manager.php:355
510
  msgid "Total Votes:"
511
  msgstr ""
512
 
513
- #: polls-manager.php:360
514
- #: polls-manager.php:574
515
  msgid "Total Voters:"
516
  msgstr ""
517
 
518
- #: polls-manager.php:397
519
- #: polls-manager.php:467
520
  msgid "Start Date/Time"
521
  msgstr ""
522
 
523
- #: polls-manager.php:400
524
  msgid "Edit Start Date/Time"
525
  msgstr ""
526
 
527
- #: polls-manager.php:405
528
- #: polls-manager.php:468
529
  msgid "End Date/Time"
530
  msgstr ""
531
 
532
- #: polls-manager.php:409
533
  msgid "This Poll Will Not Expire"
534
  msgstr ""
535
 
536
- #: polls-manager.php:440
537
  #, php-format
538
  msgid "You are about to CLOSE this poll '%s'."
539
  msgstr ""
540
 
541
- #: polls-manager.php:441
542
  #, php-format
543
  msgid "You are about to OPEN this poll '%s'."
544
  msgstr ""
545
 
546
- #: polls-manager.php:460
547
- #: polls.php:54
548
  msgid "Manage Polls"
549
  msgstr ""
550
 
551
- #: polls-manager.php:464
552
  msgid "ID"
553
  msgstr ""
554
 
555
- #: polls-manager.php:466
556
  #: polls-templates.php:116
557
  #: polls-templates.php:119
558
- #: polls.php:1212
559
- #: polls.php:1215
560
  msgid "Total Voters"
561
  msgstr ""
562
 
563
- #: polls-manager.php:469
564
  msgid "Status"
565
  msgstr ""
566
 
567
- #: polls-manager.php:470
568
  msgid "Action"
569
  msgstr ""
570
 
571
- #: polls-manager.php:494
572
- #: polls.php:299
573
- #: polls.php:415
574
- #: polls.php:795
575
  msgid "No Expiry"
576
  msgstr ""
577
 
578
- #: polls-manager.php:519
579
- #: polls-manager.php:523
580
- #: polls-manager.php:526
581
  msgid "Displayed:"
582
  msgstr ""
583
 
584
- #: polls-manager.php:534
585
  msgid "Open"
586
  msgstr ""
587
 
588
- #: polls-manager.php:536
589
  msgid "Future"
590
  msgstr ""
591
 
592
- #: polls-manager.php:538
593
  msgid "Closed"
594
  msgstr ""
595
 
596
- #: polls-manager.php:541
597
  msgid "Logs"
598
  msgstr ""
599
 
600
- #: polls-manager.php:542
601
  msgid "Edit"
602
  msgstr ""
603
 
604
- #: polls-manager.php:543
605
  #, php-format
606
  msgid "You are about to delete this poll, '%s'."
607
  msgstr ""
608
 
609
- #: polls-manager.php:551
610
  msgid "No Polls Found"
611
  msgstr ""
612
 
613
- #: polls-manager.php:559
614
  #: polls-usage.php:103
615
  msgid "Polls Stats"
616
  msgstr ""
617
 
618
- #: polls-manager.php:562
619
  msgid "Total Polls:"
620
  msgstr ""
621
 
622
- #: polls-manager.php:566
623
  msgid "Total Polls' Answers:"
624
  msgstr ""
625
 
626
- #: polls-manager.php:570
627
  msgid "Total Votes Casted:"
628
  msgstr ""
629
 
630
- #: polls-manager.php:581
631
  msgid "Polls Logs"
632
  msgstr ""
633
 
634
- #: polls-manager.php:587
635
  msgid "Are You Sure You Want To Delete All Polls Logs?"
636
  msgstr ""
637
 
638
- #: polls-manager.php:589
639
  msgid "You are about to delete all poll logs. This action is not reversible."
640
  msgstr ""
641
 
642
- #: polls-manager.php:596
643
  msgid "Note:<br />If your logging method is by IP and Cookie or by Cookie, users may still be unable to vote if they have voted before as the cookie is still stored in their computer."
644
  msgstr ""
645
 
646
  #: polls-options.php:68
 
647
  #: polls-options.php:136
648
- #: polls-options.php:139
649
  msgid "Poll Bar Style"
650
  msgstr ""
651
 
@@ -694,7 +722,7 @@ msgid "Poll Close Option"
694
  msgstr ""
695
 
696
  #: polls-options.php:80
697
- #: polls-options.php:283
698
  msgid "Logging Method"
699
  msgstr ""
700
 
@@ -712,218 +740,223 @@ msgstr ""
712
  msgid "No Poll Option Updated"
713
  msgstr ""
714
 
715
- #: polls-options.php:134
716
- #: polls.php:56
717
  msgid "Poll Options"
718
  msgstr ""
719
 
720
- #: polls-options.php:165
721
  msgid "Use CSS Style"
722
  msgstr ""
723
 
724
- #: polls-options.php:169
725
  msgid "Poll Bar Background"
726
  msgstr ""
727
 
728
- #: polls-options.php:174
729
  msgid "Poll Bar Border"
730
  msgstr ""
731
 
732
- #: polls-options.php:179
733
  msgid "Poll Bar Height"
734
  msgstr ""
735
 
736
- #: polls-options.php:183
737
  msgid "Your poll bar will look like this"
738
  msgstr ""
739
 
740
- #: polls-options.php:198
741
  msgid "Polls AJAX Style"
742
  msgstr ""
743
 
744
- #: polls-options.php:201
745
  msgid "Show Loading Image With Text"
746
  msgstr ""
747
 
748
- #: polls-options.php:210
749
  msgid "Show Fading In And Fading Out Of Poll"
750
  msgstr ""
751
 
752
- #: polls-options.php:221
753
  msgid "Sorting Of Poll Answers"
754
  msgstr ""
755
 
756
- #: polls-options.php:224
757
  msgid "Sort Poll Answers By:"
758
  msgstr ""
759
 
760
- #: polls-options.php:227
761
- #: polls-options.php:251
762
  msgid "Exact Order"
763
  msgstr ""
764
 
765
- #: polls-options.php:228
766
- #: polls-options.php:252
767
  msgid "Alphabetical Order"
768
  msgstr ""
769
 
770
- #: polls-options.php:233
 
 
 
 
 
771
  msgid "Sort Order Of Poll Answers:"
772
  msgstr ""
773
 
774
- #: polls-options.php:236
775
- #: polls-options.php:260
776
  msgid "Ascending"
777
  msgstr ""
778
 
779
- #: polls-options.php:237
780
- #: polls-options.php:261
781
  msgid "Descending"
782
  msgstr ""
783
 
784
- #: polls-options.php:244
785
  msgid "Sorting Of Poll Results"
786
  msgstr ""
787
 
788
- #: polls-options.php:247
789
  msgid "Sort Poll Results By:"
790
  msgstr ""
791
 
792
- #: polls-options.php:250
793
  #: polls-templates.php:110
794
  #: polls-templates.php:113
795
- #: polls.php:1209
796
- #: polls.php:1210
797
  msgid "Votes"
798
  msgstr ""
799
 
800
- #: polls-options.php:257
801
  msgid "Sort Order Of Poll Results:"
802
  msgstr ""
803
 
804
- #: polls-options.php:268
805
  msgid "Allow To Vote"
806
  msgstr ""
807
 
808
- #: polls-options.php:271
809
  msgid "Who Is Allowed To Vote?"
810
  msgstr ""
811
 
812
- #: polls-options.php:274
813
  msgid "Guests Only"
814
  msgstr ""
815
 
816
- #: polls-options.php:275
817
  msgid "Registered Users Only"
818
  msgstr ""
819
 
820
- #: polls-options.php:276
821
  msgid "Registered Users And Guests"
822
  msgstr ""
823
 
824
- #: polls-options.php:286
825
  msgid "Poll Logging Method:"
826
  msgstr ""
827
 
828
- #: polls-options.php:289
829
  msgid "Do Not Log"
830
  msgstr ""
831
 
832
- #: polls-options.php:290
833
  msgid "Logged By Cookie"
834
  msgstr ""
835
 
836
- #: polls-options.php:291
837
  msgid "Logged By IP"
838
  msgstr ""
839
 
840
- #: polls-options.php:292
841
  msgid "Logged By Cookie And IP"
842
  msgstr ""
843
 
844
- #: polls-options.php:293
845
  msgid "Logged By Username"
846
  msgstr ""
847
 
848
- #: polls-options.php:300
849
  msgid "Poll Archive"
850
  msgstr ""
851
 
852
- #: polls-options.php:303
853
  msgid "Number Of Polls Per Page:"
854
  msgstr ""
855
 
856
- #: polls-options.php:307
857
  msgid "Type Of Polls To Display In Poll Archive:"
858
  msgstr ""
859
 
860
- #: polls-options.php:310
861
  msgid "Closed Polls Only"
862
  msgstr ""
863
 
864
- #: polls-options.php:311
865
  msgid "Opened Polls Only"
866
  msgstr ""
867
 
868
- #: polls-options.php:312
869
  msgid "Closed And Opened Polls"
870
  msgstr ""
871
 
872
- #: polls-options.php:317
873
  msgid "Poll Archive URL:"
874
  msgstr ""
875
 
876
- #: polls-options.php:321
877
  msgid "Display Poll Archive Link Below Poll?"
878
  msgstr ""
879
 
880
- #: polls-options.php:330
881
  msgid "Note: Only polls' results will be shown in the Poll Archive regardless of whether the poll is closed or opened."
882
  msgstr ""
883
 
884
- #: polls-options.php:335
885
- #: polls-options.php:338
886
  #: polls-widget.php:114
887
  msgid "Current Active Poll"
888
  msgstr ""
889
 
890
- #: polls-options.php:341
891
  #: polls-widget.php:120
892
  msgid "Do NOT Display Poll (Disable)"
893
  msgstr ""
894
 
895
- #: polls-options.php:342
896
  #: polls-widget.php:125
897
  msgid "Display Random Poll"
898
  msgstr ""
899
 
900
- #: polls-options.php:343
901
  #: polls-widget.php:130
902
  msgid "Display Latest Poll"
903
  msgstr ""
904
 
905
- #: polls-options.php:345
906
  #: polls-widget.php:135
907
  msgid "Display Multiple Polls"
908
  msgstr ""
909
 
910
- #: polls-options.php:367
911
- msgid "Note: If you chose 'Display Multiple Polls' for the above option, you need to configure it in Presentation -> Sidebar Widgets -> Poll."
912
  msgstr ""
913
 
914
- #: polls-options.php:371
915
  msgid "When Poll Is Closed"
916
  msgstr ""
917
 
918
- #: polls-options.php:374
919
  msgid "Display Poll's Results"
920
  msgstr ""
921
 
922
- #: polls-options.php:375
923
  msgid "Do Not Display Poll In Post/Sidebar"
924
  msgstr ""
925
 
926
- #: polls-options.php:382
927
  msgid "Update Options"
928
  msgstr ""
929
 
@@ -981,34 +1014,34 @@ msgstr ""
981
 
982
  #: polls-templates.php:104
983
  #: polls-templates.php:119
984
- #: polls.php:1203
985
- #: polls.php:1216
986
  msgid "Vote"
987
  msgstr ""
988
 
989
  #: polls-templates.php:104
990
- #: polls.php:1204
991
  msgid "View Results Of This Poll"
992
  msgstr ""
993
 
994
  #: polls-templates.php:104
995
- #: polls.php:1204
996
  msgid "View Results"
997
  msgstr ""
998
 
999
  #: polls-templates.php:113
1000
- #: polls.php:1210
1001
  msgid "You Have Voted For This Choice"
1002
  msgstr ""
1003
 
1004
  #: polls-templates.php:119
1005
- #: polls.php:1216
1006
  msgid "Vote For This Poll"
1007
  msgstr ""
1008
 
1009
  #: polls-templates.php:122
1010
  #: polls-usage.php:80
1011
- #: polls.php:1243
1012
  msgid "Polls Archive"
1013
  msgstr ""
1014
 
@@ -1021,17 +1054,17 @@ msgid "End Date:"
1021
  msgstr ""
1022
 
1023
  #: polls-templates.php:131
1024
- #: polls.php:1218
1025
  msgid "Sorry, there are no polls available at the moment."
1026
  msgstr ""
1027
 
1028
  #: polls-templates.php:134
1029
- #: polls.php:1219
1030
  msgid "An error has occurred when processing your poll."
1031
  msgstr ""
1032
 
1033
  #: polls-templates.php:144
1034
- #: polls.php:57
1035
  msgid "Poll Templates"
1036
  msgstr ""
1037
 
@@ -1269,62 +1302,62 @@ msgstr ""
1269
  msgid "Update Templates"
1270
  msgstr ""
1271
 
1272
- #: polls-uninstall.php:43
1273
- #: polls-uninstall.php:135
1274
  msgid "UNINSTALL WP-Polls"
1275
  msgstr ""
1276
 
1277
- #: polls-uninstall.php:50
1278
  #, php-format
1279
  msgid "Table '%s' has been deleted."
1280
  msgstr ""
1281
 
1282
- #: polls-uninstall.php:59
1283
  #, php-format
1284
  msgid "Setting Key '%s' has been deleted."
1285
  msgstr ""
1286
 
1287
- #: polls-uninstall.php:63
1288
  #, php-format
1289
  msgid "Error deleting Setting Key '%s'."
1290
  msgstr ""
1291
 
1292
- #: polls-uninstall.php:85
1293
- #: polls-uninstall.php:95
1294
- #: polls.php:59
1295
  msgid "Uninstall WP-Polls"
1296
  msgstr ""
1297
 
1298
- #: polls-uninstall.php:86
1299
  #, php-format
1300
  msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-Polls Will Be Deactivated Automatically."
1301
  msgstr ""
1302
 
1303
- #: polls-uninstall.php:97
1304
  msgid "Deactivating WP-Polls plugin does not remove any data that may have been created, such as the poll data and the poll's voting logs. To completely remove this plugin, you can uninstall it here."
1305
  msgstr ""
1306
 
1307
- #: polls-uninstall.php:100
1308
  msgid "WARNING:"
1309
  msgstr ""
1310
 
1311
- #: polls-uninstall.php:101
1312
  msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
1313
  msgstr ""
1314
 
1315
- #: polls-uninstall.php:104
1316
  msgid "The following WordPress Options/Tables will be DELETED:"
1317
  msgstr ""
1318
 
1319
- #: polls-uninstall.php:108
1320
  msgid "WordPress Options"
1321
  msgstr ""
1322
 
1323
- #: polls-uninstall.php:109
1324
  msgid "WordPress Tables"
1325
  msgstr ""
1326
 
1327
- #: polls-uninstall.php:135
1328
  msgid ""
1329
  "You Are About To Uninstall WP-Polls From WordPress.\\n"
1330
  "This Action Is Not Reversible.\\n"
@@ -1354,7 +1387,7 @@ msgstr ""
1354
 
1355
  #: polls-usage.php:46
1356
  #: polls-usage.php:49
1357
- msgid "where <b>2</b> is your poll id."
1358
  msgstr ""
1359
 
1360
  #: polls-usage.php:47
@@ -1362,7 +1395,7 @@ msgid "To embed a specific poll in your post, use :"
1362
  msgstr ""
1363
 
1364
  #: polls-usage.php:52
1365
- msgid "Scroll down for instructions on how to create <b>Polls Archive</b>."
1366
  msgstr ""
1367
 
1368
  #: polls-usage.php:57
@@ -1370,7 +1403,7 @@ msgid "General Usage (With Widget)"
1370
  msgstr ""
1371
 
1372
  #: polls-usage.php:60
1373
- msgid "<b>Activate</b> WP-Polls Widget Plugin"
1374
  msgstr ""
1375
 
1376
  #: polls-usage.php:63
@@ -1378,11 +1411,11 @@ msgid "Go to 'WP-Admin -> Presentation -> Sidebar Widgets'"
1378
  msgstr ""
1379
 
1380
  #: polls-usage.php:66
1381
- msgid "<b>Drag</b> the Polls Widget to your sidebar"
1382
  msgstr ""
1383
 
1384
  #: polls-usage.php:69
1385
- msgid "You can <b>configure</b> the Polls Widget by clicking on the configure icon"
1386
  msgstr ""
1387
 
1388
  #: polls-usage.php:72
@@ -1390,7 +1423,7 @@ msgid "Click 'Save changes'"
1390
  msgstr ""
1391
 
1392
  #: polls-usage.php:75
1393
- msgid " down for instructions on how to create a <b>Polls Archive</b>."
1394
  msgstr ""
1395
 
1396
  #: polls-usage.php:83
@@ -1402,11 +1435,12 @@ msgid "Type any title you like in the post's title area"
1402
  msgstr ""
1403
 
1404
  #: polls-usage.php:89
1405
- msgid "Type '<b>[page_polls]</b>' in the post's content area (without the quotes)"
 
1406
  msgstr ""
1407
 
1408
  #: polls-usage.php:92
1409
- msgid "Type '<b>pollsarchive</b>' in the post's slug area (without the quotes)"
1410
  msgstr ""
1411
 
1412
  #: polls-usage.php:95
@@ -1414,7 +1448,7 @@ msgid "Click 'Publish'"
1414
  msgstr ""
1415
 
1416
  #: polls-usage.php:98
1417
- msgid "If you <b>ARE NOT</b> using nice permalinks, you need to go to 'WP-Admin -> Polls -> Poll Option' and under '<b>Poll Archive -> Polls Archive URL</b>', you need to fill in the URL to the Polls Archive Page you created above."
1418
  msgstr ""
1419
 
1420
  #: polls-usage.php:104
@@ -1442,7 +1476,7 @@ msgid "In IE, some of the poll's text may appear jagged (this is normal in IE).
1442
  msgstr ""
1443
 
1444
  #: polls-usage.php:136
1445
- msgid "Open <b>poll-css.css</b>"
1446
  msgstr ""
1447
 
1448
  #: polls-usage.php:139
@@ -1454,11 +1488,11 @@ msgid "Replace:"
1454
  msgstr ""
1455
 
1456
  #: polls-usage.php:145
1457
- msgid "Where <b>#ffffff</b> should be your background color for the poll."
1458
  msgstr ""
1459
 
1460
  #: polls-widget.php:64
1461
- #: polls.php:51
1462
  msgid "Polls"
1463
  msgstr ""
1464
 
@@ -1474,92 +1508,119 @@ msgstr ""
1474
  msgid "Select Multiple Polls"
1475
  msgstr ""
1476
 
1477
- #: polls.php:58
1478
  msgid "Poll Usage"
1479
  msgstr ""
1480
 
1481
- #: polls.php:377
1482
- #: polls.php:537
 
 
 
 
 
 
 
 
 
1483
  msgid "Loading"
1484
  msgstr ""
1485
 
1486
- #: polls.php:579
1487
- msgid "Note: There is a poll within this post, please visit the site to participate in this post's poll."
1488
  msgstr ""
1489
 
1490
- #: polls.php:922
1491
  msgid "Previous Page"
1492
  msgstr ""
1493
 
1494
- #: polls.php:930
1495
  msgid "Next Page"
1496
  msgstr ""
1497
 
1498
- #: polls.php:939
1499
  msgid "Pages"
1500
  msgstr ""
1501
 
1502
- #: polls.php:941
1503
  msgid "Go to First Page"
1504
  msgstr ""
1505
 
1506
- #: polls.php:941
1507
  msgid "First"
1508
  msgstr ""
1509
 
1510
- #: polls.php:944
1511
- #: polls.php:956
1512
  msgid "Go to Page"
1513
  msgstr ""
1514
 
1515
- #: polls.php:951
1516
  msgid "Page"
1517
  msgstr ""
1518
 
1519
- #: polls.php:959
1520
  msgid "Go to Last Page"
1521
  msgstr ""
1522
 
1523
- #: polls.php:959
1524
  msgid "Last"
1525
  msgstr ""
1526
 
1527
- #: polls.php:1123
1528
  #, php-format
1529
  msgid "Unable To Update Poll Total Votes And Poll Total Voters. Poll ID #%s"
1530
  msgstr ""
1531
 
1532
- #: polls.php:1127
1533
  #, php-format
1534
  msgid "You Had Already Voted For This Poll. Poll ID #%s"
1535
  msgstr ""
1536
 
1537
- #: polls.php:1131
1538
  #, php-format
1539
  msgid "Invalid Poll ID. Poll ID #%s"
1540
  msgstr ""
1541
 
1542
- #: polls.php:1187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1543
  msgid "How Is My Site?"
1544
  msgstr ""
1545
 
1546
- #: polls.php:1190
1547
  msgid "Good"
1548
  msgstr ""
1549
 
1550
- #: polls.php:1191
1551
  msgid "Excellent"
1552
  msgstr ""
1553
 
1554
- #: polls.php:1192
1555
  msgid "Bad"
1556
  msgstr ""
1557
 
1558
- #: polls.php:1193
1559
  msgid "Can Be Improved"
1560
  msgstr ""
1561
 
1562
- #: polls.php:1194
1563
  msgid "No Comments"
1564
  msgstr ""
1565
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WP-Polls 2.21\n"
4
  "POT-Creation-Date: \n"
5
+ "PO-Revision-Date: 2007-09-30 16:05+0800\n"
6
  "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n"
7
  "Language-Team: Ravan <ravanhagen@gmail.com>\n"
8
  "MIME-Version: 1.0\n"
15
  "X-Poedit-SearchPath-0: .\n"
16
 
17
  #: polls-add.php:36
18
+ #: polls-add.php:174
19
+ #: polls-add.php:246
20
+ #: polls.php:58
21
  msgid "Add Poll"
22
  msgstr ""
23
 
37
  msgid "Poll '%s' Added Successfully."
38
  msgstr ""
39
 
40
+ #: polls-add.php:124
41
  #: polls-logs.php:291
42
  #: polls-logs.php:334
43
+ #: polls-manager.php:237
44
  msgid "Answer"
45
  msgstr ""
46
 
47
+ #: polls-add.php:153
48
  msgid "You need at least a minimum of 2 poll answers."
49
  msgstr ""
50
 
51
+ #: polls-add.php:176
52
+ #: polls-manager.php:307
53
  msgid "Poll Question"
54
  msgstr ""
55
 
56
+ #: polls-add.php:179
57
  msgid "Question:"
58
  msgstr ""
59
 
60
+ #: polls-add.php:184
61
+ #: polls-manager.php:315
62
  msgid "Poll Answers"
63
  msgstr ""
64
 
65
+ #: polls-add.php:189
66
+ #: polls-manager.php:355
67
  msgid "Add Answer"
68
  msgstr ""
69
 
70
+ #: polls-add.php:189
71
+ #: polls-manager.php:355
72
  msgid "Remove Answer"
73
  msgstr ""
74
 
75
+ #: polls-add.php:201
76
+ #: polls-manager.php:342
77
  #, php-format
78
  msgid "Answer %s:"
79
  msgstr ""
80
 
81
+ #: polls-add.php:210
82
+ #: polls-manager.php:366
83
  msgid "Poll Multiple Answers"
84
  msgstr ""
85
 
86
+ #: polls-add.php:213
87
+ #: polls-manager.php:369
88
  msgid "Allows Users To Select More Than One Answer?"
89
  msgstr ""
90
 
91
+ #: polls-add.php:216
92
+ #: polls-manager.php:372
93
+ #: polls-options.php:201
94
+ #: polls-options.php:210
95
+ #: polls-options.php:323
96
  #: polls-widget.php:105
97
  msgid "No"
98
  msgstr ""
99
 
100
+ #: polls-add.php:217
101
  #: polls-logs.php:381
102
+ #: polls-manager.php:373
103
+ #: polls-manager.php:589
104
+ #: polls-options.php:202
105
+ #: polls-options.php:211
106
+ #: polls-options.php:324
107
+ #: polls-uninstall.php:130
108
  #: polls-widget.php:110
109
  msgid "Yes"
110
  msgstr ""
111
 
112
+ #: polls-add.php:222
113
+ #: polls-manager.php:378
114
  msgid "Maximum Number Of Selected Answers Allowed?"
115
  msgstr ""
116
 
117
+ #: polls-add.php:235
118
+ #: polls-manager.php:395
119
  msgid "Poll Start/End Date"
120
  msgstr ""
121
 
122
+ #: polls-add.php:238
123
  msgid "Start Date/Time:"
124
  msgstr ""
125
 
126
+ #: polls-add.php:242
127
  msgid "End Date/Time:"
128
  msgstr ""
129
 
130
+ #: polls-add.php:243
131
+ #: polls-manager.php:417
132
  msgid "Do NOT Expire This Poll"
133
  msgstr ""
134
 
135
+ #: polls-add.php:246
136
+ #: polls-manager.php:443
137
+ #: polls-options.php:381
138
  #: polls-templates.php:464
139
  msgid "Cancel"
140
  msgstr ""
141
 
142
  #: polls-admin-ajax.php:38
143
  #: polls-admin-js.php:78
144
+ #: polls-manager.php:590
145
  msgid "Delete All Logs"
146
  msgstr ""
147
 
186
 
187
  #: polls-admin-ajax.php:78
188
  #: polls-admin-js.php:172
189
+ #: polls-manager.php:442
190
  msgid "Open Poll"
191
  msgstr ""
192
 
202
 
203
  #: polls-admin-ajax.php:89
204
  #: polls-admin-js.php:195
205
+ #: polls-manager.php:441
206
  msgid "Close Poll"
207
  msgstr ""
208
 
232
  msgstr ""
233
 
234
  #: polls-admin-js.php:69
235
+ #: polls-manager.php:593
236
  msgid "No poll logs available."
237
  msgstr ""
238
 
250
  msgid "Please check the 'Yes' checkbox if you want to delete all logs for this poll ONLY."
251
  msgstr ""
252
 
253
+ #: polls-admin-js.php:206
254
+ msgid "Enter Poll ID"
255
+ msgstr ""
256
+
257
+ #: polls-admin-js.php:208
258
+ msgid "Error: Poll ID must be numeric"
259
+ msgstr ""
260
+
261
+ #: polls-admin-js.php:208
262
+ msgid "Please enter Poll ID again"
263
+ msgstr ""
264
+
265
  #: polls-js.php:36
266
  msgid "Your last request is still being processed. Please wait a while ..."
267
  msgstr ""
408
  msgid "Date"
409
  msgstr ""
410
 
411
+ #: polls-logs.php:301
412
+ #: polls-logs.php:329
413
+ #: polls-manager.php:400
414
+ #: polls-manager.php:412
415
+ #: polls-manager.php:489
416
+ #: polls-manager.php:497
417
+ #: polls.php:350
418
+ #: polls.php:355
419
+ #: polls.php:466
420
+ #: polls.php:471
421
+ #: polls.php:848
422
+ #: polls.php:852
423
+ #, php-format
424
+ msgid "%s @ %s"
425
+ msgstr ""
426
+
427
  #: polls-logs.php:309
428
  #: polls-logs.php:339
429
  msgid "User"
464
  msgstr ""
465
 
466
  #: polls-manager.php:39
467
+ #: polls-manager.php:305
468
+ #: polls-manager.php:431
469
  msgid "Edit Poll"
470
  msgstr ""
471
 
499
  msgid "Poll '%s' Edited Successfully."
500
  msgstr ""
501
 
502
+ #: polls-manager.php:278
503
  msgid "No more poll's answer to be removed."
504
  msgstr ""
505
 
506
+ #: polls-manager.php:310
507
+ #: polls-manager.php:466
508
  msgid "Question"
509
  msgstr ""
510
 
511
+ #: polls-manager.php:319
512
  msgid "Answer No.:"
513
  msgstr ""
514
 
515
+ #: polls-manager.php:320
516
  msgid "Answer Text:"
517
  msgstr ""
518
 
519
+ #: polls-manager.php:321
520
  msgid "No. Of Votes"
521
  msgstr ""
522
 
523
+ #: polls-manager.php:330
524
  msgid "Null Votes"
525
  msgstr ""
526
 
527
+ #: polls-manager.php:344
528
+ #: polls-manager.php:544
529
  msgid "Delete"
530
  msgstr ""
531
 
532
+ #: polls-manager.php:344
533
  #, php-format
534
  msgid "You are about to delete this poll's answer '%s'."
535
  msgstr ""
536
 
537
+ #: polls-manager.php:356
538
  msgid "Total Votes:"
539
  msgstr ""
540
 
541
+ #: polls-manager.php:361
542
+ #: polls-manager.php:575
543
  msgid "Total Voters:"
544
  msgstr ""
545
 
546
+ #: polls-manager.php:398
547
+ #: polls-manager.php:468
548
  msgid "Start Date/Time"
549
  msgstr ""
550
 
551
+ #: polls-manager.php:401
552
  msgid "Edit Start Date/Time"
553
  msgstr ""
554
 
555
+ #: polls-manager.php:406
556
+ #: polls-manager.php:469
557
  msgid "End Date/Time"
558
  msgstr ""
559
 
560
+ #: polls-manager.php:410
561
  msgid "This Poll Will Not Expire"
562
  msgstr ""
563
 
564
+ #: polls-manager.php:441
565
  #, php-format
566
  msgid "You are about to CLOSE this poll '%s'."
567
  msgstr ""
568
 
569
+ #: polls-manager.php:442
570
  #, php-format
571
  msgid "You are about to OPEN this poll '%s'."
572
  msgstr ""
573
 
574
+ #: polls-manager.php:461
575
+ #: polls.php:57
576
  msgid "Manage Polls"
577
  msgstr ""
578
 
579
+ #: polls-manager.php:465
580
  msgid "ID"
581
  msgstr ""
582
 
583
+ #: polls-manager.php:467
584
  #: polls-templates.php:116
585
  #: polls-templates.php:119
586
+ #: polls.php:1316
587
+ #: polls.php:1319
588
  msgid "Total Voters"
589
  msgstr ""
590
 
591
+ #: polls-manager.php:470
592
  msgid "Status"
593
  msgstr ""
594
 
595
+ #: polls-manager.php:471
596
  msgid "Action"
597
  msgstr ""
598
 
599
+ #: polls-manager.php:495
600
+ #: polls.php:353
601
+ #: polls.php:469
602
+ #: polls.php:850
603
  msgid "No Expiry"
604
  msgstr ""
605
 
606
+ #: polls-manager.php:520
607
+ #: polls-manager.php:524
608
+ #: polls-manager.php:527
609
  msgid "Displayed:"
610
  msgstr ""
611
 
612
+ #: polls-manager.php:535
613
  msgid "Open"
614
  msgstr ""
615
 
616
+ #: polls-manager.php:537
617
  msgid "Future"
618
  msgstr ""
619
 
620
+ #: polls-manager.php:539
621
  msgid "Closed"
622
  msgstr ""
623
 
624
+ #: polls-manager.php:542
625
  msgid "Logs"
626
  msgstr ""
627
 
628
+ #: polls-manager.php:543
629
  msgid "Edit"
630
  msgstr ""
631
 
632
+ #: polls-manager.php:544
633
  #, php-format
634
  msgid "You are about to delete this poll, '%s'."
635
  msgstr ""
636
 
637
+ #: polls-manager.php:552
638
  msgid "No Polls Found"
639
  msgstr ""
640
 
641
+ #: polls-manager.php:560
642
  #: polls-usage.php:103
643
  msgid "Polls Stats"
644
  msgstr ""
645
 
646
+ #: polls-manager.php:563
647
  msgid "Total Polls:"
648
  msgstr ""
649
 
650
+ #: polls-manager.php:567
651
  msgid "Total Polls' Answers:"
652
  msgstr ""
653
 
654
+ #: polls-manager.php:571
655
  msgid "Total Votes Casted:"
656
  msgstr ""
657
 
658
+ #: polls-manager.php:582
659
  msgid "Polls Logs"
660
  msgstr ""
661
 
662
+ #: polls-manager.php:588
663
  msgid "Are You Sure You Want To Delete All Polls Logs?"
664
  msgstr ""
665
 
666
+ #: polls-manager.php:590
667
  msgid "You are about to delete all poll logs. This action is not reversible."
668
  msgstr ""
669
 
670
+ #: polls-manager.php:597
671
  msgid "Note:<br />If your logging method is by IP and Cookie or by Cookie, users may still be unable to vote if they have voted before as the cookie is still stored in their computer."
672
  msgstr ""
673
 
674
  #: polls-options.php:68
675
+ #: polls-options.php:133
676
  #: polls-options.php:136
 
677
  msgid "Poll Bar Style"
678
  msgstr ""
679
 
722
  msgstr ""
723
 
724
  #: polls-options.php:80
725
+ #: polls-options.php:282
726
  msgid "Logging Method"
727
  msgstr ""
728
 
740
  msgid "No Poll Option Updated"
741
  msgstr ""
742
 
743
+ #: polls-options.php:131
744
+ #: polls.php:59
745
  msgid "Poll Options"
746
  msgstr ""
747
 
748
+ #: polls-options.php:162
749
  msgid "Use CSS Style"
750
  msgstr ""
751
 
752
+ #: polls-options.php:166
753
  msgid "Poll Bar Background"
754
  msgstr ""
755
 
756
+ #: polls-options.php:171
757
  msgid "Poll Bar Border"
758
  msgstr ""
759
 
760
+ #: polls-options.php:176
761
  msgid "Poll Bar Height"
762
  msgstr ""
763
 
764
+ #: polls-options.php:180
765
  msgid "Your poll bar will look like this"
766
  msgstr ""
767
 
768
+ #: polls-options.php:195
769
  msgid "Polls AJAX Style"
770
  msgstr ""
771
 
772
+ #: polls-options.php:198
773
  msgid "Show Loading Image With Text"
774
  msgstr ""
775
 
776
+ #: polls-options.php:207
777
  msgid "Show Fading In And Fading Out Of Poll"
778
  msgstr ""
779
 
780
+ #: polls-options.php:218
781
  msgid "Sorting Of Poll Answers"
782
  msgstr ""
783
 
784
+ #: polls-options.php:221
785
  msgid "Sort Poll Answers By:"
786
  msgstr ""
787
 
788
+ #: polls-options.php:224
789
+ #: polls-options.php:249
790
  msgid "Exact Order"
791
  msgstr ""
792
 
793
+ #: polls-options.php:225
794
+ #: polls-options.php:250
795
  msgid "Alphabetical Order"
796
  msgstr ""
797
 
798
+ #: polls-options.php:226
799
+ #: polls-options.php:251
800
+ msgid "Random Order"
801
+ msgstr ""
802
+
803
+ #: polls-options.php:231
804
  msgid "Sort Order Of Poll Answers:"
805
  msgstr ""
806
 
807
+ #: polls-options.php:234
808
+ #: polls-options.php:259
809
  msgid "Ascending"
810
  msgstr ""
811
 
812
+ #: polls-options.php:235
813
+ #: polls-options.php:260
814
  msgid "Descending"
815
  msgstr ""
816
 
817
+ #: polls-options.php:242
818
  msgid "Sorting Of Poll Results"
819
  msgstr ""
820
 
821
+ #: polls-options.php:245
822
  msgid "Sort Poll Results By:"
823
  msgstr ""
824
 
825
+ #: polls-options.php:248
826
  #: polls-templates.php:110
827
  #: polls-templates.php:113
828
+ #: polls.php:1313
829
+ #: polls.php:1314
830
  msgid "Votes"
831
  msgstr ""
832
 
833
+ #: polls-options.php:256
834
  msgid "Sort Order Of Poll Results:"
835
  msgstr ""
836
 
837
+ #: polls-options.php:267
838
  msgid "Allow To Vote"
839
  msgstr ""
840
 
841
+ #: polls-options.php:270
842
  msgid "Who Is Allowed To Vote?"
843
  msgstr ""
844
 
845
+ #: polls-options.php:273
846
  msgid "Guests Only"
847
  msgstr ""
848
 
849
+ #: polls-options.php:274
850
  msgid "Registered Users Only"
851
  msgstr ""
852
 
853
+ #: polls-options.php:275
854
  msgid "Registered Users And Guests"
855
  msgstr ""
856
 
857
+ #: polls-options.php:285
858
  msgid "Poll Logging Method:"
859
  msgstr ""
860
 
861
+ #: polls-options.php:288
862
  msgid "Do Not Log"
863
  msgstr ""
864
 
865
+ #: polls-options.php:289
866
  msgid "Logged By Cookie"
867
  msgstr ""
868
 
869
+ #: polls-options.php:290
870
  msgid "Logged By IP"
871
  msgstr ""
872
 
873
+ #: polls-options.php:291
874
  msgid "Logged By Cookie And IP"
875
  msgstr ""
876
 
877
+ #: polls-options.php:292
878
  msgid "Logged By Username"
879
  msgstr ""
880
 
881
+ #: polls-options.php:299
882
  msgid "Poll Archive"
883
  msgstr ""
884
 
885
+ #: polls-options.php:302
886
  msgid "Number Of Polls Per Page:"
887
  msgstr ""
888
 
889
+ #: polls-options.php:306
890
  msgid "Type Of Polls To Display In Poll Archive:"
891
  msgstr ""
892
 
893
+ #: polls-options.php:309
894
  msgid "Closed Polls Only"
895
  msgstr ""
896
 
897
+ #: polls-options.php:310
898
  msgid "Opened Polls Only"
899
  msgstr ""
900
 
901
+ #: polls-options.php:311
902
  msgid "Closed And Opened Polls"
903
  msgstr ""
904
 
905
+ #: polls-options.php:316
906
  msgid "Poll Archive URL:"
907
  msgstr ""
908
 
909
+ #: polls-options.php:320
910
  msgid "Display Poll Archive Link Below Poll?"
911
  msgstr ""
912
 
913
+ #: polls-options.php:329
914
  msgid "Note: Only polls' results will be shown in the Poll Archive regardless of whether the poll is closed or opened."
915
  msgstr ""
916
 
917
+ #: polls-options.php:334
918
+ #: polls-options.php:337
919
  #: polls-widget.php:114
920
  msgid "Current Active Poll"
921
  msgstr ""
922
 
923
+ #: polls-options.php:340
924
  #: polls-widget.php:120
925
  msgid "Do NOT Display Poll (Disable)"
926
  msgstr ""
927
 
928
+ #: polls-options.php:341
929
  #: polls-widget.php:125
930
  msgid "Display Random Poll"
931
  msgstr ""
932
 
933
+ #: polls-options.php:342
934
  #: polls-widget.php:130
935
  msgid "Display Latest Poll"
936
  msgstr ""
937
 
938
+ #: polls-options.php:344
939
  #: polls-widget.php:135
940
  msgid "Display Multiple Polls"
941
  msgstr ""
942
 
943
+ #: polls-options.php:366
944
+ msgid "Note: If you chose 'Display Multiple Polls' for the above option, you need to configure it in Presentation -> Widgets -> Poll."
945
  msgstr ""
946
 
947
+ #: polls-options.php:370
948
  msgid "When Poll Is Closed"
949
  msgstr ""
950
 
951
+ #: polls-options.php:373
952
  msgid "Display Poll's Results"
953
  msgstr ""
954
 
955
+ #: polls-options.php:374
956
  msgid "Do Not Display Poll In Post/Sidebar"
957
  msgstr ""
958
 
959
+ #: polls-options.php:381
960
  msgid "Update Options"
961
  msgstr ""
962
 
1014
 
1015
  #: polls-templates.php:104
1016
  #: polls-templates.php:119
1017
+ #: polls.php:1307
1018
+ #: polls.php:1320
1019
  msgid "Vote"
1020
  msgstr ""
1021
 
1022
  #: polls-templates.php:104
1023
+ #: polls.php:1308
1024
  msgid "View Results Of This Poll"
1025
  msgstr ""
1026
 
1027
  #: polls-templates.php:104
1028
+ #: polls.php:1308
1029
  msgid "View Results"
1030
  msgstr ""
1031
 
1032
  #: polls-templates.php:113
1033
+ #: polls.php:1314
1034
  msgid "You Have Voted For This Choice"
1035
  msgstr ""
1036
 
1037
  #: polls-templates.php:119
1038
+ #: polls.php:1320
1039
  msgid "Vote For This Poll"
1040
  msgstr ""
1041
 
1042
  #: polls-templates.php:122
1043
  #: polls-usage.php:80
1044
+ #: polls.php:1347
1045
  msgid "Polls Archive"
1046
  msgstr ""
1047
 
1054
  msgstr ""
1055
 
1056
  #: polls-templates.php:131
1057
+ #: polls.php:1322
1058
  msgid "Sorry, there are no polls available at the moment."
1059
  msgstr ""
1060
 
1061
  #: polls-templates.php:134
1062
+ #: polls.php:1323
1063
  msgid "An error has occurred when processing your poll."
1064
  msgstr ""
1065
 
1066
  #: polls-templates.php:144
1067
+ #: polls.php:60
1068
  msgid "Poll Templates"
1069
  msgstr ""
1070
 
1302
  msgid "Update Templates"
1303
  msgstr ""
1304
 
1305
+ #: polls-uninstall.php:39
1306
+ #: polls-uninstall.php:131
1307
  msgid "UNINSTALL WP-Polls"
1308
  msgstr ""
1309
 
1310
+ #: polls-uninstall.php:46
1311
  #, php-format
1312
  msgid "Table '%s' has been deleted."
1313
  msgstr ""
1314
 
1315
+ #: polls-uninstall.php:55
1316
  #, php-format
1317
  msgid "Setting Key '%s' has been deleted."
1318
  msgstr ""
1319
 
1320
+ #: polls-uninstall.php:59
1321
  #, php-format
1322
  msgid "Error deleting Setting Key '%s'."
1323
  msgstr ""
1324
 
1325
+ #: polls-uninstall.php:81
1326
+ #: polls-uninstall.php:91
1327
+ #: polls.php:62
1328
  msgid "Uninstall WP-Polls"
1329
  msgstr ""
1330
 
1331
+ #: polls-uninstall.php:82
1332
  #, php-format
1333
  msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-Polls Will Be Deactivated Automatically."
1334
  msgstr ""
1335
 
1336
+ #: polls-uninstall.php:93
1337
  msgid "Deactivating WP-Polls plugin does not remove any data that may have been created, such as the poll data and the poll's voting logs. To completely remove this plugin, you can uninstall it here."
1338
  msgstr ""
1339
 
1340
+ #: polls-uninstall.php:96
1341
  msgid "WARNING:"
1342
  msgstr ""
1343
 
1344
+ #: polls-uninstall.php:97
1345
  msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first."
1346
  msgstr ""
1347
 
1348
+ #: polls-uninstall.php:100
1349
  msgid "The following WordPress Options/Tables will be DELETED:"
1350
  msgstr ""
1351
 
1352
+ #: polls-uninstall.php:104
1353
  msgid "WordPress Options"
1354
  msgstr ""
1355
 
1356
+ #: polls-uninstall.php:105
1357
  msgid "WordPress Tables"
1358
  msgstr ""
1359
 
1360
+ #: polls-uninstall.php:131
1361
  msgid ""
1362
  "You Are About To Uninstall WP-Polls From WordPress.\\n"
1363
  "This Action Is Not Reversible.\\n"
1387
 
1388
  #: polls-usage.php:46
1389
  #: polls-usage.php:49
1390
+ msgid "where <strong>2</strong> is your poll id."
1391
  msgstr ""
1392
 
1393
  #: polls-usage.php:47
1395
  msgstr ""
1396
 
1397
  #: polls-usage.php:52
1398
+ msgid "Scroll down for instructions on how to create <strong>Polls Archive</strong>."
1399
  msgstr ""
1400
 
1401
  #: polls-usage.php:57
1403
  msgstr ""
1404
 
1405
  #: polls-usage.php:60
1406
+ msgid "<strong>Activate</strong> WP-Polls Widget Plugin"
1407
  msgstr ""
1408
 
1409
  #: polls-usage.php:63
1411
  msgstr ""
1412
 
1413
  #: polls-usage.php:66
1414
+ msgid "<strong>Drag</strong> the Polls Widget to your sidebar"
1415
  msgstr ""
1416
 
1417
  #: polls-usage.php:69
1418
+ msgid "You can <strong>configure</strong> the Polls Widget by clicking on the configure icon"
1419
  msgstr ""
1420
 
1421
  #: polls-usage.php:72
1423
  msgstr ""
1424
 
1425
  #: polls-usage.php:75
1426
+ msgid " down for instructions on how to create a <strong>Polls Archive</strong>."
1427
  msgstr ""
1428
 
1429
  #: polls-usage.php:83
1435
  msgstr ""
1436
 
1437
  #: polls-usage.php:89
1438
+ #, php-format
1439
+ msgid "Type '<strong>%s</strong>' in the post's content area (without the quotes)"
1440
  msgstr ""
1441
 
1442
  #: polls-usage.php:92
1443
+ msgid "Type '<strong>pollsarchive</strong>' in the post's slug area (without the quotes)"
1444
  msgstr ""
1445
 
1446
  #: polls-usage.php:95
1448
  msgstr ""
1449
 
1450
  #: polls-usage.php:98
1451
+ msgid "If you <strong>ARE NOT</strong> using nice permalinks, you need to go to 'WP-Admin -> Polls -> Poll Option' and under '<strong>Poll Archive -> Polls Archive URL</strong>', you need to fill in the URL to the Polls Archive Page you created above."
1452
  msgstr ""
1453
 
1454
  #: polls-usage.php:104
1476
  msgstr ""
1477
 
1478
  #: polls-usage.php:136
1479
+ msgid "Open <strong>poll-css.css</strong>"
1480
  msgstr ""
1481
 
1482
  #: polls-usage.php:139
1488
  msgstr ""
1489
 
1490
  #: polls-usage.php:145
1491
+ msgid "Where <strong>#ffffff</strong> should be your background color for the poll."
1492
  msgstr ""
1493
 
1494
  #: polls-widget.php:64
1495
+ #: polls.php:54
1496
  msgid "Polls"
1497
  msgstr ""
1498
 
1508
  msgid "Select Multiple Polls"
1509
  msgstr ""
1510
 
1511
+ #: polls.php:61
1512
  msgid "Poll Usage"
1513
  msgstr ""
1514
 
1515
+ #: polls.php:201
1516
+ #: polls.php:207
1517
+ msgid "Poll"
1518
+ msgstr ""
1519
+
1520
+ #: polls.php:208
1521
+ msgid "Insert Poll"
1522
+ msgstr ""
1523
+
1524
+ #: polls.php:431
1525
+ #: polls.php:591
1526
  msgid "Loading"
1527
  msgstr ""
1528
 
1529
+ #: polls.php:634
1530
+ msgid "Note: There is a poll embedded within this post, please visit the site to participate in this post's poll."
1531
  msgstr ""
1532
 
1533
+ #: polls.php:977
1534
  msgid "Previous Page"
1535
  msgstr ""
1536
 
1537
+ #: polls.php:985
1538
  msgid "Next Page"
1539
  msgstr ""
1540
 
1541
+ #: polls.php:994
1542
  msgid "Pages"
1543
  msgstr ""
1544
 
1545
+ #: polls.php:996
1546
  msgid "Go to First Page"
1547
  msgstr ""
1548
 
1549
+ #: polls.php:996
1550
  msgid "First"
1551
  msgstr ""
1552
 
1553
+ #: polls.php:999
1554
+ #: polls.php:1011
1555
  msgid "Go to Page"
1556
  msgstr ""
1557
 
1558
+ #: polls.php:1006
1559
  msgid "Page"
1560
  msgstr ""
1561
 
1562
+ #: polls.php:1014
1563
  msgid "Go to Last Page"
1564
  msgstr ""
1565
 
1566
+ #: polls.php:1014
1567
  msgid "Last"
1568
  msgstr ""
1569
 
1570
+ #: polls.php:1187
1571
  #, php-format
1572
  msgid "Unable To Update Poll Total Votes And Poll Total Voters. Poll ID #%s"
1573
  msgstr ""
1574
 
1575
+ #: polls.php:1191
1576
  #, php-format
1577
  msgid "You Had Already Voted For This Poll. Poll ID #%s"
1578
  msgstr ""
1579
 
1580
+ #: polls.php:1195
1581
  #, php-format
1582
  msgid "Invalid Poll ID. Poll ID #%s"
1583
  msgstr ""
1584
 
1585
+ #: polls.php:1221
1586
+ #: polls.php:1223
1587
+ #: polls.php:1233
1588
+ msgid "WP-Polls"
1589
+ msgstr ""
1590
+
1591
+ #: polls.php:1235
1592
+ msgid "polls were created."
1593
+ msgstr ""
1594
+
1595
+ #: polls.php:1236
1596
+ msgid "polls' answers were given."
1597
+ msgstr ""
1598
+
1599
+ #: polls.php:1237
1600
+ msgid "votes were casted."
1601
+ msgstr ""
1602
+
1603
+ #: polls.php:1291
1604
  msgid "How Is My Site?"
1605
  msgstr ""
1606
 
1607
+ #: polls.php:1294
1608
  msgid "Good"
1609
  msgstr ""
1610
 
1611
+ #: polls.php:1295
1612
  msgid "Excellent"
1613
  msgstr ""
1614
 
1615
+ #: polls.php:1296
1616
  msgid "Bad"
1617
  msgstr ""
1618
 
1619
+ #: polls.php:1297
1620
  msgid "Can Be Improved"
1621
  msgstr ""
1622
 
1623
+ #: polls.php:1298
1624
  msgid "No Comments"
1625
  msgstr ""
1626
 
readme.html CHANGED
@@ -2,7 +2,7 @@
2
  <html>
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
- <title>WP-Polls 2.20 Readme</title>
6
  <style type="text/css" media="screen">
7
  /* Default Style */
8
  BODY {
@@ -204,7 +204,7 @@
204
  <body>
205
  <div id="Container">
206
  <!-- Title -->
207
- <div id="Title">WP-Polls 2.20&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
208
 
209
  <!-- Tabs -->
210
  <ul id="Tabs">
@@ -227,13 +227,13 @@
227
  <strong>EMail:</strong><br /><strong>&raquo;</strong>
228
  <script type="text/javascript">
229
  /* <![CDATA[*/
230
- document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Polls%202.20%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>');
231
  /* ]]> */
232
  </script>
233
  </p>
234
  <p>
235
  <strong>Website:</strong><br />
236
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/" title="http://www.lesterchan.net/">http://www.lesterchan.net/</a>
237
  </p>
238
  <p>
239
  <strong>Features:</strong><br />
@@ -241,13 +241,18 @@
241
  </p>
242
  <p>
243
  <strong>Download:</strong><br />
244
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads.php?id=10" title="http://www.lesterchan.net/others/downloads.php?id=10">WP-Polls 2.20 For WordPress 2.1.x And Above</a><br />
245
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-polls213.zip" title="http://www.lesterchan.net/others/downloads/wp-polls213.zip">WP-Polls 2.13 For WordPress 2.0.x</a><br />
246
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-polls202a.zip" title="http://www.lesterchan.net/others/downloads/wp-polls202a.zip">WP-Polls 2.02a For WordPress 1.5.2</a>
 
 
 
 
 
247
  </p>
248
  <p>
249
  <strong>Demo:</strong><br />
250
- <strong>&raquo;</strong> <a href="http://www.lesterchan.net/wordpress/" title="http://www.lesterchan.net/wordpress/">http://www.lesterchan.net/wordpress/</a>
251
  </p>
252
  <p>
253
  <strong>Development:</strong><br />
@@ -268,7 +273,7 @@
268
  </p>
269
  <p>
270
  <strong>Updated:</strong><br />
271
- <strong>&raquo;</strong> 1st June 2007
272
  </p>
273
  <p>
274
  <strong>Note:</strong><br />
@@ -291,6 +296,21 @@
291
  <div id="Changelog" style="display: none;">
292
  <div class="SubTitle">&raquo; Changelog</div>
293
  <ul>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
294
  <li>
295
  <strong>Version 2.20 (01-06-2007)</strong>
296
  <ul>
@@ -303,7 +323,7 @@
303
  <li>NEW: Major Changes To The Administration Panel For WP-Polls</li>
304
  <li>NEW: AJAX Added To The Administration Panel For WP-Polls</li>
305
  <li>NEW: Default Poll's Result Template Will Now Show Number Of Votes Beside The Percentage</li>
306
- <li>NEW: Term "Total Votes" Changed To "Total Voters". <a href="http://www.lesterchan.net/wordpress/2007/02/09/total-voters-and-total-votes/">Refer To Here</a></li>
307
  <li>NEW: Removed Polls From Feed If The Poll Is Embedded Into The Post Using [poll=ID]</li>
308
  <li>NEW: Filtering Of Individual Poll Logs</li>
309
  <li>FIXED: Poll Archive Will Now Show Only Polls Results</li>
@@ -488,7 +508,7 @@
488
  <!-- Upgrade Instructions -->
489
  <div id="Upgrade" style="display: none;">
490
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
491
- <div class="SubSubTitle">From v2.xx To v2.20</div>
492
  <ol>
493
  <li>
494
  <strong>Deactivate</strong> WP-Polls Plugin
@@ -668,6 +688,6 @@
668
  </div>
669
  </div>
670
  </div>
671
- <p id="Copyright">WP-Polls 2.20<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
672
  </body>
673
  </html>
2
  <html>
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+ <title>WP-Polls 2.21 Readme</title>
6
  <style type="text/css" media="screen">
7
  /* Default Style */
8
  BODY {
204
  <body>
205
  <div id="Container">
206
  <!-- Title -->
207
+ <div id="Title">WP-Polls 2.21&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
208
 
209
  <!-- Tabs -->
210
  <ul id="Tabs">
227
  <strong>EMail:</strong><br /><strong>&raquo;</strong>
228
  <script type="text/javascript">
229
  /* <![CDATA[*/
230
+ document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Polls%202.21%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>');
231
  /* ]]> */
232
  </script>
233
  </p>
234
  <p>
235
  <strong>Website:</strong><br />
236
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/" title="http://lesterchan.net/">http://lesterchan.net/</a>
237
  </p>
238
  <p>
239
  <strong>Features:</strong><br />
241
  </p>
242
  <p>
243
  <strong>Download:</strong><br />
244
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/others/downloads.php?id=10" title="http://lesterchan.net/others/downloads.php?id=10">WP-Polls 2.21 For WordPress 2.3.x</a><br />
245
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/others/downloads/wp-polls220.zip" title="http://lesterchan.net/others/downloads/wp-polls220.zip">WP-Polls 2.20 For WordPress 2.1.x And 2.2.x</a><br />
246
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/others/downloads/wp-polls213.zip" title="http://lesterchan.net/others/downloads/wp-polls213.zip">WP-Polls 2.13 For WordPress 2.0.x</a><br />
247
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/others/downloads/wp-polls202a.zip" title="http://lesterchan.net/others/downloads/wp-polls202a.zip">WP-Polls 2.02a For WordPress 1.5.2</a>
248
+ </p>
249
+ <p>
250
+ <strong>Screenshots:</strong><br />
251
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/wordpress/screenshots/browse/wp-polls/" title="http://lesterchan.net/wordpress/screenshots/browse/wp-polls/">http://lesterchan.net/wordpress/screenshots/browse/wp-polls/</a>
252
  </p>
253
  <p>
254
  <strong>Demo:</strong><br />
255
+ <strong>&raquo;</strong> <a href="http://lesterchan.net/wordpress/" title="http://lesterchan.net/wordpress/">http://lesterchan.net/wordpress/</a>
256
  </p>
257
  <p>
258
  <strong>Development:</strong><br />
273
  </p>
274
  <p>
275
  <strong>Updated:</strong><br />
276
+ <strong>&raquo;</strong> 1st October 2007
277
  </p>
278
  <p>
279
  <strong>Note:</strong><br />
296
  <div id="Changelog" style="display: none;">
297
  <div class="SubTitle">&raquo; Changelog</div>
298
  <ul>
299
+ <li>
300
+ <strong>Version 2.21 (01-10-2007)</strong>
301
+ <ul>
302
+ <li>NEW: Works For WordPress 2.3 Only</li>
303
+ <li>NEW: Added Quick Tag For Poll To Visual (TinyMCE) / Code Editor</li>
304
+ <li>NEW: New CSS Style For WP-Polls Archive (.wp-polls-archive)</li>
305
+ <li>NEW: Uses WP-Stats Filter To Add Stats Into WP-Stats Page</li>
306
+ <li>NEW: Ability To Add Polls To Excerpt</li>
307
+ <li>NEW: Added "Random Order" For Sorting Poll's Answers And Poll's Result Answers</li>
308
+ <li>FIXED: Language Problem By Setting Database Table To UTF8</li>
309
+ <li>FIXED: Some Text Not Translated In Polls Widget</li>
310
+ <li>FIXED: 2 Wrong Options Name In Polls Uninstall</li>
311
+ <li>FIXED: Some Translation Bug in polls-usage.php</li>
312
+ </ul>
313
+ </li>
314
  <li>
315
  <strong>Version 2.20 (01-06-2007)</strong>
316
  <ul>
323
  <li>NEW: Major Changes To The Administration Panel For WP-Polls</li>
324
  <li>NEW: AJAX Added To The Administration Panel For WP-Polls</li>
325
  <li>NEW: Default Poll's Result Template Will Now Show Number Of Votes Beside The Percentage</li>
326
+ <li>NEW: Term "Total Votes" Changed To "Total Voters". <a href="http://lesterchan.net/wordpress/2007/02/09/total-voters-and-total-votes/">Refer To Here</a></li>
327
  <li>NEW: Removed Polls From Feed If The Poll Is Embedded Into The Post Using [poll=ID]</li>
328
  <li>NEW: Filtering Of Individual Poll Logs</li>
329
  <li>FIXED: Poll Archive Will Now Show Only Polls Results</li>
508
  <!-- Upgrade Instructions -->
509
  <div id="Upgrade" style="display: none;">
510
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
511
+ <div class="SubSubTitle">From v2.xx To v2.21</div>
512
  <ol>
513
  <li>
514
  <strong>Deactivate</strong> WP-Polls Plugin
688
  </div>
689
  </div>
690
  </div>
691
+ <p id="Copyright">WP-Polls 2.21<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
692
  </body>
693
  </html>
readme.txt CHANGED
@@ -1,30 +1,30 @@
1
  === WP-Polls ===
2
  Contributors: GamerZ
3
- Donate link: http://www.lesterchan.net/wordpress
4
  Tags: poll, polls, polling, vote, booth, democracy, ajax, survey, post, widget
5
- Requires at least: 2.1.0
6
- Stable tag: 2.20
7
 
8
  Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.
9
 
10
  == Description ==
11
  WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.
12
 
13
- All the information (general, changelog, installation, upgrade, usage) you need about this plugin can be found here: [WP-Polls Readme](http://www.lesterchan.net/wordpress/readme/wp-polls.html "WP-Polls Readme").
14
  It is the exact same readme.html is included in the zip package.
15
 
16
  == Development Blog ==
17
 
18
- [GaMerZ WordPress Plugins Development Blog](http://www.lesterchan.net/wordpress/ "GaMerZ WordPress Plugins Development Blog")
19
 
20
  == Installation ==
21
 
22
- [WP-Polls Readme](http://www.lesterchan.net/wordpress/readme/wp-polls.html "WP-Polls Readme") (Installation Tab)
23
 
24
  == Screenshots ==
25
 
26
- [GaMerZ WordPress Plugins Screenshots](http://www.lesterchan.net/wordpress/screenshots/ "GaMerZ WordPress Plugins Screenshots")
27
 
28
  == Frequently Asked Questions ==
29
 
30
- You will need [GaMerZ WordPress Plugins Support Forums](http://forums.lesterchan.net/ "GaMerZ WordPress Plugins Support Forums")
1
  === WP-Polls ===
2
  Contributors: GamerZ
3
+ Donate link: http://lesterchan.net/wordpress
4
  Tags: poll, polls, polling, vote, booth, democracy, ajax, survey, post, widget
5
+ Requires at least: 2.3.0
6
+ Stable tag: 2.21
7
 
8
  Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.
9
 
10
  == Description ==
11
  WP-Polls is extremely customizable via templates and css styles and there are tons of options for you to choose to ensure that WP-Polls runs the way you wanted. It now supports multiple selection of answers.
12
 
13
+ All the information (general, changelog, installation, upgrade, usage) you need about this plugin can be found here: [WP-Polls Readme](http://lesterchan.net/wordpress/readme/wp-polls.html "WP-Polls Readme").
14
  It is the exact same readme.html is included in the zip package.
15
 
16
  == Development Blog ==
17
 
18
+ [GaMerZ WordPress Plugins Development Blog](http://lesterchan.net/wordpress/ "GaMerZ WordPress Plugins Development Blog")
19
 
20
  == Installation ==
21
 
22
+ [WP-Polls Readme](http://lesterchan.net/wordpress/readme/wp-polls.html "WP-Polls Readme") (Installation Tab)
23
 
24
  == Screenshots ==
25
 
26
+ [WP-Polls Screenshots](http://lesterchan.net/wordpress/screenshots/browse/wp-polls/ "WP-Polls Screenshots")
27
 
28
  == Frequently Asked Questions ==
29
 
30
+ [WP-Polls Support Forums](http://forums.lesterchan.net/index.php?board=15.0 "WP-Polls Support Forums")