We'll create fresh WordPress site with Vote It Up installed. You have 20 minutes to test the plugin after that site we'll be deleted.
This plugin adds voting functionality for posts. This function is similar to Reddit or Digg, in that visitors can vote for and against.
Guests can also vote for posts. This functionality can be disabled as well.
A widget can be displayed showing the most voted posts on your blog, giving further exposure to your popular posts.
A brief summary of what the plugin has to offer:
A working WordPress install
WordPress theme must contain a call to the get_header()
function
WordPress theme must contain the WordPress loop
Most WordPress installs have these, so you need not worry about these.
In addition, one must have JavaScript enabled in their browsers in order to vote.
WordPress 2.8 or above is recommended for this plugin.
Votingfunctions.php
Within votingfunctions.php
, there are several functions that can shows other information.
GetVotes($post_ID): Returns the number of votes associated with the post.
UserVoted($post_ID, $user_ID): Returns TRUE if the user already voted for the post, FALSE if the user hasn't voted for the post
GetPostVotes($post_ID): Returns an array of user IDs that have voted for the post.
GetPostSinks($post_ID): Returns an array of user IDs that have voted against the post.
SortVotes(): Returns an array of post IDs and votes. The array is sorted with the post having the most votes at the top of the array.