Ratings added to CFLib

This post is more than 2 years old.

This morning I pushed up ratings to CFLib. CFLib used to have ratings some time ago, so this is actually an old feature coming back. I used the same jQuery plugin that SlideSix uses (http://php.scripts.psu.edu/rja171/widgets/rating.php). To be honest, I really don't like this plugin. Turning off the cancel was a pain in the rear. I would have used the Spry rating widget instead, but I really wanted to give jQuery ratings a try. At the end of the day though it works, so I'll leave it be. One nice thing about it though - I can pass it a rating value of X.2 and it rounds it down to X starts. Pass it X.5 and it correctly shows a half star.

Later this week I'll be adding a right hand list of the top rated UDFs.

Oh, and in case folks are curious, I did not add any protection from multiple voting. I originally used code that stored your rankings in a session variable. I turned that off during testing and didn't bother re-enabling it. I figure it someone is so bored they want to cheat their UDF up, more power to em. ;)

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by salomoko posted on 12/31/2008 at 8:10 AM

quick concern.

is cflib.org written in any framework?

Comment 2 by Raymond Camden posted on 12/31/2008 at 8:19 AM

Model-Glue and Transfer and ColdSpring.

Comment 3 by salomoko posted on 12/31/2008 at 8:23 AM

right on! obviously with some coldcourse action right...?

good job! I like it!


Comment 4 by Raymond Camden posted on 12/31/2008 at 8:24 AM

I have to admit - I don't know what coldcourse is. Obviously I'm not using it. ;)

Comment 5 by salomoko posted on 12/31/2008 at 8:34 AM

hah! sorry I may have it wrong myself, but never the less, I was getting at how you handle your SES urls?


Comment 6 by Raymond Camden posted on 12/31/2008 at 8:36 AM

On my local dev environment, I use Apache, and SES URLs are built in. Production is IIS and I use IIRF, a free URL rewriter plugin. In general I don't recommend using a different dev web server than production, but it's just my personal sites.

Comment 7 by salomoko posted on 12/31/2008 at 8:40 AM

cool thanks.


c'mon man, you don't know every single project by heart on riaforge? ;-)

Comment 8 by existdissolve posted on 12/31/2008 at 9:31 AM

I've been using Spry's rating widget for a while now, and I've been quite pleased with it. As with all things Spry, it is ridiculously easy to implement, and works quite nicely with the server-side interactions as well.

Comment 9 by Erik Vold posted on 12/31/2008 at 11:47 AM

Sweet thanks!