FortMyersDrew Posted October 8, 2007 Share Posted October 8, 2007 I'm looking to see where I can find a 5 star rating system like this one http://www.adriantnt.com/products/rating_system/ I have no idea where to star or what to do. I have my site but I dont know where to start on the rating system. Heres my site www.DrewsMedia.com Quote Link to comment Share on other sites More sharing options...
Barand Posted October 8, 2007 Share Posted October 8, 2007 A simple implementation <?php $rating = 3; $rating2 = 5 - $rating; echo str_repeat('<span style="color: #F00; font-size:20pt">*</span>', $rating), str_repeat('<span style="color: #BAA; font-size:20pt">*</span>', $rating2); ?> Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted October 9, 2007 Share Posted October 9, 2007 What you need something that stores the number of times that has been voted and the total score every time someone votes just add 1 to the vote count and the score to the total score you can calculate the rating as followed $averageScore=$totalScore/$votes; you can use javascript for that hover effect. And for voting make sure it only excepts value's not higher then 5 and lower then 1 with a php check otherwise I'll just drop by and give your crappiest votable object an average score of 256. You also might want to build something which prevents someone from voting more then once Quote Link to comment Share on other sites More sharing options...
FortMyersDrew Posted October 9, 2007 Author Share Posted October 9, 2007 see thats the problem i have NO IDEA where to begin with this. I use dreamweaver so it does most of the work for me but when it comes to finding something I cant find at all on the web thats where I ask the questions so some of this i get the other stuff i dont but right now im clueless Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted October 9, 2007 Share Posted October 9, 2007 you do know some php right? Dreamweaver will get you nowhere if you want to program it only helps producing nice looking pages it doesn't do the programming for you Quote Link to comment Share on other sites More sharing options...
FortMyersDrew Posted October 9, 2007 Author Share Posted October 9, 2007 yes lol i do know some php but not to the all knowing genius level lol i know what to do to get me by but i need help producing this Quote Link to comment Share on other sites More sharing options...
FortMyersDrew Posted October 13, 2007 Author Share Posted October 13, 2007 bump can anyone help me out on this? ??? Quote Link to comment Share on other sites More sharing options...
FortMyersDrew Posted October 14, 2007 Author Share Posted October 14, 2007 BUMPITY BUMP someone help me out? ??? Quote Link to comment Share on other sites More sharing options...
mattal999 Posted October 14, 2007 Share Posted October 14, 2007 try using google : http://www.hscripts.com/scripts/php/starrating.php i found it, 2nd link... EDIT: search term 'free php script 5 star rating system' Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.