Forum Moderators: coopster & phranque

Message Too Old, No Replies

How to get Top 10 from Vote script

How to extract top 10

         

stickytape

11:30 pm on Jul 19, 2001 (gmt 0)



I need a script which lets people rate items out of 10, displays their average rating and can create a list of the top 10 per category. PHP please, any ideas??

Cheers guys.... Rich

grnidone

10:29 pm on Jul 20, 2001 (gmt 0)



Sticky,

Somehow, this post was overlooked. I am kicking it to the top and calling for help. I can't answer this question.

BTW, isn't 'stickytape' the Brit term for 'duct tape'?

-G

Duct tape is like the 'force': it has a light side and a dark side and it holds the universe together...

stickytape

2:44 am on Jul 21, 2001 (gmt 0)



BTW, isn't 'stickytape' the Brit term for 'duct tape'? - well you're kind of right, stickytape is what we Brits call duct tape. The reason why I am nicknamed stickytape, ic because my surname is "Tape" - hence, stickytape!

Anyways, thanks grnidone for kicking this to the top. I actually thought that this was quite an easy question, but no one seems to have an answer. If anyone can give me some idea of how to do it I would appreciate it, especially, if they can give me a link on a forum or FAQ for this!

Cheers guys,

Rich (aka Sticky)

themoff

1:18 pm on Jul 21, 2001 (gmt 0)

10+ Year Member



Duct tape is like the 'force': it has a light side and a dark side and it holds the universe together...

Sounds like Gaffer (sp?) tape to me!

theperlyking

2:58 pm on Jul 21, 2001 (gmt 0)

10+ Year Member



I would say that stickytape is like sellotape, not duct tape. Duct tape is more like Duck Tape (you can buy it in B&Q :) )

rogerd

1:13 pm on Jul 23, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



If we really want to get technical about this for our Brit friends, "duct tape" is heavy, fabric reinforced tape, often silver or gray in color, that was originally used to seal joints in sheet metal ductwork. Since the tape had to be strong and durable for that application, it ended up being a universal fix-it supply suitable for repairing almost anything.

Oddly enough, I first encountered the duct tape in motorsports, where it was referred to as "racing tape". I guess if you are taping your rally car back together it sounds a bit more elegant to use racing tape instead of something used for sealing stovepipe ductwork.

rogerd

1:18 pm on Jul 23, 2001 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I noticed that nobody had actually answered sticky's question. I haven't used any of them, but I've seen voting scripts with the functionality you describe at hotscipts.com and cgi-resources.com. I think photo-voting scripts usually cost money, but if you are just looking for plain voting there are some freeware scripts. I'd also be interested to hear about any scripts that someone can vouch for from a quality and function standpoint.

stickytape

2:10 pm on Jul 24, 2001 (gmt 0)



I still havent managed to find anything at hotscripts or cgi-resources :(

It's clear to me that this is quite a tricky one then. So, the PHP restriction is removed. Can anyone do this in any (sensible) language?

I'll try and make my self clear just so we all are on the correct lines here:

I need a script to let users rate mobile phone ringtones out of 10. This script then displays the average score for each script and the number of times it has been voted for. Finally, I would like the script (or another one, if needs be) to display a "top 10" listing based on which ring-tone has the highest average rating.

I hope thats clear enough now. So guys, your mission, should you choose to accept it is: to write me the script(s) to do the job. This message will (not) self destruct and will keep being pushed to the top until someone supplies me with some sort of answer :) :)

Rich

sugarkane

2:21 pm on Jul 24, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Rich,

You're asking for quite a lot there. While there are plenty of professionals here who would be able to write such a script, it's not a trivial task.

Asking for help with something you've already started working on will probably get you more answers :)

This section [hotscripts.com] of hotscripts might be a good starting point you should be able to find something you can modify to your needs.

stickytape

2:13 pm on Jul 27, 2001 (gmt 0)



THats a fair point sugar, and I do apologise for asking for "the moon on a stick." ;-)

Well, using some scripts I found on hotscripts at the link sugar gave above, I've written the actual voting script I need. However, Im still a bit stumped. Im still unsure how to gather all the averages together in one file. For example, at the moment people will download a ringtone and then I ask them to rate it out of 10. This then is displayed graphically. However, what I need it to display the average of the votes more than the number of votes for a particular rating. Any ideas there??

Secondly, I then need to write these averages into a file and extract the top 10 averages...any ideas there? Please? :)

Cheers!!