Web Tips
Sharing our knowledge of CFML & jQuery and many other web development tips.
Sharing our knowledge of CFML & jQuery and many other web development tips.
This plugin is no longer being developed.
This is our first wordpress plugin and although we did not write this from scratch (we ported over a previous plugin that only worked in FireFox), we did improve upon a previous product and made it our own.
The plugin requires jQuery and if it is not included, it should load it for you. The most recent version is 0.4.
Download contestant-rating ver. 0.4[25 KB zip]
The original upload had the wrong /js/ files in it, so have updated the download here.
[ADMIN NOTE: THIS DOES WORK in wordpress 3.0 beta but there is a bug which is addressed in version 0.4]
Thanks but it doesn’t work with wordpress 3.0 beta.
When I click on the stars to cast my vote the counter stays the same. Also, it looks very strange: http://i39.tinypic.com/1sifps.png
Are you going to update it? I really like this plugin.
I’ll be happy to provide more infos.
The plugin is not working on Version 2.9.2 too… Too bad.
This plugin is not works
I had Post Star Rating, i try this to fix IE bug, but this is worth than the PSR plugin:
The CS Rating appear only Chrome, not in IE, FF, Opera, Safari.
CR_bests_of_month() and others are mess up with overlayed divs, etc…
WordPress 2.9.2, as Clyde sad, it is too bad.
Fix these errors please.
Thank you for the comment.
I am unable to recreate any issue in IE. What version of IE are you using? What doctype are you using?
This plugin is not works
I had Post Star Rating, i try this to fix IE bug, but this is worth than the PSR plugin:
The CS Rating appear only Chrome, not in IE, FF, Opera, Safari.
CR_bests_of_month() and others are mess up with overlayed divs, etc…
WordPress 2.9.2, as Clyde sad, it is too bad.
Fix these errors please.
The plugin is not working on Version 2.9.2 too… Too bad.
The same problem.
Has started to work, when in \contestantRating.min.js\ has changed \jQuery.get(\/wordpress/\ to \jQuery.get(\http://www.somepage.etc/wordpress/\.
does it work for wordpress 3?
Yes, it does work in WP 3
I have installed your plugin and have built a page to use it on…but I can’t find where you go in the WP admin system to load/install/use the Contest Rating plugin on a blog post or a page. What am I missing? Where do I go? I have WP 3.0.1 installed.
Sorry for the late reply.
Once you have installed and activated the plug-in, you need to place the following code in your theme template where you want it to appear.
< ?php CR_show_voting_stars(); ?>You can get as crazy as you want with it. In my example, I only want it on posts (not in pages) so I have placed the code on the ‘Main Index Template (index.php)’ of my template. The code looks like this:
< ?php the_content('Read More'); ?>< ?php
$posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
$showStars=$tag->name;
if ($showStars == 'contestant-rating') {
CR_show_voting_stars();
//CR_bests_of_month();
CR_bests_of_moment();
}
}
}
?>
I’m actually running into the same problem with WP3.0
The plugin shows the stars, however clicking it does nothing. Votes are not registering. I’m thinking this is a jquery issue. What version of jquery are you running?
We figured out the problem.
In contestantrating.js, there was a reference on line 41 that basically breaks on any WP install in a subfolder. SO…. it works fine with WP installed at base dir, but no subfolders.
Hope that helps for future releases.
YOU ARE AWESOME MAX! Thank you for finding that for me. I will get that corrected shortly.
No problemo. If I had a nickle for every bug in my WordPress Themes I’d have a lot more than the donations people have sent. HA!
Speaking of which, you need a donate button.
Thanks for the plugin. I’m using it in an adidas project. if you email me your shoe size and address I can see about hooking you up.
I’ve chosen your plugin to be able to use it in the loop of template.
Everything works, without once voted, all rates of posts are updated on the page…
Do you have an idea?
I am not exactly sure I understand the issue. I think what you are saying is that you see the ratings and then once you vote it stops working?
The plugin uses a cookie (and currently the cookie is set to some absurd amount of time like one year) to track votes. You can manually change this by editing the cr.class.php file.
If you look at the bottom of that file, there is a line of code
setcookie('wp_cr', $this->_user, time()+60*60*24*365, '/');where time()+60*60*24*365 sets cookie to one year (60 seconds * 60 minutes * 24 hours * 365 days).
If you want to limit the votes to once per evert 5 minutes you could replace that line with something like this
setcookie('wp_cr', $this->_user, time()+60*5, '/');If I am incorrect about this, please try to give me a specific example or url.
I am working on a large change to the plugin at this time which will not require template changes, will allow you to setup cookie expiration times, etc.
Hope that helps.
Where is the rating data held and how can you delete/reset the results ?
Thanks for a great plug-in.
Gary
Thank you Gary. The data is stored in the WordPress database in two tables wp_fsr_post and wp_fsr_user (assuming you’re using the default wp_ prefix to tables). You will need to manually delete or reset the results in the database.
hi, this plugin do not work with no registred (guest) visitors !
Ah, but it does work! Although this plug-in is not being developed anymore (replaced with the Five Star Rating WordPress Plugin), we know this works even if someone is not registered. Try using Five Star Rating Plugin and if you have problems, use the FSR FAQ to resolve your issue.
Hi, is there a way of seeing any stats for these ratings? It would be good to see how many people have rated my articles and which ratings articles have been given.
Thanks!
There are, but only on the front end (nothing in the admin yet).
See the other notes in the Readme.txt file.
[FSR_best_of_month] and [FSR_all_time_best]