Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
wpscanteam
GitHub Repository: wpscanteam/wpscan
Path: blob/master/spec/fixtures/finders/plugin_version/readme/wp_polls.txt
486 views
1
=== WP-Polls ===
2
Contributors: GamerZ
3
Donate link: http://lesterchan.net/site/donation/
4
Tags: poll, polls, polling, vote, booth, democracy, ajax, survey, post, widget
5
Requires at least: 2.8
6
Tested up to: 3.7
7
Stable tag: trunk
8
9
Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.
10
11
== Description ==
12
13
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.
14
15
= Previous Versions =
16
* [WP-Polls 2.40 For WordPress 2.7.x](http://downloads.wordpress.org/plugin/wp-polls.2.40.zip "WP-Polls 2.40 For WordPress 2.7.x")
17
* [WP-Polls 2.31 For WordPress 2.5.x And 2.6.x](http://downloads.wordpress.org/plugin/wp-polls.2.31.zip "WP-Polls 2.31 For WordPress 2.5.x And 2.6.x")
18
* [WP-Polls 2.20 For WordPress 2.1.x, 2.2.x And 2.3.x](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")
19
* [WP-Polls 2.13 For WordPress 2.0.x](http://downloads.wordpress.org/plugin/wp-polls.2.13.zip "WP-Polls 2.13 For WordPress 2.0.x")
20
* [WP-Polls 2.02a For WordPress 1.5.2](http://downloads.wordpress.org/plugin/wp-polls.2.02a.zip "WP-Polls 2.02a For WordPress 1.5.2")
21
22
= Development =
23
* [http://dev.wp-plugins.org/browser/wp-polls/](http://dev.wp-plugins.org/browser/wp-polls/ "http://dev.wp-plugins.org/browser/wp-polls/")
24
25
= Translations =
26
* [http://dev.wp-plugins.org/browser/wp-polls/i18n/](http://dev.wp-plugins.org/browser/wp-polls/i18n/ "http://dev.wp-plugins.org/browser/wp-polls/i18n/")
27
28
= Support Forums =
29
* [http://forums.lesterchan.net/index.php?board=15.0](http://forums.lesterchan.net/index.php?board=15.0 "http://forums.lesterchan.net/index.php?board=15.0")
30
31
= Credits =
32
* __ngetext() by [Anna Ozeritskaya](http://hweia.ru/ "Anna Ozeritskaya")
33
* Right To Left Language Support by [Kambiz R. Khojasteh](http://persian-programming.com/ "Kambiz R. Khojasteh")
34
35
= Donations =
36
* I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appericiate it. If not feel free to use it without any obligations.
37
38
== Changelog ==
39
40
= Version 2.64 =
41
* NEW: Add in various filters in the plugin. Props Machiel.
42
* FIXED: Deveral undefined variable / undefined index notices. Props Machiel.
43
44
= Version 2.63 (21-05-2012) =
45
* Move AJAX Request to wp-admin/admin-ajax.php
46
* Added nonce To AJAX Calls
47
* FIXED: PHP Notices/add_options() Deprecated Arguments ([Dewey Bushaw](http://www.parapxl.com/ "Dewey Bushaw"))
48
49
= Version 2.62 (31-08-2011) =
50
* FIXED: Escaped Hostname. Thanks to Renaud Feil ([Renaud Feil](http://www.stratsec.net "Renaud Feil"))
51
* FIXED: Ensure Poll ID In Shortcode Is An Integer. Thanks to Renaud Feil ([Renaud Feil](http://www.stratsec.net "Renaud Feil"))
52
53
= Version 2.61 (14-02-2011) =
54
* FIXED: XSS Vulnerability. Thanks to Dweeks, Leon Juranic and Chad Lavoie of the Swiftwill Security Team Inc ([www.swiftwill.com](http://www.swiftwill.com "www.swiftwill.com"))
55
56
= Version 2.60 (01-12-2009) =
57
* NEW: Uses WordPress nonce Throughout
58
* NEW: Display 2,000 Records In Poll Logs Instead Of 100
59
60
= Version 2.50 (01-06-2009) =
61
* NEW: Works For WordPress 2.8 Only
62
* NEW: Javascript Now Placed At The Footer
63
* NEW: Uses jQuery Instead Of tw-sack
64
* NEW: Minified Javascript Instead Of Packed Javascript
65
* NEW: Renamed polls-admin-js-packed.js To polls-admin-js.js
66
* NEW: Renamed polls-admin-js.js To polls-admin-js.dev.js
67
* NEW: Renamed polls-js-packed.js To polls-js.js
68
* NEW: Renamed polls-js.js To polls-js.dev.js
69
* NEW: Translate Javascript Variables Using wp_localize_script()
70
* NEW: Add "Add Poll" To WordPress Favourite Actions
71
* NEW: Minified editor_plugin.js And Added Non-Minified editor_plugin.dev.js
72
* NEW: Able To Remove Individual Answers When Adding Or Editing A Poll
73
* NEW: Use _n() Instead Of __ngettext() And _n_noop() Instead Of __ngettext_noop()
74
* NEW: Uses New Widget Class From WordPress
75
* NEW: Merge Widget Code To wp-polls.php And Remove wp-polls-widget.php
76
* FIXED: Uses $_SERVER['PHP_SELF'] With plugin_basename(__FILE__) Instead Of Just $_SERVER['REQUEST_URI']
77
* FIXED: Ensure That Percentage Always Add Up To 100%
78
* FIXED: More Efficient WP-Polls Archive
79
* FIXED: Logged By Username Now Shows Poll Results To Users Who Did Not Login
80
81
= Version 2.40 (12-12-2008) =
82
* NEW: Works For WordPress 2.7 Only
83
* NEW: Load Admin JS And CSS Only In WP-Polls Admin Pages
84
* NEW: Added polls-admin-css.css For WP-Polls Admin CSS Styles
85
* NEW: Right To Left Language Support by Kambiz R. Khojasteh
86
* NEW: Added "polls-css-rtl.css" by Kambiz R. Khojasteh
87
* NEW: Applied Output Of polls_archive() To "polls_archive" Filter by Kambiz R. Khojasteh
88
* NEW: Added Call To polls_textdomain() In create_poll_table() and vote_poll() functions by Kambiz R. Khojasteh
89
* NEW: Uses wp_register_style(), wp_print_styles(), plugins_url() And site_url()
90
* NEW: [poll id="-2"] or <?php get_poll(-2); ?> Will Randomize The Poll
91
* FIXED: SSL Support
92
* FIXED: Moved Call To update_pollbar() From onblur To onclick Event. It Was Showing The Last Selection Instead Of Current One by Kambiz R. Khojasteh
93
94
= Version 2.31 (16-07-2008) =
95
* NEW: Works For WordPress 2.6
96
* NEW: Better Translation Using __ngetext() by Anna Ozeritskaya
97
* FIXED: MYSQL Charset Issue Should Be Solved
98
99
= Version 2.30 (01-06-2008) =
100
* NEW: Works For WordPress 2.5 Only
101
* NEW: Added Paging Header And Footer Template For Polls Archive Page
102
* NEW: Uses WP-PageNavi Style Paging For Polls Archive Page
103
* NEW: WP-Polls Will Load 'polls-css.css' Inside Your Theme Directory If It Exists. If Not, It Will Just Load The Default 'polls-css.css' By WP-Polls
104
* NEW: Uses Shortcode API
105
* NEW: When Inserting Poll Into Post, It is Now [poll id="1"], Where 1 Is Your Poll ID
106
* NEW: When User Does Not Have Permission To Vote, The Voting Form Is Now Disabled Instead Of Showing Poll's Result
107
* NEW: Added A New Action Called "Display Disabled Poll's Voting Form" To Action Taken When A Poll Is Closed
108
* NEW: Updated WP-Polls TinyMCE Plugin To Work With TinyMCE 3.0
109
* NEW: Add Time Expiry For Cookie/Log
110
* NEW: Removed polls-usage.php
111
* NEW: Removed "Fade Anything Technique" In Polls Admin
112
* NEW: Uses /wp-polls/ Folder Instead Of /polls/
113
* NEW: Uses wp-polls.php Instead Of polls.php
114
* NEW: Uses wp-polls-widget.php Instead Of polls-widget.php
115
* NEW: Use number_format_i18n() Instead
116
* NEW: Renamed polls-admin-js.php To polls-admin-js.js and Move The Dynamic Javascript Variables To The PHP Pages
117
* NEW: Renamed polls-js.php To polls-js.js and Move The Dynamic Javascript Variables To The PHP Pages
118
* NEW: Uses polls-js-packed.js And polls-admin-js-packed.js
119
* FIXED: Unable To Delete Poll Or Poll Answers If There Is Quotes Within The Poll Or Poll Answer
120
* FIXED: number_format() Not Used In Polls Archive
121
* FIXED: Unable To Schedule Future Poll If The Year Is Different From Current Year
122
* FIXED: TinyMCE Tool Tip For Insert Poll Not Translated
123
* FIXED: Content-Type Not Being Sent Back When AJAX Return Results
124
125
= Version 2.21 (01-10-2007) =
126
* NEW: Works For WordPress 2.3 Only
127
* NEW: Added Quick Tag For Poll To Visual (TinyMCE) / Code Editor
128
* NEW: New CSS Style For WP-Polls Archive (.wp-polls-archive)
129
* NEW: Uses WP-Stats Filter To Add Stats Into WP-Stats Page
130
* NEW: Ability To Add Polls To Excerpt
131
* NEW: Added "Random Order" For Sorting Poll's Answers And Poll's Result Answers
132
* FIXED: Language Problem By Setting Database Table To UTF8
133
* FIXED: Some Text Not Translated In Polls Widget
134
* FIXED: 2 Wrong Options Name In Polls Uninstall
135
* FIXED: Some Translation Bug in polls-usage.php
136
137
= Version 2.20 (01-06-2007) =
138
* NEW: Poll Archive Link, Individual Poll Header And Footer In Poll Archive Template
139
* NEW: Poll Templates Has Now Its Own Page 'WP-Admin -> Polls -> Poll Templates'
140
* NEW: Poll Widget Can Now Display Multiple Polls
141
* NEW: Ability To Allow User To Select More Than 1 Poll Answer
142
* NEW: Added AJAX Style Option: "Show Loading Image With Text"
143
* NEW: Added AJAX Style Option: "Show Fading In And Fading Out Of Polls"
144
* NEW: Major Changes To The Administration Panel For WP-Polls
145
* NEW: AJAX Added To The Administration Panel For WP-Polls
146
* NEW: Default Poll's Result Template Will Now Show Number Of Votes Beside The Percentage
147
* NEW: Term "Total Votes" Changed To "Total Voters"
148
* NEW: Removed Polls From Feed If The Poll Is Embedded Into The Post Using [poll=ID]
149
* NEW: Filtering Of Individual Poll Logs
150
* FIXED: Poll Archive Will Now Show Only Polls Results
151
152
= Version 2.14 (01-02-2007) =
153
* NEW: Works For WordPress 2.1 Only
154
* NEW: Renamed polls-js.js to polls-js.php To Enable PHP Parsing
155
* NEW: Ability To Make A Poll Expire
156
* NEW: Ability To Make A Future Poll
157
* NEW: Future Poll Will Automatically Open When The Poll's Date Is Reached
158
* NEW: Expired Poll Will Automatically Closed When The Poll's Date Is Reached
159
* NEW: Ablity To Choose What To Do When The Poll Is Closed (Display Result, Remove Poll From Sidebar)
160
* FIXED: Future Dated Polls Will Not Appear In The Post/Sidebar/Polls Archive
161
162
= Version 2.13 (02-01-2007) =
163
* NEW: polls.php Now Handles The AJAX Processing Instead Of index.php
164
* NEW: Able To Modify The Style Of Poll Results Bar in 'Polls -> Poll Option'
165
* NEW: Usage Instructions Is Also Included Within The Plugin Itself
166
* NEW: Uninstaller Done By Philippe Corbes
167
* NEW: Localization Done By Ravan
168
* NEW: Ability To Add HTML Into Poll Question and Answers
169
* FIXED: AJAX Not Working On Servers Running On PHP CGI
170
* FIXED: Added Some Default Styles To polls-css.css To Ensure That WP-Polls Does Not Break
171
* FIXED: Other Languages Not Appearing Properly
172
* FIXED: Poll IP Logs Of Deleted Poll's Answer Did Not Get Deleted
173
* FIXED: There Is An Error In Voting If There Is Only 1 Poll's Answer
174
175
= Version 2.12 (01-10-2006) =
176
* NEW: Polls Archive Is Now Embedded Into A Page, And Hence No More Integrating Of Polls Archive
177
* NEW: WP-Polls Is Now Using DIV To Display The Poll's Results Instead Of The Image Bar
178
* NEW: Added Widget Title Option To WP-Polls Widget
179
* NEW: Ability To Logged By UserName
180
* NEW: Added CSS Class 'wp-polls-image' To All IMG Tags
181
* FIXED: If Site URL Doesn't Match WP Option's Site URL, WP-Polls Will Not Work
182
183
= Version 2.11 (08-06-2006) =
184
* NEW: You Can Now Place The Poll On The Sidebar As A Widget
185
* NEW: Moved wp-polls.php To wp-content/plugins/polls/ Folder
186
* FIXED: AJAX Not Working In Opera Browser
187
* FIXED: Poll Not Working On Physical Pages That Is Integrated Into WordPress
188
189
= Version 2.1 (01-06-2006) =
190
* NEW: Poll Is Now Using AJAX
191
* NEW: Ability To Close/Open Poll
192
* NEW: Added Poll Option For Logging Method
193
* NEW: Added Poll Option For Who Can Vote
194
* NEW: Added Poll Results Footer Template Variable (Used When User Click "View Results")
195
* NEW: Added The Ability To Delete All Poll Logs Or Logs From A Specific Poll
196
* NEW: Poll Administration Panel And The Code That WP-Polls Generated Is XHTML 1.0 Transitional
197
198
= Version 2.06b (26-04-2006) =
199
* FIXED: Bug In vote_poll();
200
201
= Version 2.06a (02-04-2006) =
202
* FIXED: Random Poll Not Working Correctly
203
204
= Version 2.06 (01-04-2006) =
205
* NEW: Poll Bar Is Slightly Nicer
206
* NEW: Got Rid Of Tables, Now Using List
207
* NEW: Added In Most Voted And Least Voted Answer/Votes/Percentage For Individual Poll As Template Variables
208
* NEW: Display Random Poll Option Under Poll -> Poll Options -> Current Poll
209
* FIXED: Totally Removed Tables In wp-polls.php
210
211
= Version 2.05 (01-03-2006) =
212
* NEW: Improved On 'manage_polls' Capabilities
213
* NEW: Neater Structure
214
* NEW: No More Install/Upgrade File, It Will Install/Upgrade When You Activate The Plugin
215
* NEW: Added Poll Stats Function
216
217
= Version 2.04 (01-02-2006) =
218
* NEW: Added 'manage_polls' Capabilities To Administrator Role
219
* NEW: [poll=POLL_ID] Tag To Insert Poll Into A Post
220
* NEW: Ability To Edit Poll's Timestamp
221
* NEW: Ability To Edit Individual Poll's Answer Votes
222
* NEW: %POLL_RESULT_URL% To Display Poll's Result URL
223
* FIXED: Cannot Sent Header Error
224
225
= Version 2.03 (01-01-2006) =
226
* NEW: Compatible With WordPress 2.0 Only
227
* NEW: Poll Administration Menu Added Automatically Upon Activating The Plugin
228
* NEW: Removed Add Poll Link From The Administration Menu
229
* NEW: GPL License Added
230
* NEW: Page Title Added To wp-polls.php
231
232
= Version 2.02a (17-11-2005) =
233
* FIXED: poll-install.php And poll-upgrade.php will Now Be Installed/Upgraded To 2.02 Instead Of 2.01
234
235
= Version 2.02 (05-11-2005) =
236
* FIXED: Showing 0 Vote On Poll Edit Page
237
* FIXED: Null Vote Being Counted As A Vote
238
* FIXED: Auto Loading Of Poll Option: Polls Per Page In Poll Archive Page Is Now "No"
239
* NEW: Host Column In Poll IP Table To Prevent Network Lagging When Resolving IP
240
* NEW: New Poll Error Template
241
242
= Version 2.01 (25-10-2005) =
243
* FIXED: Upgrade Script To Insert Lastest Poll ID Of User's Current Polls, Instead Of Poll ID 1
244
* FIXED: Replace All <?### With <?php
245
* FIXED: Added addalshes() To $pollip_user
246
* FIXED: Better Localization Support (80% Done, Will Leave It In The Mean Time)
247
248
= Version 2.0 (20-10-2005) =
249
* NEW: IP Logging
250
* NEW: Poll Options: Sorting Of Answers In Voting Form
251
* NEW: Poll Options: Sorting Of Answers In Results View
252
* NEW: Poll Options: Number Of Polls Per Page In Poll Archive
253
* NEW: Poll Options: Choose Poll To Display On Index Page
254
* NEW: Poll Options: Able To Disable Poll With Custom Message
255
* NEW: Poll Options: Poll Templates
256
* NEW: Display User's Voted Choice
257
* FIXED: Better Install/Upgrade Script
258
259
== Installation ==
260
261
1. Open `wp-content/plugins` Folder
262
2. Put: `Folder: wp-polls`
263
3. Activate `WP-Polls` Plugin
264
4. Go to `WP-Admin -> WP-Polls`
265
266
= General Usage (Without Widget) =
267
1. Open `wp-content/themes/<YOUR THEME NAME>/sidebar.php`
268
2. Add:
269
<code>
270
<?php if (function_exists('vote_poll') && !in_pollarchive()): ?>
271
<li>
272
<h2>Polls</h2>
273
<ul>
274
<li><?php get_poll();?></li>
275
</ul>
276
<?php display_polls_archive_link(); ?>
277
</li>
278
<?php endif; ?>
279
</code>
280
281
* To show specific poll, use `<?php get_poll(2); ?>` where 2 is your poll id.
282
* To show random poll, use `<?php get_poll(-2); ?>`
283
* To embed a specific poll in your post, use `[poll id="2"]` where 2 is your poll id.
284
* To embed a random poll in your post, use `[poll id="-2"]`
285
* To embed a specific poll's result in your post, use `[poll id="2" type="result"]` where 2 is your poll id.
286
287
= General Usage (With Widget) =
288
1. Go to `WP-Admin -> Appearance -> Widgets`.
289
2. You can add the Polls Widget by clicking on the 'Add' link besides it.
290
3. After adding, you can configure the Polls Widget by clicking on the 'Edit' link besides it.
291
4. Click 'Save Changes'.
292
5. Scroll down for instructions on how to create a Polls Archive.
293
294
== Upgrading ==
295
296
1. Deactivate `WP-Polls` Plugin
297
2. Open `wp-content/plugins` Folder
298
3. Put/Overwrite: `Folder: wp-polls`
299
4. Activate `WP-Polls` Plugin
300
5. Go to `WP-Admin -> Polls -> Polls Templates` and restore all the template variables to `Default`
301
6. Go to `WP-Admin -> Appearance -> Widgets` and re-add the Poll Widget
302
303
== Upgrade Notice ==
304
305
N/A
306
307
== Screenshots ==
308
309
1. Admin - All Poll
310
2. Admin - Manage Polls
311
3. Admin - Poll Options
312
4. Admin - Poll Templates
313
5. Admin - Poll Widget
314
6. Admin - Uninstall Poll
315
7. Poll - Single Poll Answer
316
8. Poll - Mutiple Poll Answers
317
9. Poll - Results
318
10. Poll - Archive
319
320
== Frequently Asked Questions ==
321
322
323
= How To Add A Polls Archive? =
324
1. Go to `WP-Admin -> Pages -> Add New`.
325
2. Type any title you like in the post's title area.
326
3. If you ARE using nice permalinks, after typing the title, WordPress will generate the permalink to the page. You will see an 'Edit' link just beside the permalink.
327
4. Click 'Edit' and type in `pollsarchive` in the text field and click 'Save'.
328
5. Type `[page_polls]` in the post's content area.
329
6. Click 'Publish'.
330
331
* If you ARE NOT using nice permalinks, you need to go to `WP-Admin -> Polls -> Poll Options` and under `Poll Archive -> Polls Archive URL`, you need to fill in the URL to the Polls Archive Page you created above.
332
333
= How Does WP-Polls Load CSS? =
334
* WP-Polls will load 'polls-css.css' from your theme's directory if it exists.
335
* If it doesn't exists, it will just load the default 'polls-css.css' that comes with WP-Polls.
336
* This will allow you to upgrade WP-Polls without worrying about overwriting your polls styles that you have created.
337
338
= Why In Internet Explorer (IE) The poll's Text Appear Jagged? =
339
* To solve this issue, Open poll-css.css
340
* Find: `/* background-color: #ffffff; */`
341
* Replace: `background-color: #ffffff;` (where #ffffff should be your background color for the poll.)
342
343
= How Do I Have Individual Colors For Each Poll's Bar? =
344
* Courtesy Of [TreedBox.com](http://treedbox.com "TreedBox.com")
345
* Open poll-css.css
346
* Add to the end of the file:
347
348
<code>
349
.wp-polls-ul li:nth-child(01) .pollbar{ background:#8FA0C5}
350
.wp-polls-ul li:nth-child(02) .pollbar{ background:#FF8}
351
.wp-polls-ul li:nth-child(03) .pollbar{ background:#ff8a3b}
352
.wp-polls-ul li:nth-child(04) .pollbar{ background:#a61e2a}
353
.wp-polls-ul li:nth-child(05) .pollbar{ background:#4ebbff}
354
.wp-polls-ul li:nth-child(06) .pollbar{ background:#fbca54}
355
.wp-polls-ul li:nth-child(07) .pollbar{ background:#aad34f}
356
.wp-polls-ul li:nth-child(08) .pollbar{ background:#66cc9a}
357
.wp-polls-ul li:nth-child(09) .pollbar{ background:#98CBCB}
358
.wp-polls-ul li:nth-child(10) .pollbar{ background:#a67c52}
359
.wp-polls-ul li .pollbar{-webkit-transition: background 0.7s ease-in-out}
360
.wp-polls-ul li .pollbar:hover{background:#F00}
361
</code>
362
363
= Polls Stats (Outside WP Loop) =
364
365
= To Display Total Polls =
366
* Use:
367
<code>
368
<?php if (function_exists('get_pollquestions')): ?>
369
<?php get_pollquestions(); ?>
370
<?php endif; ?>
371
</code>
372
373
= To Display Total Poll Answers =
374
* Use:
375
<code>
376
<?php if (function_exists('get_pollanswers')): ?>
377
<?php get_pollanswers(); ?>
378
<?php endif; ?>
379
</code>
380
381
= To Display Total Poll Votes =
382
* Use:
383
<code>
384
<?php if (function_exists('get_pollvotes')): ?>
385
<?php get_pollvotes(); ?>
386
<?php endif; ?>
387
</code>
388
389
= To Display Total Poll Voters =
390
* Use:
391
<code>
392
<?php if (function_exists('get_pollvoters')): ?>
393
<?php get_pollvoters(); ?>
394
<?php endif; ?>
395
</code>
396
397