Wordpress: Vote It Up Plugin
| Author: | Nicholas Kwan |
| Version: | 1.0.2 |
| Author Homepage: | http://www.tevine.com/ |
| Plugin home: | Visit |
| License: | N/A |
This plugin adds voting functionality for posts. This function is similar to Reddit or Digg, in that visitors can vote for and against. Votes for the post will fill up the bar (in blue), while votes against the post will empty the bar.
By default, it takes 40 votes to fill the bar completely.
Guests can also vote for posts. This functionality can be disabled as well. Members voting for posts will have their posts recorded, and the list of votes can be retrieved using the GetUserVotes() function.


January 30th, 2008 at 1:40 pm Quote
Hello, sorry for my english ( i m french) but can you explain how do you get a different aspect?I mean, i would like to have the images that show the number of vote and that show something to vote for or against.
jonathan’s last blog post..Pour ou contre : la castration chimique des pédophiles?
(Report comment)
January 30th, 2008 at 1:58 pm Quote
Hello there jonathan. There’s nothing wrong with your english so far :)
1.
Bar
< ?php DisplayVotes(get_the_ID()); ?>
Ticker
< ?php echp DisplayVotes(get_the_ID(), "ticker"); ?>
2. You can customize the options by editing options in the Wordpress Administration area (Options > Vote It Up).
3. Within `votingfunctions.php`, there are several functions that can show 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.
(Report comment)
January 30th, 2008 at 2:33 pm Quote
yeah i think the answer is in the third point, but i dont konw what i have to put the code of the functions, i saw the differents fonction in the file : votingfunctions.php but dunno how i can use them. Maybe i have to do something in the loop but i m not sure and dont know how..
I use the “Bar” tool, my site is : http://www.pour-ou-contre.com which is the equivalent of http://www.for-or-against.com in english, so it would be good if i could have the same view as the second one on your picture .( dunno if you understood me lol )
jonathan’s last blog post..Pour ou contre : la castration chimique des pédophiles?
(Report comment)
January 30th, 2008 at 2:44 pm Quote
First of all use the Vote-It-Up option page ( Options > Vote It Up )
- Select No for Use text instead of images for vote links
Instead of this code:
< ?php DisplayVotes(get_the_ID()); ?>
put
< ?php echp DisplayVotes(get_the_ID(), "ticker"); ?>
in The_Loop.
And it should work just fine!
(Report comment)
January 31st, 2008 at 2:05 am Quote
Thx you very much, i will try later beacause i m at my workexperience, so i can’t upload some files :)
thx very much
jonathan’s last blog post..Pour ou contre : la castration chimique des pédophiles?
(Report comment)
January 31st, 2008 at 2:10 am Quote
No problem!
Have fun ;)
(Report comment)
February 10th, 2008 at 5:01 am Quote
hello,
Maybe you can help me with this problem. I was wondering if the vote it up plugin was supposed to move articles with the most votes up higher on the frontpage. Am I mistaken or is this not what it was designed to do.
If it wasnt, is there a way to make wordpress arrange articles in such a way using this plugin? Thanks.
theManOfFewWords’s last blog post..Raising a Child with a Love for Poetry
(Report comment)
February 11th, 2008 at 12:22 am Quote
Hello there.
I will look in the database for the table this plugin creates and will try to come up with a function that could make what you want.
In the same time, you could use another plugin called WP-PostRatings from Lesterchan
and use this function to call the top X highest rated posts:
< ?php if (function_exists('get_highest_rated')): ?>
< ?php get_highest_rated(); ?>
< ?php endif; ?>
Default: get_highest_rated(’both’, 10)
The value ‘both’ will display both the highest rated posts and pages.
If you want to display the highest rated posts only, replace ‘both’ with ‘post’.
If you want to display the highest rated pages only, replace ‘both’ with ‘page’.
The value 10 will display only the top 10 highest rated posts/pages.
You can also display the highest X rated posts per categories.
(Report comment)
February 11th, 2008 at 11:43 am Quote
Hello,
THANKS ALOT!!! that’s great my only prob is that I am a php novice only recently picked up a book and been plowing through it … im on functions right now lol.
I am guessing that the function you listed needs to be put in the wordpress loop. Can you point me to where i should paste it? Thanks.
theManOfFewWords’s last blog post..Raising a Child with a Love for Poetry
(Report comment)
February 12th, 2008 at 3:25 am Quote
To display in the sidebar, using widgets:
Ratings Stats (With Widgets)
1. Activate WP-PostRatings Widget Plugin
2. Go to ‘WP-Admin -> Presentation -> Widgets’
3. To Display Highest Rated Post
4. Drag the Highest Rated Widget to your sidebar
5. You can configure the Highest Rated Widget by clicking on the configure icon
6. To Display Most Rated Post
7. Drag the Most Rated Widget to your sidebar
8. You can configure the Most Rated Widget by clicking on the configure icon
9. Click ‘Save changes’
To display in the sidebar if your theme does not support widgets, just copy/paste the code in the comment above in sidebar.php of your theme folder.
To display the highest rated posts on the front page, edit index.php and replace everything from
< ?php if (have_posts()) : ?>
to
< ?php endif; ?>
and replace with the code written in the comment above.
Note: You will now have on the main page just the titles with links to the highest rated posts.
Hope you understand what you have to do.
(Report comment)
February 24th, 2008 at 5:33 pm Quote
Hello,
i like your plugin, and i was looking for a voting system that can show the number of votes against the post and the number of votes with it, something like dzone.com.
Does your plugin do this?
Thanks,
Noura
(Report comment)
March 27th, 2008 at 2:45 pm Quote
hi!
I was wondering if your plugin automatically makes all posts votable or if you can allow the voting function only on specific/specified posts. Thanks so much for the help!
Best,
Jerri
Jerri Chou’s last blog post..Not all Vling is Hype
(Report comment)