WP Voting Plugin
Site owner to add voting functionality to the blog posts.
A plugin to site owner to add voting functionality to the blog posts.
Using the power of the ajax, voter can have instant voting and update to top voted widget.
It doesn’t matter voter is logged in or not. Public voting is done by tracking their IP address.
It isn’t end here. Blog owner will have complete control over those voting feature as well as using custom
vote button and vote text.
Features
- Control voting feature via voting on/off (admin feature)
- Control allow or disallow post author to vote his own posts (admin feature)
- Control allow or disallow public voting (admin feature)
- Customise vote and voted text (admin feature)
- Customise vote and voted buttons images (admin feature)
- Customise alert message for non logged in users (admin feature)
- Voting logs for site administrator (admin feature)
- Sort voting logs by vote count or voted date (admin feature)
- Show current vote count and vote button on frontend templates
- Compitible with almost all of the themes. You just need to call required function from your template
- Total vote count widget
- Top voted widget
- Now public voting supported.
- Now shortcode supported. e.g. [wpvoting]
- Top voted posts list shortcode
Features in future releases
- Export to CSV for admin voting logs
- Registered user voting logs
- Re-implement backend voting log list with WP_List_Table class
Note-1: Kindly please rate this plugin or vote the compatibility. So I could review it and improve the quality of this plugin. Appreciate your help!
Resources
http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/
http://www.onextrapixel.com/2009/06/22/how-to-add-pagination-into-list-of-records-or-wordpress-plugin/
http://www.onextrapixel.com/2009/07/01/how-to-design-and-style-your-wordpress-plugin-admin-panel/
http://planetozh.com/blog/2009/09/top-10-most-common-coding-mistakes-in-wordpress-plugins/
https://wordpress.org/extend/plugins/vote-it-up/
https://wordpress.org/extend/plugins/shortcodes-ultimate/
Installation
- Upload
wpv-voting
folder to /wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Voting menu >> Voting Options and turn on the voting feature
- You may add the custom alert message for non logged in users
- You can use shortcode
[wpvoting]
directly in your posts content < OR > - Add
if(function_exists('wpv_voting_display_vote')) wpv_voting_display_vote(get_the_ID());
between the wordpress loop of your theme templates such as category.php or single.php - You may also use shortcodes or widgets
Shortcode usage
— vote button —
[wpvoting]
— top voted list —
[wpv-top-voted show="10" nopostmsg="Nothing to show yet!"]
Note: This plugin will create two tables in your wordpress database
Screenshots
Sample vote count and voting button (logged in user)
After vote or post author view
Default alert message for un-logged in user
Sample admin voting logs
Admin voting options panel
FAQ
Please check it out my blog http://www.wpclue.com/development/plugins/wordpress-voting-plugin/
Changelog
1.0
- The first release of the plugin.
1.1
1.2
- Added allow or disallow post author to vote his own posts feature
1.2.1
- Fixed voting on/off options not getting selected state after initial plugin activate
- Fixed allow post author to vote his own posts options not getting selected state after initial plugin activate
- Fixed allow post author to vote his own posts options not getting deleted after deactivate the plugin
1.3
- Added custom vote text feature
- Added custom voted text feature
- Added custom vote button feature
- Added custom voted button feature
1.4
- Added shortcode support
- Tested compability with WordPress 3.2.1
1.4.1
- Fixed the broken admin css
1.4.2
1.5
- Added total vote count widget
- Re-design admin voting options page
1.5.1
- Added db version to options tbl for next release (public voting)
1.6
- Added public voting feature (unregistered / non-logged in users voting)
1.7
- Added top vote widget
- Add safe-guard javascript pop-up confirmation box for “Reset All” button
- Implemented proper un-installation (Now deactivate won’t delete db tables and settings)
- Bug fix (two or more users voting from same computer can’t vote)
1.8
- Added top voted list shortcode
- Added wpv_voting_get_display_vote function to overcome vote button is keep showing at the top of the post
- Now wpv_voting_display_vote will just echo out the wpv_voting_get_display_vote return
- Vote button implementation is moved to wpv_voting_get_display_vote
- Fixed vote button is keep showing at the top of the post when user uses [wpvoting] shortcode
- Fixed minor CSS rule
- Fixed minor spacing issue in javascript