|« Previous plugin||Next plugin »|
This plugin is no longer necessary for most users because similar functionality has been integrated into b2evolution's core. For more information, please see: Voting options
- Download the plugin, and unzip it.
- Copy the starrating_plugin folder into the "plugins" folder of your b2evolution installation.
- Login to the administrative interface for your blog.
- Install the Star Rating plugin from the Global settings->Plugins install->Install new->Available plugins table using the [Install] link.
- You should add the following code to the index.main.php file for any skin where you want the star ratings to be used.
Put this one in the post loop inside the bSmallPrint div or just below the post title:
(Optional) If you want to show the top rated posts add the Star rating widget from Blog settings > Widgets. By default, it shows links to the top five posts, but you can change the 'limit' param to get different results. You can also edit the minvote setting so that a certain number of votes are required before an item can make it into the top rated list.
Once you have the plugin installed and the settings the way you want them, then go the write tab and create a post. If you want the post to have the rating system, then make sure that there's a check in the box next to 'Star Rating' in the 'Text renderers' section in the lower right.
Choose the number of stars possible. The default is five. It's best to only change this value right after installing the plugin. If there are already votes cast using another max value, then your results will be skewed if you change this value. Uninstall the plugin, then reinstall it to clear any old votes, then change the value.
By default, each vote is checked against a list of IP addresses to make sure it's not a duplicate. You can disable the check using this setting.
This plugin doesn't really use a renderer, but it uses the renderer checkbox setting to know which posts should have the star rating available. Edit this plugin setting to set whether the checkbox is checked by default. For example, if you only want a few of your posts to have the rating system, then set 'Apply rendering' to 'opt-in'. Then, posts won't have the stars unless you check the box when you're writing a post. If you want all or almost all of the posts to have the rating system, then set the 'Apply rendering' in the plugin settings to 'opt-out'. Then, all posts will have the stars unless you uncheck the box in the write tab.
Change star image
It's not hard to change the star image. First, download the default image and look at it. It's three stars stacked on top of each other. The top star is the empty version, the middle star is the hover version, and the bottom star is the normal one that shows the average rating. Create your new image to match this template, then upload it to the /starrating_plugin/ folder. Then, edit the stars.css file to match your new file name. If your image has a width that's different than 20px, then you'll need to edit the two lines toward the top of stars.css that set the width. Then edit _starrating.plugin.php and find "var $width = 20;" and edit the value
This plugin uses the prototype + scriptaculous library, but b2evolution is supposed to use jquery. This could cause an incompatibility. The next major version of this plugin will be built with jquery.
Great plugin, I was looking it for a long time.
By the way after install, the vote system works fine but not the AJAX effects, like info or vote confirmation. Any tip
You can check it on http://www.lacuchara.es
Thanks in advance.
Forget my last comment, it was my fault, so just to say GREAT PLUGIN!
On IE before cast a vote the info icon appears broken and after vote it looks good.
Great plugin !
I still have problems with IE but
I had to miss something.
It would be a better plugin if it worked on blog 1 (bloag all), what do you think?
the plugin seems to work great except the “top posts” sidebar dosent seem to work.
Can someone suggest how to fix this please?
I’d like to make the stars smaller and to center them. Is this possible?
Would be great if this plugin would change a user who has already rated’s rating, instead of just showing a “you have already rated” dialogue.
So etwas hab ich tagelang gesucht. Das Blog und die Plugins sind einfach ein traum. Danke Jungs fÃƒÂ¼r die tolle arbeit.
Man muss zum GlÃƒÂ¼ck das Rad nicht immer neu erfinden.
I use this for check the important impression of my article, very nice.
Great plug-in, I’m already using it. Thanks.
I have one question. Right now, the titles of the top rated posts are “stacking” on top of each other.
Is there a code or setting that will truncate the titles or space the top-rated posts based on title length?
I don’t think this works with 2.0 :(
This is hot! Thank you for the great plugin. Any way to move the popup to the left, it comes over the sidebar. Thanks Again.
i got it to work on 2.0 alpha 1, just got to modify the items.main.php at the post section and the widget works fine.
Didnt get it to work on the sidebar yet…
yeah the sidebar totals is what I want. I got it to show in the posts though
i DO need this plugin… when will an update be available for 2.1 las vegas latest ?? anyone can adopt it to 2.1 ??
After voting, shouldn’t the image change to reflect the rating average? It always shows no stars.
I tried to get this going in the 2.3 version, but no luck at all.
I dont know where _main.php located? plase help me to install this plugin.
guys, all those ’stackings’ ‘no image’ etc etc, issues are because of ‘your skin’s ‘li’ properties, and the plugin works even with the latest version (2.4.2) cheers
I had no luck following the instructions where it says “Put this one in the post loop inside the bSmallPrint div or just below the post title:”
Using evoCamp, there is no bSmallPrint. I put it in on line 70, but it doesn’t work, can anyboldy help me?
I want use this in my corporate blog next week.
this is a very cool one
I noticed a lot of votes coming from bots crawling our site. It may be worth adding rel="nofollow” to the anchors rendered for each star link.
d’oh looks like I didn’t fully understand nofollow, disregard previous comment. When I dug in I did see your comment as well, going to see what it takes to implement that.
With evopress you shoud edit posts.main.php and add the line there (it was hard at the beginning).
Very Nice Plugin, i love IT!!!
One of my favourite plugin.
Very Nice Plugin, i love IT!!!
Thank You, i like the plug in,
but we must hope that those who vote our blog will give us full stars, otherwise it would be counterproductive but it can be an incentive to write good post :)
in a further blog I have used your starrating-plugin. Now I wanted to download it again, clicked on the name of your plugin and came to a website with explanations about installing and other helpful instructions. The download-link there brought me to www.sourceforge, but the title of the zip-file there was “capture 1.8.."??? Is this really the correct file? Sorry for my bad Englisch (am a German girl, Bavaria)…
Many thanks for your answer and help!
Thank you! It’s a very good post! I like to see new article like this!