http://www.web2py.com/plugins/default/rating

I took this rating plug-in and modified a bit. 
This plug-in uses jQuery extension and I'm aware that there is a better 
rating jQuery plug-in (http://orkans-tmp.22web.net/star_rating/).
I've plan to port it to that js library. 

But for less complex things, this plugin will suffice. dependency is so 
small. (other one need jQuery-ui too & I prefer to make my client to 
download as less content as needed.)

I fixed some errors.

My version now support some things that's not there in original version

0) It uses same syntax as original plug-in (so home back again)
1) support to include more than one rating widget per page.
2) if the parent table for which we are using rating has a field called 
'rate' of type dobule, then average rating will be added to that field too.
    It'll be handy, if we have to run complex queries on that table 
involving rating. So, this make less db calls.
    Also, this degrades gracefully, if there's no 'rating' field in the 
table without making any noise. 
3) Now, added support to display same rating for same record twice in a 
page.
4) Split stars is supported now. 

To download the plug-in, please visit 
https://bitbucket.org/kra3/rating-plugin-for-web2py/downloads

Looking forward to here your comments and possible features that can be 
added. 
(I know, it doesn't support callback functions now, may be I release another 
one that uses star rating jq plugin for that to make this one simple and 
lean) 

Reply via email to