From a few brief searches on Google in the past I found that nobody had done a decent “Rate This Post” plugin for WordPress. This evening I went searching again, and came across the Post Star Rating plugin by O Doutor! It’s in Spanish which may cause some problems for English speakers but I figured it out so it can’t be *that* hard. ![]()
After a bit of tweaking, I have it running on In Photos and it appears to work ok! That is, when I clicked the stars it worked, I haven’t stress tested it yet!
Rate My Post! was posted on February 5, 2006 at 11:16 pm in WordPress and tagged as irishblogs, post-star-rating, rate-my-post, WordPress. It was last modified on February 5, 2006 at 11:16 pm. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response or pingback from your site.

17 Comments
Michele (27 comments.) on February 5, 2006 at 11:34 pm.
Donncha – looks pretty cool and the instructions are nice and clear. I’ll probably post a full translation on my blog if I get the energy tonight
O Doutor on February 5, 2006 at 11:51 pm.
Hi.
Thank you very much for trying the Post Star Rating plugin.
This is my first WordPress plugin and is still in alfa revision.
I will try to make some documentation in english. I am from Spain and my english isn’t very good.
I hope to release a new version with english documentation, and some new features like localization and skin management in few weeks.
Dan (2 comments.) on February 6, 2006 at 3:18 pm.
Any indication on what to do after activating?
A hefty helping of Altavista only helps me determine that ‘my pay is fish with one to them’.
It’s my understanding that the plugin won’t generate tables and that I’ll need to download something else. Is there any explanation as to what you did to make it work?
Many thanks.
Donncha (1707 comments.) on February 6, 2006 at 3:22 pm.
There’s two tags you need to add to your templates. I modified my css so it would display a little nicer, and changed the layout of the stars a little.
PSR_show_voting_stars()goes where you want the clickable voting stars to appear.PSR_show_stars()goes where you want the current rating to be.You probably want to edit single.php of your theme, although I added the second tag above to my index.php so it would display on the front page too!
Dan (2 comments.) on February 6, 2006 at 4:37 pm.
I think the problem had a LOT to do with the fact that the directory was saved as ‘Post-Star-Rating’ and the images were called from ‘PostStarRating’ in the PHP file. That’s been fixed and now it displays properly!
Thanks.
I’m having a small problem with line 79 however:
setcookie(‘wp_psr’, $this->_user, time()+60*60*24*365);
If you’d care to see its effect on my blog, you’ll see what I mean!
Matt (1 comments.) on February 6, 2006 at 5:57 pm.
I’m working with it now and am having a few problems…primarily, when you submit a rating, it automatically does away with your permalink structure and returns you to ?p=xxx&psr_stars=x … this becomes a problem because the next time anyone enters the post via its “correct” permalink they are free to vote again…haven’t looked at it too closely yet, but would like to see if I can fix that.
O Doutor on February 7, 2006 at 12:38 am.
I relase a new version of the plugin. Go to Abuse Magazine to see the changes and download the new version.
Please, report bugs, suggestions and comments to Abuse Magazine or the WordPress Plugin Repository
Thanks.
Jauhari (1 comments.) on February 7, 2006 at 7:02 am.
Thanks for u information, I want try ti use it
Dan Atkinson (1 comments.) on February 7, 2006 at 3:26 pm.
Well the latest version does go to fix some of the foibles of the first version (and being early versions, there are bound to be some issues).
One particular issue I found, was the failure to validate my blog with the plugin activated. This is due to a small mistake in the psr.class.php file. Basically, the class echoes some Javascript but doesn’t use the all-important comment tags before and after the code (
). This means that in non-JS compliant browsers and parsers such as the W3C one, the webpage will not display correctly and will most definately not validate as it will try to validate the for loop as standard HTML!The solution to this most trivial of problems is to simply apply the HTML comment tags as shown:
Ho hum! We’ll get there in the end! This is turning out to be an excellent plugin which I’d like to see as standard in future versions of WordPress.
parrott (2 comments.) on February 8, 2006 at 10:41 am.
So surely someone is try to develop one that reuire less fiddling? Inphotos looks good but it seems not everyone is having the same success. It seems a little confusing for voters. Is there a way to reduce the confusion to offer a voting link from the front item?
parrott (2 comments.) on February 8, 2006 at 10:43 am.
Actually – with a little more playing I take that back, this will probably become the standard once the bugs are ironed out. Great work!
Owen (1 comments.) on February 10, 2006 at 7:50 pm.
Man, no love for Votio.
jonathan (2 comments.) on March 31, 2006 at 1:37 pm.
well i have been looking for this but can’t get it to display the stars, anyone want to give me a clue, do I need to change something in psr.class.php
jonathan (2 comments.) on March 31, 2006 at 1:44 pm.
all I get is asterisks!
Mike (1 comments.) on May 24, 2006 at 6:18 pm.
There probably isn’t a way to put this into a blogger template is there?
Blake (1 comments.) on June 5, 2006 at 4:59 am.
help:) got the plugin to work but dont know what file to edit so I can display “VOTE” instead of “VOTOS!”
Thanks!
vaso (1 comments.) on May 26, 2010 at 12:10 pm.
It is sad, but somehow, it is not working with IE8 and IE7.
Other browsers are ok.