Any suggestion on adding image ratings, I want to add a 5star rating system to work with user comments. At the moment its more for fun with a few friends... so I'm asking them to add *5star or the like to comments and then I'm manually editing an image in to represent the rating they gave.
Be a nice feature to add, comment based ratings that provide an average rating under the image name.
If anyone has any help for working it at the moment, would welcome the advice.
Comments
(Excuse the technical details if you want.. this is mostly for me:)
Ideally it would be a field in the image table. You could just store a running total "rating sum" and the number of ratings it comprises, and then divide to display it, and increment each when someone rates.
Unless you want to know who's given what rating or the like, there's no need to store them as individual database records or with the comments.
Needed for a project anyway.
Best.
Did you ever get anything done with the ratings hack? i definitely could use something like that as well.
I managed to integrate a 5 star rating system in my zenphoto site.
It's kind of a hack ....I'll put together a readme and the necesary files and post them here.
http://www.funbox.ro/zenphoto-rating-hack.rar
Please link back to us( http://www.funbox.ro ) if you use this hack.
Thx.
Nice work. I havent installed it yet, but your hack is based off the exact same rating script i was going to use. Thanks!
Here's the demo image for you review:
http://www.thinkdreams.com/zenphoto/demo/IMG_3502.JPG
Be glad to help troubleshoot and get it working. It would be a nice addition for Tris to possibly implement later, and a good hack for all of us to use for now.
Also, htaccess seems to be at the issue now that I've resolved the above. Mod_rewrite is definitely causing a problem. For example:
http://www.thinkdreams.com/zenphoto/demo/db.php?j=3&q=1011&t=209.251.142.9&c=5
is a line used to call the db.php. This will definitely mess with zenphoto's implementation of mod_rewrite. So I'll have to figure out what to change in the htaccess and possibly index.php to route the db.php call correctly.
And ideas Tris? I'm going to try it on my own, I think it will be similar to things I've done previous like the slideshow for the Thinkdreams theme, etc.
Thanks for the nice addition to zenphoto hacks. This should go on the wiki once it's back up and operational.
I'm going to post a tutorial on how to accomplish this, with necessary code snippets as well. Just give me a bit to get it up there somewhere.
Can't wait until a wiki is available, this would be a great place to "plop" all these sorts of things, but I know Tristan is working on it, and I'm not rushing him at all....
Info about the usage in our functions guide.