» Index
Plugin Information
Author
» Lester 'GaMerZ' Chan
EMail:
»
Website:
» http://www.lesterchan.net/
Demo:
» http://www.lesterchan.net/blogs
Documentation:
» http://dev.wp-plugins.org/wiki/wp-polls
Development:
» http://dev.wp-plugins.org/browser/wp-polls/
Support Forums:
» http://forums.lesterchan.net/viewforum.php?f=7
Updated:
» 8th June 2006
Note:
» I have changed some of WP-Polls's structure to accommodate AJAX, So if there is any bug, please contact me immediately.
Changelog
-
Version 2.11 (08-06-2006)
- NEW: You Can Now Place The Poll On The Sidebar As A Widget
- NEW: Moved wp-polls.php To wp-content/plugins/polls/ Folder
- FIXED: AJAX Not Working In Opera Browser
- FIXED: Poll Not Working On Physical Pages That Is Integrated Into WordPress
-
Version 2.1 (01-06-2006)
- NEW: Poll Is Now Using AJAX
- NEW: Ability To Close/Open Poll
- NEW: Added Poll Option For Logging Method
- NEW: Added Poll Option For Who Can Vote
- NEW: Added Poll Results Footer Template Variable (Used When User Click "View Results")
- NEW: Added The Ability To Delete All Poll Logs Or Logs From A Specific Poll
- NEW: Poll Administration Panel And The Code That WP-Polls Generated Is XHTML 1.0 Transitional
-
Version 2.06b (26-04-2006)
- FIXED: Bug In vote_poll();
-
Version 2.06a (02-04-2006)
- FIXED: Random Poll Not Working Correctly
-
Version 2.06 (01-04-2006)
- NEW: Poll Bar Is Slightly Nicer
- NEW: Got Rid Of Tables, Now Using List
- NEW: Added In Most Voted And Least Voted Answer/Votes/Percentage For Individual Poll As Template Variables
- NEW: Display Random Poll Option Under Poll -> Poll Options -> Current Poll
- FIXED: Totally Removed Tables In wp-polls.php
-
Version 2.05 (01-03-2006)
- NEW: Improved On 'manage_polls' Capabilities
- NEW: Neater Structure
- NEW: No More Install/Upgrade File, It Will Install/Upgrade When You Activate The Plugin
- NEW: Added Poll Stats Function
-
Version 2.04 (01-02-2006)
- NEW: Added 'manage_polls' Capabilities To Administrator Role
- NEW: [poll=POLL_ID] Tag To Insert Poll Into A Post
- NEW: Ability To Edit Poll's Timestamp
- NEW: Ability To Edit Individual Poll's Answer Votes
- NEW: %POLL_RESULT_URL% To Display Poll's Result URL
- FIXED: Cannot Sent Header Error
-
Version 2.03 (01-01-2006)
- NEW: Compatible With WordPress 2.0 Only
- NEW: Poll Administration Menu Added Automatically Upon Activating The Plugin
- NEW: Removed Add Poll Link From The Administration Menu
- NEW: GPL License Added
- NEW: Page Title Added To wp-polls.php
-
Version 2.02a (17-11-2005)
- FIXED: poll-install.php And poll-upgrade.php will Now Be Installed/Upgraded To 2.02 Instead Of 2.01
-
Version 2.02 (05-11-2005)
- FIXED: Showing 0 Vote On Poll Edit Page
- FIXED: Null Vote Being Counted As A Vote
- FIXED: Auto Loading Of Poll Option: Polls Per Page In Poll Archive Page Is Now "No"
- NEW: Host Column In Poll IP Table To Prevent Network Lagging When Resolving IP
- NEW: New Poll Error Template
-
Version 2.01 (25-10-2005)
- FIXED: Upgrade Script To Insert Lastest Poll ID Of User's Current Polls, Instead Of Poll ID 1
- FIXED: Replace All <?= With <?php
- FIXED: Added addalshes() To $pollip_user
- FIXED: Better Localization Support (80% Done, Will Leave It In The Mean Time)
-
Version 2.0 (20-10-2005)
- NEW: IP Logging
- NEW: Poll Options: Sorting Of Answers In Voting Form
- NEW: Poll Options: Sorting Of Answers In Results View
- NEW: Poll Options: Number Of Polls Per Page In Poll Archive
- NEW: Poll Options: Choose Poll To Display On Index Page
- NEW: Poll Options: Able To Disable Poll With Custom Message
- NEW: Poll Options: Poll Templates
- NEW: Display User's Voted Choice
- FIXED: Better Install/Upgrade Script
» Installation Instructions
-
Open wp-content/plugins Folder
-
Put:
Folder: polls
-
Activate WP-Polls Plugin
-
Refer To Usage For Further Instructions
» Upgrade Instructions
From v2.06 To v2.11
-
Deactivate WP-Polls Plugin
-
Open wp-content/plugins Folder
-
Overwrite:
Folder: polls
-
Open Root WordPress Folder
-
Delete file if exists:
File: wp-polls.php
-
Activate WP-Polls Plugin
-
Go to 'WP-Admin -> Polls -> Polls Options' and restore all the template variables to Default
From v1.0x To v2.11
-
Deactivate WP-Polls Plugin
-
Delete these file if exists:
wp-content/plugins/polls.php
wp-admin/polls-options.php
wp-admin/polls-manager.php
wp-includes/images/pollbar.gif
wp-polls.php
-
Open wp-content/plugins Folder
-
Put:
Folder: polls
-
Activate WP-Polls Plugin
-
Go to 'WP-Admin -> Polls -> Polls Options' and restore all the template variables to Default
-
Refer To Usage For Further Instructions
» Usage Instructions
General Usage
-
Open wp-content/themes/<YOUR THEME NAME>/sidebar.php
-
Add:
<?php if (function_exists('vote_poll') && basename($_SERVER['PHP_SELF']) != 'wp-polls.php'): ?>
<li>
<h2>Polls</h2>
<ul>
<li><?php get_poll();?></li>
<li><a href="<?php echo get_settings('siteurl'); ?>/wp-content/plugins/polls/wp-polls.php">Polls Archive</a></li>
</ul>
</li>
<?php endif; ?>
To show specific poll, use <?php get_poll(<ID>);?> where <ID> is your poll id.
To embed a specific poll in your post, use [poll=<ID>] where <ID> is your poll id.
-
Tutorial On How To Integrate wp-polls.php With Your Theme:
http://www.lesterchan.net/wordpress/tutorials/integrating/
-
Note: In IE, some of the poll's text may appear jagged (this is normal in IE). To solve this issue,
-
Open poll-css.css
-
Find:
/* background-color: #ffffff; */
-
Replace:
background-color: #ffffff;
Where #ffffff should be your background color for the poll.
Polls Stats (Outside WP Loop)
-
To Display Total Polls
-
Use:
<?php if (function_exists('get_pollquestions')): ?>
<?php get_pollquestions(); ?>
<?php endif; ?>
-
To Display Total Poll Answers
-
Use:
<?php if (function_exists('get_pollanswers')): ?>
<?php get_pollanswers(); ?>
<?php endif; ?>
-
To Display Total Poll Votes
-
Use:
<?php if (function_exists('get_pollvotes')): ?>
<?php get_pollvotes(); ?>
<?php endif; ?>