WP-Polls - Version 2.31

Version Description

Download this release

Release Info

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

Code changes from version 2.30 to 2.31

polls-add.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.5 Plugin: WP-Polls 2.30 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.5 Plugin: WP-Polls 2.31 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
polls-admin-ajax.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.5 Plugin: WP-Polls 2.30 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
@@ -18,7 +18,12 @@
18
 
19
 
20
  ### Include wp-config.php
21
- @require('../../../wp-config.php');
 
 
 
 
 
22
 
23
 
24
  ### Check Whether User Can Manage Polls
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.5 Plugin: WP-Polls 2.31 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
18
 
19
 
20
  ### Include wp-config.php
21
+ $wp_root = '../../..';
22
+ if (file_exists($wp_root.'/wp-load.php')) {
23
+ require_once($wp_root.'/wp-load.php');
24
+ } else {
25
+ require_once($wp_root.'/wp-config.php');
26
+ }
27
 
28
 
29
  ### Check Whether User Can Manage Polls
polls-admin-js.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  +----------------------------------------------------------------+
3
  | |
4
- | WordPress 2.5 Plugin: WP-Polls 2.30 |
5
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
6
  | |
7
  | File Written By: |
1
  /*
2
  +----------------------------------------------------------------+
3
  | |
4
+ | WordPress 2.5 Plugin: WP-Polls 2.31 |
5
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
6
  | |
7
  | File Written By: |
polls-css.css CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  +----------------------------------------------------------------+
3
  | |
4
- | WordPress 2.5 Plugin: WP-Polls 2.30 |
5
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
6
  | |
7
  | File Written By: |
1
  /*
2
  +----------------------------------------------------------------+
3
  | |
4
+ | WordPress 2.5 Plugin: WP-Polls 2.31 |
5
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
6
  | |
7
  | File Written By: |
polls-js.js CHANGED
@@ -1,7 +1,7 @@
1
  /*
2
  +----------------------------------------------------------------+
3
  | |
4
- | WordPress 2.5 Plugin: WP-Polls 2.30 |
5
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
6
  | |
7
  | File Written By: |
1
  /*
2
  +----------------------------------------------------------------+
3
  | |
4
+ | WordPress 2.5 Plugin: WP-Polls 2.31 |
5
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
6
  | |
7
  | File Written By: |
polls-logs.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.5 Plugin: WP-Polls 2.30 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
@@ -123,10 +123,10 @@ if(!empty($_POST['do'])) {
123
  <h2><?php _e('Poll\'s Logs', 'wp-polls'); ?></h2>
124
  <h3><?php echo $poll_question; ?></h3>
125
  <p>
126
- <?php printf(__('There are a total of <strong>%s</strong> recorded votes for this poll.', 'wp-polls'), number_format_i18n($poll_totalrecorded)); ?><br />
127
- <?php printf(__('<strong>&raquo;</strong> <strong>%s</strong> vote(s) are voted by registered users', 'wp-polls'), number_format_i18n($poll_registered)); ?><br />
128
- <?php printf(__('<strong>&raquo;</strong> <strong>%s</strong> vote(s) are voted by comment authors', 'wp-polls'), number_format_i18n($poll_comments)); ?><br />
129
- <?php printf(__('<strong>&raquo;</strong> <strong>%s</strong> vote(s) are voted by guests', 'wp-polls'), number_format_i18n($poll_guest)); ?>
130
  </p>
131
  </div>
132
  <?php if($poll_totalrecorded > 0) { ?>
@@ -196,9 +196,9 @@ if(!empty($_POST['do'])) {
196
  echo '<option value="1">'.__('1 Answer', 'wp-polls').'</option>';
197
  } else {
198
  if($i == $num_choices) {
199
- echo '<option value="'.$i.'" selected="selected">'.sprintf(__('%s Answers', 'wp-polls'), $i).'</option>';
200
  } else {
201
- echo '<option value="'.$i.'">'.sprintf(__('%s Answers', 'wp-polls'), $i).'</option>';
202
  }
203
  }
204
  }
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.5 Plugin: WP-Polls 2.31 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
123
  <h2><?php _e('Poll\'s Logs', 'wp-polls'); ?></h2>
124
  <h3><?php echo $poll_question; ?></h3>
125
  <p>
126
+ <?php printf(__ngettext('There are a total of <strong>%s</strong> recorded vote for this poll.', 'There are a total of <strong>%s</strong> recorded votes for this poll.', number_format_i18n($poll_totalrecorded), 'wp-polls'), number_format_i18n($poll_totalrecorded)); ?><br />
127
+ <?php printf(__ngettext('<strong>&raquo;</strong> <strong>%s</strong> vote is casted by registered users', '<strong>&raquo;</strong> <strong>%s</strong> votes are casted by registered users', number_format_i18n($poll_registered), 'wp-polls'), number_format_i18n($poll_registered)); ?><br />
128
+ <?php printf(__ngettext('<strong>&raquo;</strong> <strong>%s</strong> vote is casted by comment authors', '<strong>&raquo;</strong> <strong>%s</strong> votes are casted by comment authors', number_format_i18n($poll_comments), 'wp-polls'), number_format_i18n($poll_comments)); ?><br />
129
+ <?php printf(__ngettext('<strong>&raquo;</strong> <strong>%s</strong> vote is casted by guests', '<strong>&raquo;</strong> <strong>%s</strong> votes are casted by guests', number_format_i18n($poll_guest), 'wp-polls'), number_format_i18n($poll_guest)); ?>
130
  </p>
131
  </div>
132
  <?php if($poll_totalrecorded > 0) { ?>
196
  echo '<option value="1">'.__('1 Answer', 'wp-polls').'</option>';
197
  } else {
198
  if($i == $num_choices) {
199
+ echo '<option value="'.$i.'" selected="selected">'.sprintf(__ngettext('%s Answer', '%s Answers', $i, 'wp-polls'), $i).'</option>';
200
  } else {
201
+ echo '<option value="'.$i.'">'.sprintf(__ngettext('%s Answer', '%s Answers', $i, 'wp-polls'), $i).'</option>';
202
  }
203
  }
204
  }
polls-manager.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.5 Plugin: WP-Polls 2.30 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
@@ -557,23 +557,23 @@ switch($mode) {
557
 
558
  <!-- Polls Stats -->
559
  <div class="wrap">
560
- <h2><?php _e('Polls Stats', 'wp-polls'); ?></h2>
561
  <br style="clear" />
562
  <table class="widefat">
563
  <tr>
564
- <th><?php _e('Total Polls', 'wp-polls'); ?></th>
565
  <td><?php echo $i; ?></td>
566
  </tr>
567
  <tr class="alternate">
568
- <th><?php _e('Total Polls\' Answers', 'wp-polls'); ?></th>
569
  <td><?php echo number_format_i18n($total_ans); ?></td>
570
  </tr>
571
  <tr>
572
- <th><?php _e('Total Votes Casted', 'wp-polls'); ?></th>
573
  <td><?php echo number_format_i18n($total_votes); ?></td>
574
  </tr>
575
  <tr class="alternate">
576
- <th><?php _e('Total Voters', 'wp-polls'); ?></th>
577
  <td><?php echo number_format_i18n($total_voters); ?></td>
578
  </tr>
579
  </table>
@@ -598,7 +598,7 @@ switch($mode) {
598
  }
599
  ?>
600
  </div>
601
- <p style="text-align: left;"><?php _e('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.', 'wp-polls'); ?></p>
602
  </div>
603
  <?php
604
  } // End switch($mode)
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.5 Plugin: WP-Polls 2.31 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
557
 
558
  <!-- Polls Stats -->
559
  <div class="wrap">
560
+ <h2><?php _e('Polls Stats:', 'wp-polls'); ?></h2>
561
  <br style="clear" />
562
  <table class="widefat">
563
  <tr>
564
+ <th><?php _e('Total Polls:', 'wp-polls'); ?></th>
565
  <td><?php echo $i; ?></td>
566
  </tr>
567
  <tr class="alternate">
568
+ <th><?php _e('Total Polls\' Answers:', 'wp-polls'); ?></th>
569
  <td><?php echo number_format_i18n($total_ans); ?></td>
570
  </tr>
571
  <tr>
572
+ <th><?php _e('Total Votes Casted:', 'wp-polls'); ?></th>
573
  <td><?php echo number_format_i18n($total_votes); ?></td>
574
  </tr>
575
  <tr class="alternate">
576
+ <th><?php _e('Total Voters:', 'wp-polls'); ?></th>
577
  <td><?php echo number_format_i18n($total_voters); ?></td>
578
  </tr>
579
  </table>
598
  }
599
  ?>
600
  </div>
601
+ <p style="text-align: left;"><?php _e('Note: 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.', 'wp-polls'); ?></p>
602
  </div>
603
  <?php
604
  } // End switch($mode)
polls-options.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.5 Plugin: WP-Polls 2.30 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
@@ -119,7 +119,7 @@ if($_POST['Submit']) {
119
  if(pollbar_style == 'use_css') {
120
  document.getElementById('wp-polls-pollbar').style.backgroundImage = "";
121
  } else {
122
- document.getElementById('wp-polls-pollbar').style.backgroundImage = "url('<?php echo get_option('siteurl'); ?>/wp-content/plugins/wp-polls/images/" + pollbar_style + "/pollbg.gif')";
123
  }
124
  }
125
  document.getElementById('wp-polls-pollbar').style.backgroundColor = pollbar_background;
@@ -140,8 +140,8 @@ if($_POST['Submit']) {
140
  <td colspan="2">
141
  <?php
142
  $pollbar = get_option('poll_bar');
143
- $pollbar_url = get_option('siteurl').'/wp-content/plugins/wp-polls/images';
144
- $pollbar_path = ABSPATH.'/wp-content/plugins/wp-polls/images';
145
  if($handle = @opendir($pollbar_path)) {
146
  while (false !== ($filename = readdir($handle))) {
147
  if ($filename != '.' && $filename != '..') {
@@ -186,7 +186,7 @@ if($_POST['Submit']) {
186
  if($pollbar['style'] == 'use_css') {
187
  echo '<div id="wp-polls-pollbar" style="width: 100px; height: '.$pollbar['height'].'px; background-color: #'.$pollbar['background'].'; border: 1px solid #'.$pollbar['border'].'"></div>'."\n";
188
  } else {
189
- echo '<div id="wp-polls-pollbar" style="width: 100px; height: '.$pollbar['height'].'px; background-color: #'.$pollbar['background'].'; border: 1px solid #'.$pollbar['border'].'; background-image: url(\''.get_option('siteurl').'/wp-content/plugins/wp-polls/images/'.$pollbar['style'].'/pollbg.gif\');"></div>'."\n";
190
  }
191
  ?>
192
  </td>
@@ -248,7 +248,7 @@ if($_POST['Submit']) {
248
  <th scope="row" valign="top"><?php _e('Sort Poll Results By:', 'wp-polls'); ?></th>
249
  <td>
250
  <select name="poll_ans_result_sortby" size="1">
251
- <option value="polla_votes"<?php selected('polla_votes', get_option('poll_ans_result_sortby')); ?>><?php _e('Votes', 'wp-polls'); ?></option>
252
  <option value="polla_aid"<?php selected('polla_aid', get_option('poll_ans_result_sortby')); ?>><?php _e('Exact Order', 'wp-polls'); ?></option>
253
  <option value="polla_answers"<?php selected('polla_answers', get_option('poll_ans_result_sortby')); ?>><?php _e('Alphabetical Order', 'wp-polls'); ?></option>
254
  <option value="RAND()"<?php selected('RAND()', get_option('poll_ans_result_sortby')); ?>><?php _e('Random Order', 'wp-polls'); ?></option>
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.5 Plugin: WP-Polls 2.31 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
119
  if(pollbar_style == 'use_css') {
120
  document.getElementById('wp-polls-pollbar').style.backgroundImage = "";
121
  } else {
122
+ document.getElementById('wp-polls-pollbar').style.backgroundImage = "url('<?php echo WP_PLUGIN_URL; ?>/wp-polls/images/" + pollbar_style + "/pollbg.gif')";
123
  }
124
  }
125
  document.getElementById('wp-polls-pollbar').style.backgroundColor = pollbar_background;
140
  <td colspan="2">
141
  <?php
142
  $pollbar = get_option('poll_bar');
143
+ $pollbar_url = WP_PLUGIN_URL.'/wp-polls/images';
144
+ $pollbar_path = WP_PLUGIN_DIR.'/wp-polls/images';
145
  if($handle = @opendir($pollbar_path)) {
146
  while (false !== ($filename = readdir($handle))) {
147
  if ($filename != '.' && $filename != '..') {
186
  if($pollbar['style'] == 'use_css') {
187
  echo '<div id="wp-polls-pollbar" style="width: 100px; height: '.$pollbar['height'].'px; background-color: #'.$pollbar['background'].'; border: 1px solid #'.$pollbar['border'].'"></div>'."\n";
188
  } else {
189
+ echo '<div id="wp-polls-pollbar" style="width: 100px; height: '.$pollbar['height'].'px; background-color: #'.$pollbar['background'].'; border: 1px solid #'.$pollbar['border'].'; background-image: url(\''.WP_PLUGIN_URL.'/wp-polls/images/'.$pollbar['style'].'/pollbg.gif\');"></div>'."\n";
190
  }
191
  ?>
192
  </td>
248
  <th scope="row" valign="top"><?php _e('Sort Poll Results By:', 'wp-polls'); ?></th>
249
  <td>
250
  <select name="poll_ans_result_sortby" size="1">
251
+ <option value="polla_votes"<?php selected('polla_votes', get_option('poll_ans_result_sortby')); ?>><?php _e('Votes Casted', 'wp-polls'); ?></option>
252
  <option value="polla_aid"<?php selected('polla_aid', get_option('poll_ans_result_sortby')); ?>><?php _e('Exact Order', 'wp-polls'); ?></option>
253
  <option value="polla_answers"<?php selected('polla_answers', get_option('poll_ans_result_sortby')); ?>><?php _e('Alphabetical Order', 'wp-polls'); ?></option>
254
  <option value="RAND()"<?php selected('RAND()', get_option('poll_ans_result_sortby')); ?>><?php _e('Random Order', 'wp-polls'); ?></option>
polls-templates.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.5 Plugin: WP-Polls 2.30 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
@@ -278,7 +278,7 @@ if($_POST['Submit']) {
278
  <h3><?php _e('Poll Voting Form Templates', 'wp-polls'); ?></h3>
279
  <table class="form-table">
280
  <tr>
281
- <td width="30%" align="left">
282
  <strong><?php _e('Voting Form Header:', 'wp-polls'); ?></strong><br /><br /><br />
283
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
284
  - %POLL_ID%<br />
@@ -290,10 +290,10 @@ if($_POST['Submit']) {
290
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
291
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('voteheader');" class="button" />
292
  </td>
293
- <td><textarea cols="80" rows="15" id="poll_template_voteheader" name="poll_template_voteheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_voteheader'))); ?></textarea></td>
294
  </tr>
295
  <tr>
296
- <td width="30%" align="left">
297
  <strong><?php _e('Voting Form Body:', 'wp-polls'); ?></strong><br /><br /><br />
298
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
299
  - %POLL_ID%<br />
@@ -303,10 +303,10 @@ if($_POST['Submit']) {
303
  - %POLL_CHECKBOX_RADIO%<br /><br />
304
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('votebody');" class="button" />
305
  </td>
306
- <td align="left"><textarea cols="80" rows="15" id="poll_template_votebody" name="poll_template_votebody"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_votebody'))); ?></textarea></td>
307
  </tr>
308
  <tr>
309
- <td width="30%" align="left">
310
  <strong><?php _e('Voting Form Footer:', 'wp-polls'); ?></strong><br /><br /><br />
311
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
312
  - %POLL_ID%<br />
@@ -314,7 +314,7 @@ if($_POST['Submit']) {
314
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
315
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('votefooter');" class="button" />
316
  </td>
317
- <td align="left"><textarea cols="80" rows="15" id="poll_template_votefooter" name="poll_template_votefooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_votefooter'))); ?></textarea></td>
318
  </tr>
319
  </table>
320
 
@@ -322,7 +322,7 @@ if($_POST['Submit']) {
322
  <h3><?php _e('Poll Result Templates', 'wp-polls'); ?></h3>
323
  <table class="form-table">
324
  <tr>
325
- <td width="30%" align="left">
326
  <strong><?php _e('Result Header:', 'wp-polls'); ?></strong><br /><br /><br />
327
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
328
  - %POLL_ID%<br />
@@ -334,10 +334,10 @@ if($_POST['Submit']) {
334
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
335
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultheader');" class="button" />
336
  </td>
337
- <td align="left"><textarea cols="80" rows="15" id="poll_template_resultheader" name="poll_template_resultheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultheader'))); ?></textarea></td>
338
  </tr>
339
  <tr>
340
- <td width="30%" align="left">
341
  <strong><?php _e('Result Body:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS NOT Voted', 'wp-polls'); ?><br /><br />
342
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
343
  - %POLL_ANSWER_ID%<br />
@@ -348,10 +348,10 @@ if($_POST['Submit']) {
348
  - %POLL_ANSWER_IMAGEWIDTH%<br /><br />
349
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultbody');" class="button" />
350
  </td>
351
- <td align="left"><textarea cols="80" rows="15" id="poll_template_resultbody" name="poll_template_resultbody"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultbody'))); ?></textarea></td>
352
  </tr>
353
  <tr>
354
- <td width="30%" align="left">
355
  <strong><?php _e('Result Body:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS Voted', 'wp-polls'); ?><br /><br />
356
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
357
  - %POLL_ANSWER_ID%<br />
@@ -362,10 +362,10 @@ if($_POST['Submit']) {
362
  - %POLL_ANSWER_IMAGEWIDTH%<br /><br />
363
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultbody2');" class="button" />
364
  </td>
365
- <td align="left"><textarea cols="80" rows="15" id="poll_template_resultbody2" name="poll_template_resultbody2"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultbody2'))); ?></textarea></td>
366
  </tr>
367
  <tr>
368
- <td width="30%" align="left">
369
  <strong><?php _e('Result Footer:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS Voted', 'wp-polls'); ?><br /><br />
370
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
371
  - %POLL_ID%<br />
@@ -382,10 +382,10 @@ if($_POST['Submit']) {
382
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
383
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultfooter');" class="button" />
384
  </td>
385
- <td align="left"><textarea cols="80" rows="15" id="poll_template_resultfooter" name="poll_template_resultfooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultfooter'))); ?></textarea></td>
386
  </tr>
387
  <tr>
388
- <td width="30%" align="left">
389
  <strong><?php _e('Result Footer:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS NOT Voted', 'wp-polls'); ?><br /><br />
390
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
391
  - %POLL_ID%<br />
@@ -402,7 +402,7 @@ if($_POST['Submit']) {
402
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
403
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultfooter2');" class="button" />
404
  </td>
405
- <td align="left"><textarea cols="80" rows="15" id="poll_template_resultfooter2" name="poll_template_resultfooter2"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultfooter2'))); ?></textarea></td>
406
  </tr>
407
  </table>
408
 
@@ -410,25 +410,25 @@ if($_POST['Submit']) {
410
  <h3><?php _e('Poll Archive Templates', 'wp-polls'); ?></h3>
411
  <table class="form-table">
412
  <tr>
413
- <td width="30%" align="left">
414
  <strong><?php _e('Poll Archive Link', 'wp-polls'); ?></strong><br /><?php _e('Template For Displaying Poll Archive Link', 'wp-polls'); ?><br /><br />
415
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
416
  - %POLL_ARCHIVE_URL%<br /><br />
417
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivelink');" class="button" />
418
  </td>
419
- <td align="left"><textarea cols="80" rows="15" id="poll_template_pollarchivelink" name="poll_template_pollarchivelink"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivelink'))); ?></textarea></td>
420
  </tr>
421
  <tr>
422
- <td width="30%" align="left">
423
  <strong><?php _e('Individual Poll Header', 'wp-polls'); ?></strong><br /><?php _e('Displayed Before Each Poll In The Poll Archive', 'wp-polls'); ?><br /><br />
424
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
425
  - <?php _e('N/A', 'wp-polls'); ?><br /><br />
426
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchiveheader');" class="button" />
427
  </td>
428
- <td align="left"><textarea cols="80" rows="15" id="poll_template_pollarchiveheader" name="poll_template_pollarchiveheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchiveheader'))); ?></textarea></td>
429
  </tr>
430
  <tr>
431
- <td width="30%" align="left">
432
  <strong><?php _e('Individual Poll Footer', 'wp-polls'); ?></strong><br /><?php _e('Displayed After Each Poll In The Poll Archive', 'wp-polls'); ?><br /><br />
433
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
434
  - %POLL_START_DATE%<br />
@@ -444,25 +444,25 @@ if($_POST['Submit']) {
444
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
445
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivefooter');" class="button" />
446
  </td>
447
- <td align="left"><textarea cols="80" rows="15" id="poll_template_pollarchivefooter" name="poll_template_pollarchivefooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivefooter'))); ?></textarea></td>
448
  </tr>
449
  <tr>
450
- <td width="30%" align="left">
451
  <strong><?php _e('Paging Header', 'wp-polls'); ?></strong><br /><?php _e('Displayed Before Paging In The Poll Archive', 'wp-polls'); ?><br /><br />
452
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
453
  - <?php _e('N/A', 'wp-polls'); ?><br />
454
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivepagingheader');" class="button" />
455
  </td>
456
- <td align="left"><textarea cols="80" rows="15" id="poll_template_pollarchivepagingheader" name="poll_template_pollarchivepagingheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivepagingheader'))); ?></textarea></td>
457
  </tr>
458
  <tr>
459
- <td width="30%" align="left">
460
  <strong><?php _e('Paging Footer', 'wp-polls'); ?></strong><br /><?php _e('Displayed After Paging In The Poll Archive', 'wp-polls'); ?><br /><br />
461
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
462
  - <?php _e('N/A', 'wp-polls'); ?><br />
463
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivepagingfooter');" class="button" />
464
  </td>
465
- <td align="left"><textarea cols="80" rows="15" id="poll_template_pollarchivepagingfooter" name="poll_template_pollarchivepagingfooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivepagingfooter'))); ?></textarea></td>
466
  </tr>
467
  </table>
468
 
@@ -470,22 +470,22 @@ if($_POST['Submit']) {
470
  <h3><?php _e('Poll Misc Templates', 'wp-polls'); ?></h3>
471
  <table class="form-table">
472
  <tr>
473
- <td width="30%" align="left">
474
  <strong><?php _e('Poll Disabled', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The Poll Is Disabled', 'wp-polls'); ?><br /><br />
475
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
476
  - <?php _e('N/A', 'wp-polls'); ?><br /><br />
477
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('disable');" class="button" />
478
  </td>
479
- <td align="left"><textarea cols="80" rows="15" id="poll_template_disable" name="poll_template_disable"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_disable'))); ?></textarea></td>
480
  </tr>
481
  <tr>
482
- <td width="30%" align="left">
483
  <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 />
484
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
485
  - <?php _e('N/A', 'wp-polls'); ?><br /><br />
486
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('error');" class="button" />
487
  </td>
488
- <td align="left"><textarea cols="80" rows="15" id="poll_template_error" name="poll_template_error"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_error'))); ?></textarea></td>
489
  </tr>
490
  </table>
491
  <p class="submit">
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.5 Plugin: WP-Polls 2.31 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
278
  <h3><?php _e('Poll Voting Form Templates', 'wp-polls'); ?></h3>
279
  <table class="form-table">
280
  <tr>
281
+ <td width="30%" align="left" valign="top">
282
  <strong><?php _e('Voting Form Header:', 'wp-polls'); ?></strong><br /><br /><br />
283
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
284
  - %POLL_ID%<br />
290
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
291
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('voteheader');" class="button" />
292
  </td>
293
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_voteheader" name="poll_template_voteheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_voteheader'))); ?></textarea></td>
294
  </tr>
295
  <tr>
296
+ <td width="30%" align="left" valign="top">
297
  <strong><?php _e('Voting Form Body:', 'wp-polls'); ?></strong><br /><br /><br />
298
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
299
  - %POLL_ID%<br />
303
  - %POLL_CHECKBOX_RADIO%<br /><br />
304
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('votebody');" class="button" />
305
  </td>
306
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_votebody" name="poll_template_votebody"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_votebody'))); ?></textarea></td>
307
  </tr>
308
  <tr>
309
+ <td width="30%" align="left" valign="top">
310
  <strong><?php _e('Voting Form Footer:', 'wp-polls'); ?></strong><br /><br /><br />
311
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
312
  - %POLL_ID%<br />
314
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
315
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('votefooter');" class="button" />
316
  </td>
317
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_votefooter" name="poll_template_votefooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_votefooter'))); ?></textarea></td>
318
  </tr>
319
  </table>
320
 
322
  <h3><?php _e('Poll Result Templates', 'wp-polls'); ?></h3>
323
  <table class="form-table">
324
  <tr>
325
+ <td width="30%" align="left" valign="top">
326
  <strong><?php _e('Result Header:', 'wp-polls'); ?></strong><br /><br /><br />
327
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
328
  - %POLL_ID%<br />
334
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
335
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultheader');" class="button" />
336
  </td>
337
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_resultheader" name="poll_template_resultheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultheader'))); ?></textarea></td>
338
  </tr>
339
  <tr>
340
+ <td width="30%" align="left" valign="top">
341
  <strong><?php _e('Result Body:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS NOT Voted', 'wp-polls'); ?><br /><br />
342
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
343
  - %POLL_ANSWER_ID%<br />
348
  - %POLL_ANSWER_IMAGEWIDTH%<br /><br />
349
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultbody');" class="button" />
350
  </td>
351
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_resultbody" name="poll_template_resultbody"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultbody'))); ?></textarea></td>
352
  </tr>
353
  <tr>
354
+ <td width="30%" align="left" valign="top">
355
  <strong><?php _e('Result Body:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS Voted', 'wp-polls'); ?><br /><br />
356
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
357
  - %POLL_ANSWER_ID%<br />
362
  - %POLL_ANSWER_IMAGEWIDTH%<br /><br />
363
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultbody2');" class="button" />
364
  </td>
365
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_resultbody2" name="poll_template_resultbody2"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultbody2'))); ?></textarea></td>
366
  </tr>
367
  <tr>
368
+ <td width="30%" align="left" valign="top">
369
  <strong><?php _e('Result Footer:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS Voted', 'wp-polls'); ?><br /><br />
370
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
371
  - %POLL_ID%<br />
382
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
383
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultfooter');" class="button" />
384
  </td>
385
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_resultfooter" name="poll_template_resultfooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultfooter'))); ?></textarea></td>
386
  </tr>
387
  <tr>
388
+ <td width="30%" align="left" valign="top">
389
  <strong><?php _e('Result Footer:', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The User HAS NOT Voted', 'wp-polls'); ?><br /><br />
390
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
391
  - %POLL_ID%<br />
402
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
403
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('resultfooter2');" class="button" />
404
  </td>
405
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_resultfooter2" name="poll_template_resultfooter2"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_resultfooter2'))); ?></textarea></td>
406
  </tr>
407
  </table>
408
 
410
  <h3><?php _e('Poll Archive Templates', 'wp-polls'); ?></h3>
411
  <table class="form-table">
412
  <tr>
413
+ <td width="30%" align="left" valign="top">
414
  <strong><?php _e('Poll Archive Link', 'wp-polls'); ?></strong><br /><?php _e('Template For Displaying Poll Archive Link', 'wp-polls'); ?><br /><br />
415
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
416
  - %POLL_ARCHIVE_URL%<br /><br />
417
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivelink');" class="button" />
418
  </td>
419
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_pollarchivelink" name="poll_template_pollarchivelink"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivelink'))); ?></textarea></td>
420
  </tr>
421
  <tr>
422
+ <td width="30%" align="left" valign="top">
423
  <strong><?php _e('Individual Poll Header', 'wp-polls'); ?></strong><br /><?php _e('Displayed Before Each Poll In The Poll Archive', 'wp-polls'); ?><br /><br />
424
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
425
  - <?php _e('N/A', 'wp-polls'); ?><br /><br />
426
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchiveheader');" class="button" />
427
  </td>
428
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_pollarchiveheader" name="poll_template_pollarchiveheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchiveheader'))); ?></textarea></td>
429
  </tr>
430
  <tr>
431
+ <td width="30%" align="left" valign="top">
432
  <strong><?php _e('Individual Poll Footer', 'wp-polls'); ?></strong><br /><?php _e('Displayed After Each Poll In The Poll Archive', 'wp-polls'); ?><br /><br />
433
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
434
  - %POLL_START_DATE%<br />
444
  - %POLL_MULTIPLE_ANS_MAX%<br /><br />
445
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivefooter');" class="button" />
446
  </td>
447
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_pollarchivefooter" name="poll_template_pollarchivefooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivefooter'))); ?></textarea></td>
448
  </tr>
449
  <tr>
450
+ <td width="30%" align="left" valign="top">
451
  <strong><?php _e('Paging Header', 'wp-polls'); ?></strong><br /><?php _e('Displayed Before Paging In The Poll Archive', 'wp-polls'); ?><br /><br />
452
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
453
  - <?php _e('N/A', 'wp-polls'); ?><br />
454
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivepagingheader');" class="button" />
455
  </td>
456
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_pollarchivepagingheader" name="poll_template_pollarchivepagingheader"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivepagingheader'))); ?></textarea></td>
457
  </tr>
458
  <tr>
459
+ <td width="30%" align="left" valign="top">
460
  <strong><?php _e('Paging Footer', 'wp-polls'); ?></strong><br /><?php _e('Displayed After Paging In The Poll Archive', 'wp-polls'); ?><br /><br />
461
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
462
  - <?php _e('N/A', 'wp-polls'); ?><br />
463
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('pollarchivepagingfooter');" class="button" />
464
  </td>
465
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_pollarchivepagingfooter" name="poll_template_pollarchivepagingfooter"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_pollarchivepagingfooter'))); ?></textarea></td>
466
  </tr>
467
  </table>
468
 
470
  <h3><?php _e('Poll Misc Templates', 'wp-polls'); ?></h3>
471
  <table class="form-table">
472
  <tr>
473
+ <td width="30%" align="left" valign="top">
474
  <strong><?php _e('Poll Disabled', 'wp-polls'); ?></strong><br /><?php _e('Displayed When The Poll Is Disabled', 'wp-polls'); ?><br /><br />
475
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
476
  - <?php _e('N/A', 'wp-polls'); ?><br /><br />
477
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('disable');" class="button" />
478
  </td>
479
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_disable" name="poll_template_disable"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_disable'))); ?></textarea></td>
480
  </tr>
481
  <tr>
482
+ <td width="30%" align="left" valign="top">
483
  <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 />
484
  <?php _e('Allowed Variables:', 'wp-polls'); ?><br />
485
  - <?php _e('N/A', 'wp-polls'); ?><br /><br />
486
  <input type="button" name="RestoreDefault" value="<?php _e('Restore Default Template', 'wp-polls'); ?>" onclick="poll_default_templates('error');" class="button" />
487
  </td>
488
+ <td align="left" valign="top"><textarea cols="80" rows="15" id="poll_template_error" name="poll_template_error"><?php echo htmlspecialchars(stripslashes(get_option('poll_template_error'))); ?></textarea></td>
489
  </tr>
490
  </table>
491
  <p class="submit">
polls-uninstall.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
- | WordPress 2.5 Plugin: WP-Polls 2.30 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
2
  /*
3
  +----------------------------------------------------------------+
4
  | |
5
+ | WordPress 2.5 Plugin: WP-Polls 2.31 |
6
  | Copyright (c) 2008 Lester "GaMerZ" Chan |
7
  | |
8
  | File Written By: |
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.30 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.30&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
208
 
209
  <!-- Tabs -->
210
  <ul id="Tabs">
@@ -235,7 +235,7 @@
235
  </p>
236
  <p>
237
  <strong>Download:</strong><br />
238
- <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.30.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.30.zip">WP-Polls 2.30 For WordPress 2.5.x</a><br />
239
  <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.20.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.20.zip">WP-Polls 2.20 For WordPress 2.1.x, 2.2.x And 2.3.x</a><br />
240
  <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.13.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.13.zip">WP-Polls 2.13 For WordPress 2.0.x</a><br />
241
  <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.02a.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.02a.zip">WP-Polls 2.02a For WordPress 1.5.2</a>
@@ -260,6 +260,10 @@
260
  <strong>Support Forums:</strong><br />
261
  <strong>&raquo;</strong> <a href="http://forums.lesterchan.net/index.php?board=15.0" title="http://forums.lesterchan.net/index.php?board=15.0">http://forums.lesterchan.net/index.php?board=15.0</a>
262
  </p>
 
 
 
 
263
  <p>
264
  <strong>Note:</strong><br />
265
  <strong>&raquo;</strong> The <strong>Changelog</strong>, <strong>Installation</strong>, <strong>Upgrade</strong>, <strong>Usage</strong> Tab at the top of the page.<br />
@@ -279,6 +283,14 @@
279
  <div id="Changelog" style="display: none;">
280
  <div class="SubTitle">&raquo; Changelog</div>
281
  <ul>
 
 
 
 
 
 
 
 
282
  <li>
283
  <strong>Version 2.30 (01-06-2008)</strong>
284
  <ul>
@@ -520,7 +532,7 @@
520
  <!-- Upgrade Instructions -->
521
  <div id="Upgrade" style="display: none;">
522
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
523
- <div class="SubSubTitle">From v2.xx To v2.30</div>
524
  <ol>
525
  <li>
526
  <strong>Deactivate</strong> WP-Polls Plugin
@@ -705,6 +717,6 @@
705
  </div>
706
  </div>
707
  </div>
708
- <p id="Copyright">WP-Polls 2.30<br />Copyright &copy; 2008 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
709
  </body>
710
  </html>
2
  <html>
3
  <head>
4
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
5
+ <title>WP-Polls 2.31 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.31&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div>
208
 
209
  <!-- Tabs -->
210
  <ul id="Tabs">
235
  </p>
236
  <p>
237
  <strong>Download:</strong><br />
238
+ <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.31.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.31.zip">WP-Polls 2.31 For WordPress 2.5.x And 2.6.x</a><br />
239
  <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.20.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.20.zip">WP-Polls 2.20 For WordPress 2.1.x, 2.2.x And 2.3.x</a><br />
240
  <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.13.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.13.zip">WP-Polls 2.13 For WordPress 2.0.x</a><br />
241
  <strong>&raquo;</strong> <a href="http://downloads.wordpress.org/plugin/wp-polls.2.02a.zip" title="http://downloads.wordpress.org/plugin/wp-polls.2.02a.zip">WP-Polls 2.02a For WordPress 1.5.2</a>
260
  <strong>Support Forums:</strong><br />
261
  <strong>&raquo;</strong> <a href="http://forums.lesterchan.net/index.php?board=15.0" title="http://forums.lesterchan.net/index.php?board=15.0">http://forums.lesterchan.net/index.php?board=15.0</a>
262
  </p>
263
+ <p>
264
+ <strong>Credits:</strong><br />
265
+ <strong>&raquo;</strong> __ngetext() by <a href="http://hweia.ru/" title="http://hweia.ru/">Anna Ozeritskaya</a>.
266
+ </p>
267
  <p>
268
  <strong>Note:</strong><br />
269
  <strong>&raquo;</strong> The <strong>Changelog</strong>, <strong>Installation</strong>, <strong>Upgrade</strong>, <strong>Usage</strong> Tab at the top of the page.<br />
283
  <div id="Changelog" style="display: none;">
284
  <div class="SubTitle">&raquo; Changelog</div>
285
  <ul>
286
+ <li>
287
+ <strong>Version 2.31 (16-07-2008)</strong>
288
+ <ul>
289
+ <li>NEW: Works For WordPress 2.6</li>
290
+ <li>NEW: Better Translation Using __ngetext() by <a href="http://hweia.ru/" title="http://hweia.ru/">Anna Ozeritskaya</a></li>
291
+ <li>FIXED: MYSQL Charset Issue Should Be Solved</li>
292
+ </ul>
293
+ </li>
294
  <li>
295
  <strong>Version 2.30 (01-06-2008)</strong>
296
  <ul>
532
  <!-- Upgrade Instructions -->
533
  <div id="Upgrade" style="display: none;">
534
  <div class="SubTitle">&raquo; Upgrade Instructions</div>
535
+ <div class="SubSubTitle">From v2.xx To v2.31</div>
536
  <ol>
537
  <li>
538
  <strong>Deactivate</strong> WP-Polls Plugin
717
  </div>
718
  </div>
719
  </div>
720
+ <p id="Copyright">WP-Polls 2.31<br />Copyright &copy; 2008 Lester 'GaMerZ' Chan. All Rights Reserved.</p>
721
  </body>
722
  </html>
readme.txt CHANGED
@@ -3,7 +3,7 @@ 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.5.0
6
- Stable tag: 2.30
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
 
3
  Donate link: http://lesterchan.net/wordpress
4
  Tags: poll, polls, polling, vote, booth, democracy, ajax, survey, post, widget
5
  Requires at least: 2.5.0
6
+ Stable tag: 2.31
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
 
tinymce/plugins/polls/editor_plugin.js CHANGED
@@ -23,8 +23,8 @@
23
  longname : 'WP-Polls',
24
  author : 'Lester Chan',
25
  authorurl : 'http://lesterchan.net',
26
- infourl : 'http://lesterchan.net/portfolio/programming.php',
27
- version : '2.30'
28
  };
29
  }
30
  });
23
  longname : 'WP-Polls',
24
  author : 'Lester Chan',
25
  authorurl : 'http://lesterchan.net',
26
+ infourl : 'http://lesterchan.net/portfolio/programming/php/',
27
+ version : '2.31'
28
  };
29
  }
30
  });
wp-polls-widget.php CHANGED
@@ -3,7 +3,7 @@
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.30
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  */
@@ -158,7 +158,7 @@ function widget_polls_init() {
158
  echo '<p id="poll_multiplepolls_text" style="text-align: left; '.$display.'"><label for="poll_multiplepolls">';
159
  _e('Select Multiple Polls', 'wp-polls');
160
  echo ': </label>'."\n";
161
- echo '<select id="poll_multiplepolls" name="poll_multiplepolls[]" size="5" multiple="true" style="vertical-align: text-top;" $disabled>'."\n";
162
  $multiple_polls = explode(',', $options['multiple_polls']);
163
  $polls = $wpdb->get_results("SELECT pollq_id, pollq_question FROM $wpdb->pollsq ORDER BY pollq_id DESC");
164
  if($polls) {
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.31
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  */
158
  echo '<p id="poll_multiplepolls_text" style="text-align: left; '.$display.'"><label for="poll_multiplepolls">';
159
  _e('Select Multiple Polls', 'wp-polls');
160
  echo ': </label>'."\n";
161
+ echo '<select id="poll_multiplepolls" name="poll_multiplepolls[]" size="5" multiple="true" style="height: 100px; vertical-align: text-top;" $disabled>'."\n";
162
  $multiple_polls = explode(',', $options['multiple_polls']);
163
  $polls = $wpdb->get_results("SELECT pollq_id, pollq_question FROM $wpdb->pollsq ORDER BY pollq_id DESC");
164
  if($polls) {
wp-polls.mo CHANGED
Binary file
wp-polls.php CHANGED
@@ -3,7 +3,7 @@
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.30
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  */
@@ -30,14 +30,38 @@ Author URI: http://lesterchan.net
30
 
31
  ### Load WP-Config File If This File Is Called Directly
32
  if (!function_exists('add_action')) {
33
- require_once('../../../wp-config.php');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
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/wp-polls');
 
 
 
 
41
  }
42
 
43
 
@@ -162,11 +186,11 @@ add_action('wp_head', 'poll_header');
162
  function poll_header() {
163
  $poll_ajax_style = get_option('poll_ajax_style');
164
  $pollbar = get_option('poll_bar');
165
- wp_register_script('wp-polls', '/wp-content/plugins/wp-polls/polls-js-packed.js', false, '2.30');
166
- echo "\n".'<!-- Start Of Script Generated By WP-Polls 2.30 -->'."\n";
167
  echo '<script type="text/javascript">'."\n";
168
  echo '/* <![CDATA[ */'."\n";
169
- echo "\t".'var polls_ajax_url = \''.get_option('siteurl').'/wp-content/plugins/wp-polls/wp-polls.php'."';\n";
170
  echo "\t".'var polls_text_wait = \''.js_escape(__('Your last request is still being processed. Please wait a while ...', 'wp-polls')).'\';'."\n";
171
  echo "\t".'var polls_text_valid = \''.js_escape(__('Please choose a valid poll answer.', 'wp-polls')).'\';'."\n";
172
  echo "\t".'var polls_text_multiple = \''.js_escape(__('Maximum number of choices allowed:', 'wp-polls')).'\';'."\n";
@@ -178,7 +202,7 @@ function poll_header() {
178
  if(@file_exists(TEMPLATEPATH.'/polls-css.css')) {
179
  echo '<link rel="stylesheet" href="'.get_stylesheet_directory_uri().'/polls-css.css" type="text/css" media="screen" />'."\n";
180
  } else {
181
- echo '<link rel="stylesheet" href="'.get_option('siteurl').'/wp-content/plugins/wp-polls/polls-css.css" type="text/css" media="screen" />'."\n";
182
  }
183
  echo '<style type="text/css">'."\n";
184
  if($pollbar['style'] == 'use_css') {
@@ -196,23 +220,23 @@ function poll_header() {
196
  echo "\t".'font-size: '.($pollbar['height']-2).'px;'."\n";
197
  echo "\t".'line-height: '.$pollbar['height'].'px;'."\n";
198
  echo "\t".'height: '.$pollbar['height'].'px;'."\n";
199
- echo "\t".'background-image: url(\''.get_option('siteurl').'/wp-content/plugins/wp-polls/images/'.$pollbar['style'].'/pollbg.gif\');'."\n";
200
  echo "\t".'border: 1px solid #'.$pollbar['border'].';'."\n";
201
  echo '}'."\n";
202
  }
203
  echo '</style>'."\n";
204
- echo '<!-- End Of Script Generated By WP-Polls 2.30 -->'."\n";
205
  }
206
 
207
 
208
  ### Function: Displays Polls Header In WP-Admin
209
  add_action('admin_head', 'poll_header_admin');
210
  function poll_header_admin() {
211
- wp_register_script('wp-polls-admin', '/wp-content/plugins/wp-polls/polls-admin-js-packed.js', false, '2.30');
212
- echo "\n".'<!-- Start Of Script Generated By WP-Polls 2.30 -->'."\n";
213
  echo '<script type="text/javascript">'."\n";
214
  echo '/* <![CDATA[ */'."\n";
215
- echo "\t".'var polls_admin_ajax_url = \''.get_option('siteurl').'/wp-content/plugins/wp-polls/polls-admin-ajax.php'."';\n";
216
  echo "\t".'var polls_admin_text_delete_poll = \''.js_escape(__('Delete Poll', 'wp-polls')).'\';'."\n";
217
  echo "\t".'var polls_admin_text_no_poll_logs = \''.js_escape(__('No poll logs available.', 'wp-polls')).'\';'."\n";
218
  echo "\t".'var polls_admin_text_delete_all_logs = \''.js_escape(__('Delete All Logs', 'wp-polls')).'\';'."\n";
@@ -227,8 +251,8 @@ function poll_header_admin() {
227
  echo '/* ]]> */'."\n";
228
  echo '</script>'."\n";
229
  wp_print_scripts(array('sack', 'wp-polls-admin'));
230
- echo '<link rel="stylesheet" href="'.get_option('siteurl').'/wp-content/plugins/wp-polls/polls-css.css" type="text/css" media="screen" />'."\n";
231
- echo '<!-- End Of Script Generated By WP-Polls 2.30 -->'."\n";
232
  }
233
 
234
 
@@ -271,7 +295,7 @@ function poll_tinymce_registerbutton($buttons) {
271
  return $buttons;
272
  }
273
  function poll_tinymce_addplugin($plugin_array) {
274
- $plugin_array['polls'] = get_option('siteurl').'/wp-content/plugins/wp-polls/tinymce/plugins/polls/editor_plugin.js';
275
  return $plugin_array;
276
  }
277
 
@@ -482,7 +506,7 @@ function display_pollvote($poll_id, $without_poll_title = false) {
482
  $temp_pollvote .= "</div>\n";
483
  $poll_ajax_style = get_option('poll_ajax_style');
484
  if(intval($poll_ajax_style['loading']) == 1) {
485
- $temp_pollvote .= "<div id=\"polls-$poll_question_id-loading\" class=\"wp-polls-loading\"><img src=\"".get_option('siteurl')."/wp-content/plugins/wp-polls/images/loading.gif\" width=\"16\" height=\"16\" alt=\"".__('Loading', 'wp-polls')." ...\" title=\"".__('Loading', 'wp-polls')." ...\" class=\"wp-polls-image\" />&nbsp;".__('Loading', 'wp-polls')." ...</div>\n";
486
  }
487
  }
488
  } else {
@@ -642,7 +666,7 @@ function display_pollresult($poll_id, $user_voted = '', $without_poll_title = fa
642
  $temp_pollresult .= "</div>\n";
643
  $poll_ajax_style = get_option('poll_ajax_style');
644
  if(intval($poll_ajax_style['loading']) == 1) {
645
- $temp_pollresult .= "<div id=\"polls-$poll_question_id-loading\" class=\"wp-polls-loading\"><img src=\"".get_option('siteurl')."/wp-content/plugins/wp-polls/images/loading.gif\" width=\"16\" height=\"16\" alt=\"".__('Loading', 'wp-polls')." ...\" title=\"".__('Loading', 'wp-polls')." ...\" class=\"wp-polls-image\" />&nbsp;".__('Loading', 'wp-polls')." ...</div>\n";
646
  }
647
  }
648
  } else {
@@ -1286,9 +1310,9 @@ function polls_page_general_stats($content) {
1286
  if($stats_display['polls'] == 1) {
1287
  $content .= '<p><strong>'.__('WP-Polls', 'wp-polls').'</strong></p>'."\n";
1288
  $content .= '<ul>'."\n";
1289
- $content .= '<li><strong>'.get_pollquestions(false).'</strong> '.__('polls were created.', 'wp-polls').'</li>'."\n";
1290
- $content .= '<li><strong>'.get_pollanswers(false).'</strong> '.__('polls\' answers were given.', 'wp-polls').'</li>'."\n";
1291
- $content .= '<li><strong>'.get_pollvotes(false).'</strong> '.__('votes were casted.', 'wp-polls').'</li>'."\n";
1292
  $content .= '</ul>'."\n";
1293
  }
1294
  return $content;
@@ -1307,6 +1331,15 @@ function create_poll_table() {
1307
  die('We have problem finding your \'/wp-admin/upgrade-functions.php\' and \'/wp-admin/includes/upgrade.php\'');
1308
  }
1309
  // Create Poll Tables (3 Tables)
 
 
 
 
 
 
 
 
 
1310
  $create_table = array();
1311
  $create_table['pollsq'] = "CREATE TABLE $wpdb->pollsq (".
1312
  "pollq_id int(10) NOT NULL auto_increment,".
@@ -1317,13 +1350,13 @@ function create_poll_table() {
1317
  "pollq_expiry varchar(20) NOT NULL default '',".
1318
  "pollq_multiple tinyint(3) NOT NULL default '0',".
1319
  "pollq_totalvoters int(10) NOT NULL default '0',".
1320
- "PRIMARY KEY (pollq_id))";
1321
  $create_table['pollsa'] = "CREATE TABLE $wpdb->pollsa (".
1322
  "polla_aid int(10) NOT NULL auto_increment,".
1323
  "polla_qid int(10) NOT NULL default '0',".
1324
  "polla_answers varchar(200) character set utf8 NOT NULL default '',".
1325
  "polla_votes int(10) NOT NULL default '0',".
1326
- "PRIMARY KEY (polla_aid))";
1327
  $create_table['pollsip'] = "CREATE TABLE $wpdb->pollsip (".
1328
  "pollip_id int(10) NOT NULL auto_increment,".
1329
  "pollip_qid varchar(10) NOT NULL default '',".
@@ -1333,7 +1366,7 @@ function create_poll_table() {
1333
  "pollip_timestamp varchar(20) NOT NULL default '0000-00-00 00:00:00',".
1334
  "pollip_user tinytext NOT NULL,".
1335
  "pollip_userid int(10) NOT NULL default '0',".
1336
- "PRIMARY KEY (pollip_id))";
1337
  maybe_create_table($wpdb->pollsq, $create_table['pollsq']);
1338
  maybe_create_table($wpdb->pollsa, $create_table['pollsa']);
1339
  maybe_create_table($wpdb->pollsip, $create_table['pollsip']);
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.31
7
  Author: Lester 'GaMerZ' Chan
8
  Author URI: http://lesterchan.net
9
  */
30
 
31
  ### Load WP-Config File If This File Is Called Directly
32
  if (!function_exists('add_action')) {
33
+ $wp_root = '../../..';
34
+ if (file_exists($wp_root.'/wp-load.php')) {
35
+ require_once($wp_root.'/wp-load.php');
36
+ } else {
37
+ require_once($wp_root.'/wp-config.php');
38
+ }
39
+ }
40
+
41
+
42
+ ### Use WordPress 2.6 Constants
43
+ if (!defined('WP_CONTENT_DIR')) {
44
+ define( 'WP_CONTENT_DIR', ABSPATH.'wp-content');
45
+ }
46
+ if (!defined('WP_CONTENT_URL')) {
47
+ define('WP_CONTENT_URL', get_option('siteurl').'/wp-content');
48
+ }
49
+ if (!defined('WP_PLUGIN_DIR')) {
50
+ define('WP_PLUGIN_DIR', WP_CONTENT_DIR.'/plugins');
51
+ }
52
+ if (!defined('WP_PLUGIN_URL')) {
53
+ define('WP_PLUGIN_URL', WP_CONTENT_URL.'/plugins');
54
  }
55
 
56
 
57
  ### Create Text Domain For Translations
58
  add_action('init', 'polls_textdomain');
59
  function polls_textdomain() {
60
+ if (!function_exists('wp_print_styles')) {
61
+ load_plugin_textdomain('wp-polls', 'wp-content/plugins/wp-polls');
62
+ } else {
63
+ load_plugin_textdomain('wp-polls', false, 'wp-polls');
64
+ }
65
  }
66
 
67
 
186
  function poll_header() {
187
  $poll_ajax_style = get_option('poll_ajax_style');
188
  $pollbar = get_option('poll_bar');
189
+ wp_register_script('wp-polls', WP_PLUGIN_URL.'/wp-polls/polls-js-packed.js', false, '2.31');
190
+ echo "\n".'<!-- Start Of Script Generated By WP-Polls 2.31 -->'."\n";
191
  echo '<script type="text/javascript">'."\n";
192
  echo '/* <![CDATA[ */'."\n";
193
+ echo "\t".'var polls_ajax_url = \''.WP_PLUGIN_URL.'/wp-polls/wp-polls.php'."';\n";
194
  echo "\t".'var polls_text_wait = \''.js_escape(__('Your last request is still being processed. Please wait a while ...', 'wp-polls')).'\';'."\n";
195
  echo "\t".'var polls_text_valid = \''.js_escape(__('Please choose a valid poll answer.', 'wp-polls')).'\';'."\n";
196
  echo "\t".'var polls_text_multiple = \''.js_escape(__('Maximum number of choices allowed:', 'wp-polls')).'\';'."\n";
202
  if(@file_exists(TEMPLATEPATH.'/polls-css.css')) {
203
  echo '<link rel="stylesheet" href="'.get_stylesheet_directory_uri().'/polls-css.css" type="text/css" media="screen" />'."\n";
204
  } else {
205
+ echo '<link rel="stylesheet" href="'.WP_PLUGIN_URL.'/wp-polls/polls-css.css" type="text/css" media="screen" />'."\n";
206
  }
207
  echo '<style type="text/css">'."\n";
208
  if($pollbar['style'] == 'use_css') {
220
  echo "\t".'font-size: '.($pollbar['height']-2).'px;'."\n";
221
  echo "\t".'line-height: '.$pollbar['height'].'px;'."\n";
222
  echo "\t".'height: '.$pollbar['height'].'px;'."\n";
223
+ echo "\t".'background-image: url(\''.WP_PLUGIN_URL.'/wp-polls/images/'.$pollbar['style'].'/pollbg.gif\');'."\n";
224
  echo "\t".'border: 1px solid #'.$pollbar['border'].';'."\n";
225
  echo '}'."\n";
226
  }
227
  echo '</style>'."\n";
228
+ echo '<!-- End Of Script Generated By WP-Polls 2.31 -->'."\n";
229
  }
230
 
231
 
232
  ### Function: Displays Polls Header In WP-Admin
233
  add_action('admin_head', 'poll_header_admin');
234
  function poll_header_admin() {
235
+ wp_register_script('wp-polls-admin', WP_PLUGIN_URL.'/wp-polls/polls-admin-js-packed.js', false, '2.31');
236
+ echo "\n".'<!-- Start Of Script Generated By WP-Polls 2.31 -->'."\n";
237
  echo '<script type="text/javascript">'."\n";
238
  echo '/* <![CDATA[ */'."\n";
239
+ echo "\t".'var polls_admin_ajax_url = \''.WP_PLUGIN_URL.'/wp-polls/polls-admin-ajax.php'."';\n";
240
  echo "\t".'var polls_admin_text_delete_poll = \''.js_escape(__('Delete Poll', 'wp-polls')).'\';'."\n";
241
  echo "\t".'var polls_admin_text_no_poll_logs = \''.js_escape(__('No poll logs available.', 'wp-polls')).'\';'."\n";
242
  echo "\t".'var polls_admin_text_delete_all_logs = \''.js_escape(__('Delete All Logs', 'wp-polls')).'\';'."\n";
251
  echo '/* ]]> */'."\n";
252
  echo '</script>'."\n";
253
  wp_print_scripts(array('sack', 'wp-polls-admin'));
254
+ echo '<link rel="stylesheet" href="'.WP_PLUGIN_URL.'/wp-polls/polls-css.css" type="text/css" media="screen" />'."\n";
255
+ echo '<!-- End Of Script Generated By WP-Polls 2.31 -->'."\n";
256
  }
257
 
258
 
295
  return $buttons;
296
  }
297
  function poll_tinymce_addplugin($plugin_array) {
298
+ $plugin_array['polls'] = WP_PLUGIN_URL.'/wp-polls/tinymce/plugins/polls/editor_plugin.js';
299
  return $plugin_array;
300
  }
301
 
506
  $temp_pollvote .= "</div>\n";
507
  $poll_ajax_style = get_option('poll_ajax_style');
508
  if(intval($poll_ajax_style['loading']) == 1) {
509
+ $temp_pollvote .= "<div id=\"polls-$poll_question_id-loading\" class=\"wp-polls-loading\"><img src=\"".WP_PLUGIN_URL."/wp-polls/images/loading.gif\" width=\"16\" height=\"16\" alt=\"".__('Loading', 'wp-polls')." ...\" title=\"".__('Loading', 'wp-polls')." ...\" class=\"wp-polls-image\" />&nbsp;".__('Loading', 'wp-polls')." ...</div>\n";
510
  }
511
  }
512
  } else {
666
  $temp_pollresult .= "</div>\n";
667
  $poll_ajax_style = get_option('poll_ajax_style');
668
  if(intval($poll_ajax_style['loading']) == 1) {
669
+ $temp_pollresult .= "<div id=\"polls-$poll_question_id-loading\" class=\"wp-polls-loading\"><img src=\"".WP_PLUGIN_URL."/wp-polls/images/loading.gif\" width=\"16\" height=\"16\" alt=\"".__('Loading', 'wp-polls')." ...\" title=\"".__('Loading', 'wp-polls')." ...\" class=\"wp-polls-image\" />&nbsp;".__('Loading', 'wp-polls')." ...</div>\n";
670
  }
671
  }
672
  } else {
1310
  if($stats_display['polls'] == 1) {
1311
  $content .= '<p><strong>'.__('WP-Polls', 'wp-polls').'</strong></p>'."\n";
1312
  $content .= '<ul>'."\n";
1313
+ $content .= '<li>'.sprintf(__ngettext('<strong>%s</strong> poll was created.', '<strong>%s</strong> polls were created.', get_pollquestions(false), 'wp-polls'), get_pollquestions(false)).'</li>'."\n";
1314
+ $content .= '<li>'.sprintf(__ngettext('<strong>%s</strong> polls\' answer was given.', '<strong>%s</strong> polls\' answers were given.', get_pollanswers(false), 'wp-polls'), get_pollanswers(false)).'</li>'."\n";
1315
+ $content .= '<li>'.sprintf(__ngettext('<strong>%s</strong> vote was casted.', '<strong>%s</strong> votes were casted.', get_pollvotes(false), 'wp-polls'), get_pollvotes(false)).'</li>'."\n";
1316
  $content .= '</ul>'."\n";
1317
  }
1318
  return $content;
1331
  die('We have problem finding your \'/wp-admin/upgrade-functions.php\' and \'/wp-admin/includes/upgrade.php\'');
1332
  }
1333
  // Create Poll Tables (3 Tables)
1334
+ $charset_collate = '';
1335
+ if($wpdb->supports_collation()) {
1336
+ if(!empty($wpdb->charset)) {
1337
+ $charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
1338
+ }
1339
+ if(!empty($wpdb->collate)) {
1340
+ $charset_collate .= " COLLATE $wpdb->collate";
1341
+ }
1342
+ }
1343
  $create_table = array();
1344
  $create_table['pollsq'] = "CREATE TABLE $wpdb->pollsq (".
1345
  "pollq_id int(10) NOT NULL auto_increment,".
1350
  "pollq_expiry varchar(20) NOT NULL default '',".
1351
  "pollq_multiple tinyint(3) NOT NULL default '0',".
1352
  "pollq_totalvoters int(10) NOT NULL default '0',".
1353
+ "PRIMARY KEY (pollq_id)) $charset_collate;";
1354
  $create_table['pollsa'] = "CREATE TABLE $wpdb->pollsa (".
1355
  "polla_aid int(10) NOT NULL auto_increment,".
1356
  "polla_qid int(10) NOT NULL default '0',".
1357
  "polla_answers varchar(200) character set utf8 NOT NULL default '',".
1358
  "polla_votes int(10) NOT NULL default '0',".
1359
+ "PRIMARY KEY (polla_aid)) $charset_collate;";
1360
  $create_table['pollsip'] = "CREATE TABLE $wpdb->pollsip (".
1361
  "pollip_id int(10) NOT NULL auto_increment,".
1362
  "pollip_qid varchar(10) NOT NULL default '',".
1366
  "pollip_timestamp varchar(20) NOT NULL default '0000-00-00 00:00:00',".
1367
  "pollip_user tinytext NOT NULL,".
1368
  "pollip_userid int(10) NOT NULL default '0',".
1369
+ "PRIMARY KEY (pollip_id)) $charset_collate;";
1370
  maybe_create_table($wpdb->pollsq, $create_table['pollsq']);
1371
  maybe_create_table($wpdb->pollsa, $create_table['pollsa']);
1372
  maybe_create_table($wpdb->pollsip, $create_table['pollsip']);
wp-polls.pot CHANGED
@@ -1,16 +1,16 @@
1
  msgid ""
2
  msgstr ""
3
- "Project-Id-Version: WP-Polls 2.30\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2008-05-13 12:14+0800\n"
6
- "PO-Revision-Date: 2008-05-13 12:14+0800\n"
7
  "Last-Translator: Lester Chan <lesterchan@gmail.com>\n"
8
  "Language-Team: Lester Chan <lesterchan@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-Country: SINGAPORE\n"
13
- "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-Language: English\n"
16
  "X-Poedit-SearchPath-0: .\n"
@@ -18,7 +18,7 @@ msgstr ""
18
  #: polls-add.php:36
19
  #: polls-add.php:174
20
  #: polls-add.php:241
21
- #: wp-polls.php:59
22
  msgid "Add Poll"
23
  msgstr ""
24
 
@@ -40,7 +40,7 @@ msgstr ""
40
 
41
  #: polls-add.php:96
42
  #: polls-manager.php:458
43
- #: wp-polls.php:58
44
  msgid "Manage Polls"
45
  msgstr ""
46
 
@@ -150,94 +150,94 @@ msgstr ""
150
  msgid "Cancel"
151
  msgstr ""
152
 
153
- #: polls-admin-ajax.php:38
154
  #: polls-manager.php:594
155
- #: wp-polls.php:218
156
  msgid "Delete All Logs"
157
  msgstr ""
158
 
159
- #: polls-admin-ajax.php:42
160
  msgid "All Polls Logs Have Been Deleted."
161
  msgstr ""
162
 
163
- #: polls-admin-ajax.php:44
164
  msgid "An Error Has Occured While Deleting All Polls Logs."
165
  msgstr ""
166
 
167
- #: polls-admin-ajax.php:49
168
  #: polls-logs.php:373
169
- #: wp-polls.php:220
170
  msgid "Delete Logs For This Poll Only"
171
  msgstr ""
172
 
173
- #: polls-admin-ajax.php:55
174
  #, php-format
175
  msgid "All Logs For '%s' Has Been Deleted."
176
  msgstr ""
177
 
178
- #: polls-admin-ajax.php:57
179
  #, php-format
180
  msgid "An Error Has Occured While Deleting All Logs For '%s'"
181
  msgstr ""
182
 
183
- #: polls-admin-ajax.php:62
184
- #: wp-polls.php:222
185
  msgid "Delete Poll Answer"
186
  msgstr ""
187
 
188
- #: polls-admin-ajax.php:72
189
  #, php-format
190
  msgid "Poll Answer '%s' Deleted Successfully."
191
  msgstr ""
192
 
193
- #: polls-admin-ajax.php:74
194
  #, php-format
195
  msgid "Error In Deleting Poll Answer '%s'."
196
  msgstr ""
197
 
198
- #: polls-admin-ajax.php:78
199
  #: polls-manager.php:439
200
- #: wp-polls.php:223
201
  msgid "Open Poll"
202
  msgstr ""
203
 
204
- #: polls-admin-ajax.php:83
205
  #, php-format
206
  msgid "Poll '%s' Is Now Opened"
207
  msgstr ""
208
 
209
- #: polls-admin-ajax.php:85
210
  #, php-format
211
  msgid "Error Opening Poll '%s'"
212
  msgstr ""
213
 
214
- #: polls-admin-ajax.php:89
215
  #: polls-manager.php:438
216
- #: wp-polls.php:224
217
  msgid "Close Poll"
218
  msgstr ""
219
 
220
- #: polls-admin-ajax.php:94
221
  #, php-format
222
  msgid "Poll '%s' Is Now Closed"
223
  msgstr ""
224
 
225
- #: polls-admin-ajax.php:96
226
  #, php-format
227
  msgid "Error Closing Poll '%s'"
228
  msgstr ""
229
 
230
- #: polls-admin-ajax.php:100
231
- #: wp-polls.php:216
232
  msgid "Delete Poll"
233
  msgstr ""
234
 
235
- #: polls-admin-ajax.php:108
236
  #, php-format
237
  msgid "Error In Deleting Poll '%s' Question"
238
  msgstr ""
239
 
240
- #: polls-admin-ajax.php:111
241
  #, php-format
242
  msgid "Poll '%s' Deleted Successfully"
243
  msgstr ""
@@ -258,23 +258,31 @@ msgstr ""
258
 
259
  #: polls-logs.php:126
260
  #, php-format
261
- msgid "There are a total of <strong>%s</strong> recorded votes for this poll."
262
- msgstr ""
 
 
263
 
264
  #: polls-logs.php:127
265
  #, php-format
266
- msgid "<strong>&raquo;</strong> <strong>%s</strong> vote(s) are voted by registered users"
267
- msgstr ""
 
 
268
 
269
  #: polls-logs.php:128
270
  #, php-format
271
- msgid "<strong>&raquo;</strong> <strong>%s</strong> vote(s) are voted by comment authors"
272
- msgstr ""
 
 
273
 
274
  #: polls-logs.php:129
275
  #, php-format
276
- msgid "<strong>&raquo;</strong> <strong>%s</strong> vote(s) are voted by guests"
277
- msgstr ""
 
 
278
 
279
  #: polls-logs.php:134
280
  msgid "Filter Poll's Logs"
@@ -340,8 +348,10 @@ msgstr ""
340
  #: polls-logs.php:199
341
  #: polls-logs.php:201
342
  #, php-format
343
- msgid "%s Answers"
344
- msgstr ""
 
 
345
 
346
  #: polls-logs.php:214
347
  msgid "Guests will automatically be excluded"
@@ -382,12 +392,12 @@ msgstr ""
382
  #: polls-manager.php:409
383
  #: polls-manager.php:487
384
  #: polls-manager.php:495
385
- #: wp-polls.php:404
386
- #: wp-polls.php:409
387
- #: wp-polls.php:520
388
- #: wp-polls.php:525
389
- #: wp-polls.php:910
390
- #: wp-polls.php:914
391
  #, php-format
392
  msgid "%s @ %s"
393
  msgstr ""
@@ -433,6 +443,7 @@ msgid "You are about to delete poll logs for this poll '%s' ONLY. This action is
433
  msgstr ""
434
 
435
  #: polls-logs.php:380
 
436
  msgid "Note: 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."
437
  msgstr ""
438
 
@@ -507,6 +518,7 @@ msgid "Total Votes:"
507
  msgstr ""
508
 
509
  #: polls-manager.php:358
 
510
  msgid "Total Voters:"
511
  msgstr ""
512
 
@@ -533,11 +545,10 @@ msgid "ID"
533
  msgstr ""
534
 
535
  #: polls-manager.php:465
536
- #: polls-manager.php:576
537
  #: polls-templates.php:122
538
  #: polls-templates.php:125
539
- #: wp-polls.php:1370
540
- #: wp-polls.php:1373
541
  msgid "Total Voters"
542
  msgstr ""
543
 
@@ -550,9 +561,9 @@ msgid "Action"
550
  msgstr ""
551
 
552
  #: polls-manager.php:493
553
- #: wp-polls.php:407
554
- #: wp-polls.php:523
555
- #: wp-polls.php:912
556
  msgid "No Expiry"
557
  msgstr ""
558
 
@@ -592,19 +603,19 @@ msgid "No Polls Found"
592
  msgstr ""
593
 
594
  #: polls-manager.php:560
595
- msgid "Polls Stats"
596
  msgstr ""
597
 
598
  #: polls-manager.php:564
599
- msgid "Total Polls"
600
  msgstr ""
601
 
602
  #: polls-manager.php:568
603
- msgid "Total Polls' Answers"
604
  msgstr ""
605
 
606
  #: polls-manager.php:572
607
- msgid "Total Votes Casted"
608
  msgstr ""
609
 
610
  #: polls-manager.php:585
@@ -620,14 +631,10 @@ msgid "You are about to delete all poll logs. This action is not reversible."
620
  msgstr ""
621
 
622
  #: polls-manager.php:597
623
- #: wp-polls.php:217
624
  msgid "No poll logs available."
625
  msgstr ""
626
 
627
- #: polls-manager.php:601
628
- 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."
629
- msgstr ""
630
-
631
  #: polls-options.php:70
632
  #: polls-options.php:136
633
  #: polls-options.php:139
@@ -702,7 +709,7 @@ msgid "No Poll Option Updated"
702
  msgstr ""
703
 
704
  #: polls-options.php:134
705
- #: wp-polls.php:60
706
  msgid "Poll Options"
707
  msgstr ""
708
 
@@ -784,11 +791,7 @@ msgid "Sort Poll Results By:"
784
  msgstr ""
785
 
786
  #: polls-options.php:251
787
- #: polls-templates.php:116
788
- #: polls-templates.php:119
789
- #: wp-polls.php:1367
790
- #: wp-polls.php:1368
791
- msgid "Votes"
792
  msgstr ""
793
 
794
  #: polls-options.php:259
@@ -1001,33 +1004,40 @@ msgstr ""
1001
 
1002
  #: polls-templates.php:110
1003
  #: polls-templates.php:125
1004
- #: wp-polls.php:1361
1005
- #: wp-polls.php:1374
1006
  msgid "Vote"
1007
  msgstr ""
1008
 
1009
  #: polls-templates.php:110
1010
- #: wp-polls.php:1362
1011
  msgid "View Results Of This Poll"
1012
  msgstr ""
1013
 
1014
  #: polls-templates.php:110
1015
- #: wp-polls.php:1362
1016
  msgid "View Results"
1017
  msgstr ""
1018
 
 
1019
  #: polls-templates.php:119
1020
- #: wp-polls.php:1368
 
 
 
 
 
 
1021
  msgid "You Have Voted For This Choice"
1022
  msgstr ""
1023
 
1024
  #: polls-templates.php:125
1025
- #: wp-polls.php:1374
1026
  msgid "Vote For This Poll"
1027
  msgstr ""
1028
 
1029
  #: polls-templates.php:128
1030
- #: wp-polls.php:1401
1031
  msgid "Polls Archive"
1032
  msgstr ""
1033
 
@@ -1040,17 +1050,17 @@ msgid "End Date:"
1040
  msgstr ""
1041
 
1042
  #: polls-templates.php:143
1043
- #: wp-polls.php:1376
1044
  msgid "Sorry, there are no polls available at the moment."
1045
  msgstr ""
1046
 
1047
  #: polls-templates.php:146
1048
- #: wp-polls.php:1377
1049
  msgid "An error has occurred when processing your poll."
1050
  msgstr ""
1051
 
1052
  #: polls-templates.php:156
1053
- #: wp-polls.php:61
1054
  msgid "Poll Templates"
1055
  msgstr ""
1056
 
@@ -1324,7 +1334,7 @@ msgstr ""
1324
 
1325
  #: polls-uninstall.php:81
1326
  #: polls-uninstall.php:91
1327
- #: wp-polls.php:62
1328
  msgid "Uninstall WP-Polls"
1329
  msgstr ""
1330
 
@@ -1370,7 +1380,7 @@ msgid ""
1370
  msgstr ""
1371
 
1372
  #: wp-polls-widget.php:64
1373
- #: wp-polls.php:55
1374
  msgid "Polls"
1375
  msgstr ""
1376
 
@@ -1386,131 +1396,140 @@ msgstr ""
1386
  msgid "Select Multiple Polls"
1387
  msgstr ""
1388
 
1389
- #: wp-polls.php:170
1390
  msgid "Your last request is still being processed. Please wait a while ..."
1391
  msgstr ""
1392
 
1393
- #: wp-polls.php:171
1394
  msgid "Please choose a valid poll answer."
1395
  msgstr ""
1396
 
1397
- #: wp-polls.php:172
1398
  msgid "Maximum number of choices allowed:"
1399
  msgstr ""
1400
 
1401
- #: wp-polls.php:219
1402
  msgid "Please check the \\'Yes\\' checkbox if you want to delete all logs."
1403
  msgstr ""
1404
 
1405
- #: wp-polls.php:221
1406
  msgid "Please check the \\'Yes\\' checkbox if you want to delete all logs for this poll ONLY."
1407
  msgstr ""
1408
 
1409
- #: wp-polls.php:225
1410
  msgid "Enter Poll ID"
1411
  msgstr ""
1412
 
1413
- #: wp-polls.php:226
1414
  msgid "Error: Poll ID must be numeric"
1415
  msgstr ""
1416
 
1417
- #: wp-polls.php:226
1418
  msgid "Please enter Poll ID again"
1419
  msgstr ""
1420
 
1421
- #: wp-polls.php:242
1422
- #: wp-polls.php:248
1423
  msgid "Poll"
1424
  msgstr ""
1425
 
1426
- #: wp-polls.php:249
1427
  msgid "Insert Poll"
1428
  msgstr ""
1429
 
1430
- #: wp-polls.php:485
1431
- #: wp-polls.php:645
1432
  msgid "Loading"
1433
  msgstr ""
1434
 
1435
- #: wp-polls.php:691
1436
  msgid "Note: There is a poll embedded within this post, please visit the site to participate in this post's poll."
1437
  msgstr ""
1438
 
1439
- #: wp-polls.php:1041
1440
  #, php-format
1441
  msgid "Page %s of %s"
1442
  msgstr ""
1443
 
1444
- #: wp-polls.php:1043
1445
  msgid "&laquo; First"
1446
  msgstr ""
1447
 
1448
- #: wp-polls.php:1047
1449
  msgid "&laquo;"
1450
  msgstr ""
1451
 
1452
- #: wp-polls.php:1057
1453
  msgid "&raquo;"
1454
  msgstr ""
1455
 
1456
- #: wp-polls.php:1061
1457
  msgid "Last &raquo;"
1458
  msgstr ""
1459
 
1460
- #: wp-polls.php:1239
1461
  #, php-format
1462
  msgid "Unable To Update Poll Total Votes And Poll Total Voters. Poll ID #%s"
1463
  msgstr ""
1464
 
1465
- #: wp-polls.php:1243
1466
  #, php-format
1467
  msgid "You Had Already Voted For This Poll. Poll ID #%s"
1468
  msgstr ""
1469
 
1470
- #: wp-polls.php:1247
1471
  #, php-format
1472
  msgid "Invalid Poll ID. Poll ID #%s"
1473
  msgstr ""
1474
 
1475
- #: wp-polls.php:1275
1476
- #: wp-polls.php:1277
1477
- #: wp-polls.php:1287
1478
  msgid "WP-Polls"
1479
  msgstr ""
1480
 
1481
- #: wp-polls.php:1289
1482
- msgid "polls were created."
1483
- msgstr ""
 
 
 
1484
 
1485
- #: wp-polls.php:1290
1486
- msgid "polls' answers were given."
1487
- msgstr ""
 
 
 
1488
 
1489
- #: wp-polls.php:1291
1490
- msgid "votes were casted."
1491
- msgstr ""
 
 
 
1492
 
1493
- #: wp-polls.php:1345
1494
  msgid "How Is My Site?"
1495
  msgstr ""
1496
 
1497
- #: wp-polls.php:1348
1498
  msgid "Good"
1499
  msgstr ""
1500
 
1501
- #: wp-polls.php:1349
1502
  msgid "Excellent"
1503
  msgstr ""
1504
 
1505
- #: wp-polls.php:1350
1506
  msgid "Bad"
1507
  msgstr ""
1508
 
1509
- #: wp-polls.php:1351
1510
  msgid "Can Be Improved"
1511
  msgstr ""
1512
 
1513
- #: wp-polls.php:1352
1514
  msgid "No Comments"
1515
  msgstr ""
1516
 
1
  msgid ""
2
  msgstr ""
3
+ "Project-Id-Version: WP-Polls 2.31\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-07-15 15:59+0800\n"
6
+ "PO-Revision-Date: 2008-07-15 16:00+0800\n"
7
  "Last-Translator: Lester Chan <lesterchan@gmail.com>\n"
8
  "Language-Team: Lester Chan <lesterchan@gmail.com>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Poedit-Country: SINGAPORE\n"
13
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-Language: English\n"
16
  "X-Poedit-SearchPath-0: .\n"
18
  #: polls-add.php:36
19
  #: polls-add.php:174
20
  #: polls-add.php:241
21
+ #: wp-polls.php:83
22
  msgid "Add Poll"
23
  msgstr ""
24
 
40
 
41
  #: polls-add.php:96
42
  #: polls-manager.php:458
43
+ #: wp-polls.php:82
44
  msgid "Manage Polls"
45
  msgstr ""
46
 
150
  msgid "Cancel"
151
  msgstr ""
152
 
153
+ #: polls-admin-ajax.php:43
154
  #: polls-manager.php:594
155
+ #: wp-polls.php:242
156
  msgid "Delete All Logs"
157
  msgstr ""
158
 
159
+ #: polls-admin-ajax.php:47
160
  msgid "All Polls Logs Have Been Deleted."
161
  msgstr ""
162
 
163
+ #: polls-admin-ajax.php:49
164
  msgid "An Error Has Occured While Deleting All Polls Logs."
165
  msgstr ""
166
 
167
+ #: polls-admin-ajax.php:54
168
  #: polls-logs.php:373
169
+ #: wp-polls.php:244
170
  msgid "Delete Logs For This Poll Only"
171
  msgstr ""
172
 
173
+ #: polls-admin-ajax.php:60
174
  #, php-format
175
  msgid "All Logs For '%s' Has Been Deleted."
176
  msgstr ""
177
 
178
+ #: polls-admin-ajax.php:62
179
  #, php-format
180
  msgid "An Error Has Occured While Deleting All Logs For '%s'"
181
  msgstr ""
182
 
183
+ #: polls-admin-ajax.php:67
184
+ #: wp-polls.php:246
185
  msgid "Delete Poll Answer"
186
  msgstr ""
187
 
188
+ #: polls-admin-ajax.php:77
189
  #, php-format
190
  msgid "Poll Answer '%s' Deleted Successfully."
191
  msgstr ""
192
 
193
+ #: polls-admin-ajax.php:79
194
  #, php-format
195
  msgid "Error In Deleting Poll Answer '%s'."
196
  msgstr ""
197
 
198
+ #: polls-admin-ajax.php:83
199
  #: polls-manager.php:439
200
+ #: wp-polls.php:247
201
  msgid "Open Poll"
202
  msgstr ""
203
 
204
+ #: polls-admin-ajax.php:88
205
  #, php-format
206
  msgid "Poll '%s' Is Now Opened"
207
  msgstr ""
208
 
209
+ #: polls-admin-ajax.php:90
210
  #, php-format
211
  msgid "Error Opening Poll '%s'"
212
  msgstr ""
213
 
214
+ #: polls-admin-ajax.php:94
215
  #: polls-manager.php:438
216
+ #: wp-polls.php:248
217
  msgid "Close Poll"
218
  msgstr ""
219
 
220
+ #: polls-admin-ajax.php:99
221
  #, php-format
222
  msgid "Poll '%s' Is Now Closed"
223
  msgstr ""
224
 
225
+ #: polls-admin-ajax.php:101
226
  #, php-format
227
  msgid "Error Closing Poll '%s'"
228
  msgstr ""
229
 
230
+ #: polls-admin-ajax.php:105
231
+ #: wp-polls.php:240
232
  msgid "Delete Poll"
233
  msgstr ""
234
 
235
+ #: polls-admin-ajax.php:113
236
  #, php-format
237
  msgid "Error In Deleting Poll '%s' Question"
238
  msgstr ""
239
 
240
+ #: polls-admin-ajax.php:116
241
  #, php-format
242
  msgid "Poll '%s' Deleted Successfully"
243
  msgstr ""
258
 
259
  #: polls-logs.php:126
260
  #, php-format
261
+ msgid "There are a total of <strong>%s</strong> recorded vote for this poll."
262
+ msgid_plural "There are a total of <strong>%s</strong> recorded votes for this poll."
263
+ msgstr[0] ""
264
+ msgstr[1] ""
265
 
266
  #: polls-logs.php:127
267
  #, php-format
268
+ msgid "<strong>&raquo;</strong> <strong>%s</strong> vote is casted by registered users"
269
+ msgid_plural "<strong>&raquo;</strong> <strong>%s</strong> votes are casted by registered users"
270
+ msgstr[0] ""
271
+ msgstr[1] ""
272
 
273
  #: polls-logs.php:128
274
  #, php-format
275
+ msgid "<strong>&raquo;</strong> <strong>%s</strong> vote is casted by comment authors"
276
+ msgid_plural "<strong>&raquo;</strong> <strong>%s</strong> votes are casted by comment authors"
277
+ msgstr[0] ""
278
+ msgstr[1] ""
279
 
280
  #: polls-logs.php:129
281
  #, php-format
282
+ msgid "<strong>&raquo;</strong> <strong>%s</strong> vote is casted by guests"
283
+ msgid_plural "<strong>&raquo;</strong> <strong>%s</strong> votes are casted by guests"
284
+ msgstr[0] ""
285
+ msgstr[1] ""
286
 
287
  #: polls-logs.php:134
288
  msgid "Filter Poll's Logs"
348
  #: polls-logs.php:199
349
  #: polls-logs.php:201
350
  #, php-format
351
+ msgid "%s Answer"
352
+ msgid_plural "%s Answers"
353
+ msgstr[0] ""
354
+ msgstr[1] ""
355
 
356
  #: polls-logs.php:214
357
  msgid "Guests will automatically be excluded"
392
  #: polls-manager.php:409
393
  #: polls-manager.php:487
394
  #: polls-manager.php:495
395
+ #: wp-polls.php:428
396
+ #: wp-polls.php:433
397
+ #: wp-polls.php:544
398
+ #: wp-polls.php:549
399
+ #: wp-polls.php:934
400
+ #: wp-polls.php:938
401
  #, php-format
402
  msgid "%s @ %s"
403
  msgstr ""
443
  msgstr ""
444
 
445
  #: polls-logs.php:380
446
+ #: polls-manager.php:601
447
  msgid "Note: 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."
448
  msgstr ""
449
 
518
  msgstr ""
519
 
520
  #: polls-manager.php:358
521
+ #: polls-manager.php:576
522
  msgid "Total Voters:"
523
  msgstr ""
524
 
545
  msgstr ""
546
 
547
  #: polls-manager.php:465
 
548
  #: polls-templates.php:122
549
  #: polls-templates.php:125
550
+ #: wp-polls.php:1403
551
+ #: wp-polls.php:1406
552
  msgid "Total Voters"
553
  msgstr ""
554
 
561
  msgstr ""
562
 
563
  #: polls-manager.php:493
564
+ #: wp-polls.php:431
565
+ #: wp-polls.php:547
566
+ #: wp-polls.php:936
567
  msgid "No Expiry"
568
  msgstr ""
569
 
603
  msgstr ""
604
 
605
  #: polls-manager.php:560
606
+ msgid "Polls Stats:"
607
  msgstr ""
608
 
609
  #: polls-manager.php:564
610
+ msgid "Total Polls:"
611
  msgstr ""
612
 
613
  #: polls-manager.php:568
614
+ msgid "Total Polls' Answers:"
615
  msgstr ""
616
 
617
  #: polls-manager.php:572
618
+ msgid "Total Votes Casted:"
619
  msgstr ""
620
 
621
  #: polls-manager.php:585
631
  msgstr ""
632
 
633
  #: polls-manager.php:597
634
+ #: wp-polls.php:241
635
  msgid "No poll logs available."
636
  msgstr ""
637
 
 
 
 
 
638
  #: polls-options.php:70
639
  #: polls-options.php:136
640
  #: polls-options.php:139
709
  msgstr ""
710
 
711
  #: polls-options.php:134
712
+ #: wp-polls.php:84
713
  msgid "Poll Options"
714
  msgstr ""
715
 
791
  msgstr ""
792
 
793
  #: polls-options.php:251
794
+ msgid "Votes Casted"
 
 
 
 
795
  msgstr ""
796
 
797
  #: polls-options.php:259
1004
 
1005
  #: polls-templates.php:110
1006
  #: polls-templates.php:125
1007
+ #: wp-polls.php:1394
1008
+ #: wp-polls.php:1407
1009
  msgid "Vote"
1010
  msgstr ""
1011
 
1012
  #: polls-templates.php:110
1013
+ #: wp-polls.php:1395
1014
  msgid "View Results Of This Poll"
1015
  msgstr ""
1016
 
1017
  #: polls-templates.php:110
1018
+ #: wp-polls.php:1395
1019
  msgid "View Results"
1020
  msgstr ""
1021
 
1022
+ #: polls-templates.php:116
1023
  #: polls-templates.php:119
1024
+ #: wp-polls.php:1400
1025
+ #: wp-polls.php:1401
1026
+ msgid "Votes"
1027
+ msgstr ""
1028
+
1029
+ #: polls-templates.php:119
1030
+ #: wp-polls.php:1401
1031
  msgid "You Have Voted For This Choice"
1032
  msgstr ""
1033
 
1034
  #: polls-templates.php:125
1035
+ #: wp-polls.php:1407
1036
  msgid "Vote For This Poll"
1037
  msgstr ""
1038
 
1039
  #: polls-templates.php:128
1040
+ #: wp-polls.php:1434
1041
  msgid "Polls Archive"
1042
  msgstr ""
1043
 
1050
  msgstr ""
1051
 
1052
  #: polls-templates.php:143
1053
+ #: wp-polls.php:1409
1054
  msgid "Sorry, there are no polls available at the moment."
1055
  msgstr ""
1056
 
1057
  #: polls-templates.php:146
1058
+ #: wp-polls.php:1410
1059
  msgid "An error has occurred when processing your poll."
1060
  msgstr ""
1061
 
1062
  #: polls-templates.php:156
1063
+ #: wp-polls.php:85
1064
  msgid "Poll Templates"
1065
  msgstr ""
1066
 
1334
 
1335
  #: polls-uninstall.php:81
1336
  #: polls-uninstall.php:91
1337
+ #: wp-polls.php:86
1338
  msgid "Uninstall WP-Polls"
1339
  msgstr ""
1340
 
1380
  msgstr ""
1381
 
1382
  #: wp-polls-widget.php:64
1383
+ #: wp-polls.php:79
1384
  msgid "Polls"
1385
  msgstr ""
1386
 
1396
  msgid "Select Multiple Polls"
1397
  msgstr ""
1398
 
1399
+ #: wp-polls.php:194
1400
  msgid "Your last request is still being processed. Please wait a while ..."
1401
  msgstr ""
1402
 
1403
+ #: wp-polls.php:195
1404
  msgid "Please choose a valid poll answer."
1405
  msgstr ""
1406
 
1407
+ #: wp-polls.php:196
1408
  msgid "Maximum number of choices allowed:"
1409
  msgstr ""
1410
 
1411
+ #: wp-polls.php:243
1412
  msgid "Please check the \\'Yes\\' checkbox if you want to delete all logs."
1413
  msgstr ""
1414
 
1415
+ #: wp-polls.php:245
1416
  msgid "Please check the \\'Yes\\' checkbox if you want to delete all logs for this poll ONLY."
1417
  msgstr ""
1418
 
1419
+ #: wp-polls.php:249
1420
  msgid "Enter Poll ID"
1421
  msgstr ""
1422
 
1423
+ #: wp-polls.php:250
1424
  msgid "Error: Poll ID must be numeric"
1425
  msgstr ""
1426
 
1427
+ #: wp-polls.php:250
1428
  msgid "Please enter Poll ID again"
1429
  msgstr ""
1430
 
1431
+ #: wp-polls.php:266
1432
+ #: wp-polls.php:272
1433
  msgid "Poll"
1434
  msgstr ""
1435
 
1436
+ #: wp-polls.php:273
1437
  msgid "Insert Poll"
1438
  msgstr ""
1439
 
1440
+ #: wp-polls.php:509
1441
+ #: wp-polls.php:669
1442
  msgid "Loading"
1443
  msgstr ""
1444
 
1445
+ #: wp-polls.php:715
1446
  msgid "Note: There is a poll embedded within this post, please visit the site to participate in this post's poll."
1447
  msgstr ""
1448
 
1449
+ #: wp-polls.php:1065
1450
  #, php-format
1451
  msgid "Page %s of %s"
1452
  msgstr ""
1453
 
1454
+ #: wp-polls.php:1067
1455
  msgid "&laquo; First"
1456
  msgstr ""
1457
 
1458
+ #: wp-polls.php:1071
1459
  msgid "&laquo;"
1460
  msgstr ""
1461
 
1462
+ #: wp-polls.php:1081
1463
  msgid "&raquo;"
1464
  msgstr ""
1465
 
1466
+ #: wp-polls.php:1085
1467
  msgid "Last &raquo;"
1468
  msgstr ""
1469
 
1470
+ #: wp-polls.php:1263
1471
  #, php-format
1472
  msgid "Unable To Update Poll Total Votes And Poll Total Voters. Poll ID #%s"
1473
  msgstr ""
1474
 
1475
+ #: wp-polls.php:1267
1476
  #, php-format
1477
  msgid "You Had Already Voted For This Poll. Poll ID #%s"
1478
  msgstr ""
1479
 
1480
+ #: wp-polls.php:1271
1481
  #, php-format
1482
  msgid "Invalid Poll ID. Poll ID #%s"
1483
  msgstr ""
1484
 
1485
+ #: wp-polls.php:1299
1486
+ #: wp-polls.php:1301
1487
+ #: wp-polls.php:1311
1488
  msgid "WP-Polls"
1489
  msgstr ""
1490
 
1491
+ #: wp-polls.php:1313
1492
+ #, php-format
1493
+ msgid "<strong>%s</strong> poll was created."
1494
+ msgid_plural "<strong>%s</strong> polls were created."
1495
+ msgstr[0] ""
1496
+ msgstr[1] ""
1497
 
1498
+ #: wp-polls.php:1314
1499
+ #, php-format
1500
+ msgid "<strong>%s</strong> polls' answer was given."
1501
+ msgid_plural "<strong>%s</strong> polls' answers were given."
1502
+ msgstr[0] ""
1503
+ msgstr[1] ""
1504
 
1505
+ #: wp-polls.php:1315
1506
+ #, php-format
1507
+ msgid "<strong>%s</strong> vote was casted."
1508
+ msgid_plural "<strong>%s</strong> votes were casted."
1509
+ msgstr[0] ""
1510
+ msgstr[1] ""
1511
 
1512
+ #: wp-polls.php:1378
1513
  msgid "How Is My Site?"
1514
  msgstr ""
1515
 
1516
+ #: wp-polls.php:1381
1517
  msgid "Good"
1518
  msgstr ""
1519
 
1520
+ #: wp-polls.php:1382
1521
  msgid "Excellent"
1522
  msgstr ""
1523
 
1524
+ #: wp-polls.php:1383
1525
  msgid "Bad"
1526
  msgstr ""
1527
 
1528
+ #: wp-polls.php:1384
1529
  msgid "Can Be Improved"
1530
  msgstr ""
1531
 
1532
+ #: wp-polls.php:1385
1533
  msgid "No Comments"
1534
  msgstr ""
1535