Path: blob/master/spec/fixtures/finders/plugin_version/readme/wp_polls.txt
486 views
=== WP-Polls ===1Contributors: GamerZ2Donate link: http://lesterchan.net/site/donation/3Tags: poll, polls, polling, vote, booth, democracy, ajax, survey, post, widget4Requires at least: 2.85Tested up to: 3.76Stable tag: trunk78Adds an AJAX poll system to your WordPress blog. You can also easily add a poll into your WordPress's blog post/page.910== Description ==1112WP-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.1314= Previous Versions =15* [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")16* [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")17* [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")18* [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")19* [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")2021= Development =22* [http://dev.wp-plugins.org/browser/wp-polls/](http://dev.wp-plugins.org/browser/wp-polls/ "http://dev.wp-plugins.org/browser/wp-polls/")2324= Translations =25* [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/")2627= Support Forums =28* [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")2930= Credits =31* __ngetext() by [Anna Ozeritskaya](http://hweia.ru/ "Anna Ozeritskaya")32* Right To Left Language Support by [Kambiz R. Khojasteh](http://persian-programming.com/ "Kambiz R. Khojasteh")3334= Donations =35* 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.3637== Changelog ==3839= Version 2.64 =40* NEW: Add in various filters in the plugin. Props Machiel.41* FIXED: Deveral undefined variable / undefined index notices. Props Machiel.4243= Version 2.63 (21-05-2012) =44* Move AJAX Request to wp-admin/admin-ajax.php45* Added nonce To AJAX Calls46* FIXED: PHP Notices/add_options() Deprecated Arguments ([Dewey Bushaw](http://www.parapxl.com/ "Dewey Bushaw"))4748= Version 2.62 (31-08-2011) =49* FIXED: Escaped Hostname. Thanks to Renaud Feil ([Renaud Feil](http://www.stratsec.net "Renaud Feil"))50* FIXED: Ensure Poll ID In Shortcode Is An Integer. Thanks to Renaud Feil ([Renaud Feil](http://www.stratsec.net "Renaud Feil"))5152= Version 2.61 (14-02-2011) =53* 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"))5455= Version 2.60 (01-12-2009) =56* NEW: Uses WordPress nonce Throughout57* NEW: Display 2,000 Records In Poll Logs Instead Of 1005859= Version 2.50 (01-06-2009) =60* NEW: Works For WordPress 2.8 Only61* NEW: Javascript Now Placed At The Footer62* NEW: Uses jQuery Instead Of tw-sack63* NEW: Minified Javascript Instead Of Packed Javascript64* NEW: Renamed polls-admin-js-packed.js To polls-admin-js.js65* NEW: Renamed polls-admin-js.js To polls-admin-js.dev.js66* NEW: Renamed polls-js-packed.js To polls-js.js67* NEW: Renamed polls-js.js To polls-js.dev.js68* NEW: Translate Javascript Variables Using wp_localize_script()69* NEW: Add "Add Poll" To WordPress Favourite Actions70* NEW: Minified editor_plugin.js And Added Non-Minified editor_plugin.dev.js71* NEW: Able To Remove Individual Answers When Adding Or Editing A Poll72* NEW: Use _n() Instead Of __ngettext() And _n_noop() Instead Of __ngettext_noop()73* NEW: Uses New Widget Class From WordPress74* NEW: Merge Widget Code To wp-polls.php And Remove wp-polls-widget.php75* FIXED: Uses $_SERVER['PHP_SELF'] With plugin_basename(__FILE__) Instead Of Just $_SERVER['REQUEST_URI']76* FIXED: Ensure That Percentage Always Add Up To 100%77* FIXED: More Efficient WP-Polls Archive78* FIXED: Logged By Username Now Shows Poll Results To Users Who Did Not Login7980= Version 2.40 (12-12-2008) =81* NEW: Works For WordPress 2.7 Only82* NEW: Load Admin JS And CSS Only In WP-Polls Admin Pages83* NEW: Added polls-admin-css.css For WP-Polls Admin CSS Styles84* NEW: Right To Left Language Support by Kambiz R. Khojasteh85* NEW: Added "polls-css-rtl.css" by Kambiz R. Khojasteh86* NEW: Applied Output Of polls_archive() To "polls_archive" Filter by Kambiz R. Khojasteh87* NEW: Added Call To polls_textdomain() In create_poll_table() and vote_poll() functions by Kambiz R. Khojasteh88* NEW: Uses wp_register_style(), wp_print_styles(), plugins_url() And site_url()89* NEW: [poll id="-2"] or <?php get_poll(-2); ?> Will Randomize The Poll90* FIXED: SSL Support91* FIXED: Moved Call To update_pollbar() From onblur To onclick Event. It Was Showing The Last Selection Instead Of Current One by Kambiz R. Khojasteh9293= Version 2.31 (16-07-2008) =94* NEW: Works For WordPress 2.695* NEW: Better Translation Using __ngetext() by Anna Ozeritskaya96* FIXED: MYSQL Charset Issue Should Be Solved9798= Version 2.30 (01-06-2008) =99* NEW: Works For WordPress 2.5 Only100* NEW: Added Paging Header And Footer Template For Polls Archive Page101* NEW: Uses WP-PageNavi Style Paging For Polls Archive Page102* 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-Polls103* NEW: Uses Shortcode API104* NEW: When Inserting Poll Into Post, It is Now [poll id="1"], Where 1 Is Your Poll ID105* NEW: When User Does Not Have Permission To Vote, The Voting Form Is Now Disabled Instead Of Showing Poll's Result106* NEW: Added A New Action Called "Display Disabled Poll's Voting Form" To Action Taken When A Poll Is Closed107* NEW: Updated WP-Polls TinyMCE Plugin To Work With TinyMCE 3.0108* NEW: Add Time Expiry For Cookie/Log109* NEW: Removed polls-usage.php110* NEW: Removed "Fade Anything Technique" In Polls Admin111* NEW: Uses /wp-polls/ Folder Instead Of /polls/112* NEW: Uses wp-polls.php Instead Of polls.php113* NEW: Uses wp-polls-widget.php Instead Of polls-widget.php114* NEW: Use number_format_i18n() Instead115* NEW: Renamed polls-admin-js.php To polls-admin-js.js and Move The Dynamic Javascript Variables To The PHP Pages116* NEW: Renamed polls-js.php To polls-js.js and Move The Dynamic Javascript Variables To The PHP Pages117* NEW: Uses polls-js-packed.js And polls-admin-js-packed.js118* FIXED: Unable To Delete Poll Or Poll Answers If There Is Quotes Within The Poll Or Poll Answer119* FIXED: number_format() Not Used In Polls Archive120* FIXED: Unable To Schedule Future Poll If The Year Is Different From Current Year121* FIXED: TinyMCE Tool Tip For Insert Poll Not Translated122* FIXED: Content-Type Not Being Sent Back When AJAX Return Results123124= Version 2.21 (01-10-2007) =125* NEW: Works For WordPress 2.3 Only126* NEW: Added Quick Tag For Poll To Visual (TinyMCE) / Code Editor127* NEW: New CSS Style For WP-Polls Archive (.wp-polls-archive)128* NEW: Uses WP-Stats Filter To Add Stats Into WP-Stats Page129* NEW: Ability To Add Polls To Excerpt130* NEW: Added "Random Order" For Sorting Poll's Answers And Poll's Result Answers131* FIXED: Language Problem By Setting Database Table To UTF8132* FIXED: Some Text Not Translated In Polls Widget133* FIXED: 2 Wrong Options Name In Polls Uninstall134* FIXED: Some Translation Bug in polls-usage.php135136= Version 2.20 (01-06-2007) =137* NEW: Poll Archive Link, Individual Poll Header And Footer In Poll Archive Template138* NEW: Poll Templates Has Now Its Own Page 'WP-Admin -> Polls -> Poll Templates'139* NEW: Poll Widget Can Now Display Multiple Polls140* NEW: Ability To Allow User To Select More Than 1 Poll Answer141* NEW: Added AJAX Style Option: "Show Loading Image With Text"142* NEW: Added AJAX Style Option: "Show Fading In And Fading Out Of Polls"143* NEW: Major Changes To The Administration Panel For WP-Polls144* NEW: AJAX Added To The Administration Panel For WP-Polls145* NEW: Default Poll's Result Template Will Now Show Number Of Votes Beside The Percentage146* NEW: Term "Total Votes" Changed To "Total Voters"147* NEW: Removed Polls From Feed If The Poll Is Embedded Into The Post Using [poll=ID]148* NEW: Filtering Of Individual Poll Logs149* FIXED: Poll Archive Will Now Show Only Polls Results150151= Version 2.14 (01-02-2007) =152* NEW: Works For WordPress 2.1 Only153* NEW: Renamed polls-js.js to polls-js.php To Enable PHP Parsing154* NEW: Ability To Make A Poll Expire155* NEW: Ability To Make A Future Poll156* NEW: Future Poll Will Automatically Open When The Poll's Date Is Reached157* NEW: Expired Poll Will Automatically Closed When The Poll's Date Is Reached158* NEW: Ablity To Choose What To Do When The Poll Is Closed (Display Result, Remove Poll From Sidebar)159* FIXED: Future Dated Polls Will Not Appear In The Post/Sidebar/Polls Archive160161= Version 2.13 (02-01-2007) =162* NEW: polls.php Now Handles The AJAX Processing Instead Of index.php163* NEW: Able To Modify The Style Of Poll Results Bar in 'Polls -> Poll Option'164* NEW: Usage Instructions Is Also Included Within The Plugin Itself165* NEW: Uninstaller Done By Philippe Corbes166* NEW: Localization Done By Ravan167* NEW: Ability To Add HTML Into Poll Question and Answers168* FIXED: AJAX Not Working On Servers Running On PHP CGI169* FIXED: Added Some Default Styles To polls-css.css To Ensure That WP-Polls Does Not Break170* FIXED: Other Languages Not Appearing Properly171* FIXED: Poll IP Logs Of Deleted Poll's Answer Did Not Get Deleted172* FIXED: There Is An Error In Voting If There Is Only 1 Poll's Answer173174= Version 2.12 (01-10-2006) =175* NEW: Polls Archive Is Now Embedded Into A Page, And Hence No More Integrating Of Polls Archive176* NEW: WP-Polls Is Now Using DIV To Display The Poll's Results Instead Of The Image Bar177* NEW: Added Widget Title Option To WP-Polls Widget178* NEW: Ability To Logged By UserName179* NEW: Added CSS Class 'wp-polls-image' To All IMG Tags180* FIXED: If Site URL Doesn't Match WP Option's Site URL, WP-Polls Will Not Work181182= Version 2.11 (08-06-2006) =183* NEW: You Can Now Place The Poll On The Sidebar As A Widget184* NEW: Moved wp-polls.php To wp-content/plugins/polls/ Folder185* FIXED: AJAX Not Working In Opera Browser186* FIXED: Poll Not Working On Physical Pages That Is Integrated Into WordPress187188= Version 2.1 (01-06-2006) =189* NEW: Poll Is Now Using AJAX190* NEW: Ability To Close/Open Poll191* NEW: Added Poll Option For Logging Method192* NEW: Added Poll Option For Who Can Vote193* NEW: Added Poll Results Footer Template Variable (Used When User Click "View Results")194* NEW: Added The Ability To Delete All Poll Logs Or Logs From A Specific Poll195* NEW: Poll Administration Panel And The Code That WP-Polls Generated Is XHTML 1.0 Transitional196197= Version 2.06b (26-04-2006) =198* FIXED: Bug In vote_poll();199200= Version 2.06a (02-04-2006) =201* FIXED: Random Poll Not Working Correctly202203= Version 2.06 (01-04-2006) =204* NEW: Poll Bar Is Slightly Nicer205* NEW: Got Rid Of Tables, Now Using List206* NEW: Added In Most Voted And Least Voted Answer/Votes/Percentage For Individual Poll As Template Variables207* NEW: Display Random Poll Option Under Poll -> Poll Options -> Current Poll208* FIXED: Totally Removed Tables In wp-polls.php209210= Version 2.05 (01-03-2006) =211* NEW: Improved On 'manage_polls' Capabilities212* NEW: Neater Structure213* NEW: No More Install/Upgrade File, It Will Install/Upgrade When You Activate The Plugin214* NEW: Added Poll Stats Function215216= Version 2.04 (01-02-2006) =217* NEW: Added 'manage_polls' Capabilities To Administrator Role218* NEW: [poll=POLL_ID] Tag To Insert Poll Into A Post219* NEW: Ability To Edit Poll's Timestamp220* NEW: Ability To Edit Individual Poll's Answer Votes221* NEW: %POLL_RESULT_URL% To Display Poll's Result URL222* FIXED: Cannot Sent Header Error223224= Version 2.03 (01-01-2006) =225* NEW: Compatible With WordPress 2.0 Only226* NEW: Poll Administration Menu Added Automatically Upon Activating The Plugin227* NEW: Removed Add Poll Link From The Administration Menu228* NEW: GPL License Added229* NEW: Page Title Added To wp-polls.php230231= Version 2.02a (17-11-2005) =232* FIXED: poll-install.php And poll-upgrade.php will Now Be Installed/Upgraded To 2.02 Instead Of 2.01233234= Version 2.02 (05-11-2005) =235* FIXED: Showing 0 Vote On Poll Edit Page236* FIXED: Null Vote Being Counted As A Vote237* FIXED: Auto Loading Of Poll Option: Polls Per Page In Poll Archive Page Is Now "No"238* NEW: Host Column In Poll IP Table To Prevent Network Lagging When Resolving IP239* NEW: New Poll Error Template240241= Version 2.01 (25-10-2005) =242* FIXED: Upgrade Script To Insert Lastest Poll ID Of User's Current Polls, Instead Of Poll ID 1243* FIXED: Replace All <?### With <?php244* FIXED: Added addalshes() To $pollip_user245* FIXED: Better Localization Support (80% Done, Will Leave It In The Mean Time)246247= Version 2.0 (20-10-2005) =248* NEW: IP Logging249* NEW: Poll Options: Sorting Of Answers In Voting Form250* NEW: Poll Options: Sorting Of Answers In Results View251* NEW: Poll Options: Number Of Polls Per Page In Poll Archive252* NEW: Poll Options: Choose Poll To Display On Index Page253* NEW: Poll Options: Able To Disable Poll With Custom Message254* NEW: Poll Options: Poll Templates255* NEW: Display User's Voted Choice256* FIXED: Better Install/Upgrade Script257258== Installation ==2592601. Open `wp-content/plugins` Folder2612. Put: `Folder: wp-polls`2623. Activate `WP-Polls` Plugin2634. Go to `WP-Admin -> WP-Polls`264265= General Usage (Without Widget) =2661. Open `wp-content/themes/<YOUR THEME NAME>/sidebar.php`2672. Add:268<code>269<?php if (function_exists('vote_poll') && !in_pollarchive()): ?>270<li>271<h2>Polls</h2>272<ul>273<li><?php get_poll();?></li>274</ul>275<?php display_polls_archive_link(); ?>276</li>277<?php endif; ?>278</code>279280* To show specific poll, use `<?php get_poll(2); ?>` where 2 is your poll id.281* To show random poll, use `<?php get_poll(-2); ?>`282* To embed a specific poll in your post, use `[poll id="2"]` where 2 is your poll id.283* To embed a random poll in your post, use `[poll id="-2"]`284* To embed a specific poll's result in your post, use `[poll id="2" type="result"]` where 2 is your poll id.285286= General Usage (With Widget) =2871. Go to `WP-Admin -> Appearance -> Widgets`.2882. You can add the Polls Widget by clicking on the 'Add' link besides it.2893. After adding, you can configure the Polls Widget by clicking on the 'Edit' link besides it.2904. Click 'Save Changes'.2915. Scroll down for instructions on how to create a Polls Archive.292293== Upgrading ==2942951. Deactivate `WP-Polls` Plugin2962. Open `wp-content/plugins` Folder2973. Put/Overwrite: `Folder: wp-polls`2984. Activate `WP-Polls` Plugin2995. Go to `WP-Admin -> Polls -> Polls Templates` and restore all the template variables to `Default`3006. Go to `WP-Admin -> Appearance -> Widgets` and re-add the Poll Widget301302== Upgrade Notice ==303304N/A305306== Screenshots ==3073081. Admin - All Poll3092. Admin - Manage Polls3103. Admin - Poll Options3114. Admin - Poll Templates3125. Admin - Poll Widget3136. Admin - Uninstall Poll3147. Poll - Single Poll Answer3158. Poll - Mutiple Poll Answers3169. Poll - Results31710. Poll - Archive318319== Frequently Asked Questions ==320321322= How To Add A Polls Archive? =3231. Go to `WP-Admin -> Pages -> Add New`.3242. Type any title you like in the post's title area.3253. 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.3264. Click 'Edit' and type in `pollsarchive` in the text field and click 'Save'.3275. Type `[page_polls]` in the post's content area.3286. Click 'Publish'.329330* 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.331332= How Does WP-Polls Load CSS? =333* WP-Polls will load 'polls-css.css' from your theme's directory if it exists.334* If it doesn't exists, it will just load the default 'polls-css.css' that comes with WP-Polls.335* This will allow you to upgrade WP-Polls without worrying about overwriting your polls styles that you have created.336337= Why In Internet Explorer (IE) The poll's Text Appear Jagged? =338* To solve this issue, Open poll-css.css339* Find: `/* background-color: #ffffff; */`340* Replace: `background-color: #ffffff;` (where #ffffff should be your background color for the poll.)341342= How Do I Have Individual Colors For Each Poll's Bar? =343* Courtesy Of [TreedBox.com](http://treedbox.com "TreedBox.com")344* Open poll-css.css345* Add to the end of the file:346347<code>348.wp-polls-ul li:nth-child(01) .pollbar{ background:#8FA0C5}349.wp-polls-ul li:nth-child(02) .pollbar{ background:#FF8}350.wp-polls-ul li:nth-child(03) .pollbar{ background:#ff8a3b}351.wp-polls-ul li:nth-child(04) .pollbar{ background:#a61e2a}352.wp-polls-ul li:nth-child(05) .pollbar{ background:#4ebbff}353.wp-polls-ul li:nth-child(06) .pollbar{ background:#fbca54}354.wp-polls-ul li:nth-child(07) .pollbar{ background:#aad34f}355.wp-polls-ul li:nth-child(08) .pollbar{ background:#66cc9a}356.wp-polls-ul li:nth-child(09) .pollbar{ background:#98CBCB}357.wp-polls-ul li:nth-child(10) .pollbar{ background:#a67c52}358.wp-polls-ul li .pollbar{-webkit-transition: background 0.7s ease-in-out}359.wp-polls-ul li .pollbar:hover{background:#F00}360</code>361362= Polls Stats (Outside WP Loop) =363364= To Display Total Polls =365* Use:366<code>367<?php if (function_exists('get_pollquestions')): ?>368<?php get_pollquestions(); ?>369<?php endif; ?>370</code>371372= To Display Total Poll Answers =373* Use:374<code>375<?php if (function_exists('get_pollanswers')): ?>376<?php get_pollanswers(); ?>377<?php endif; ?>378</code>379380= To Display Total Poll Votes =381* Use:382<code>383<?php if (function_exists('get_pollvotes')): ?>384<?php get_pollvotes(); ?>385<?php endif; ?>386</code>387388= To Display Total Poll Voters =389* Use:390<code>391<?php if (function_exists('get_pollvoters')): ?>392<?php get_pollvoters(); ?>393<?php endif; ?>394</code>395396397