Forum Moderators: phranque

Message Too Old, No Replies

Alexa User Reviews of websites

How is it done?

         

vibgyor79

12:25 pm on Jan 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Alexa allows users to review websites and rate it on a scale of 1 to 5 stars. Once the user enters the review and clicks SUBMIT, the text is uploaded instantaneously. Even the ratings are calculated and it displays the overall rating (in the form of stars).

Questions:

1) So how is this done? Using php etc?
2) What are the requirements of the web host? MySQL blah blah?
3) Is there a software that I can buy that will do the job? Something like a web blogger?

If a new website gets a rating of 5 stars and then 1 star, the overall rating should immediately display 2 and half stars. Lots of programming required here?

As you can see from the way the questions are framed, I am no programming expert. I will probably get a friend to do it. What do you think my friend will charge me if I manage to explain what I want?

Brett_Tabke

3:43 pm on Jan 22, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I think what you are after is a voting script. Head to one of the big script archives and start looking. There are probably 200 scripts out there that do this sort of thing.

hakre

3:49 pm on Jan 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi vibgyor79,

you can use any programming language for this and you need to save some data to disk. so you won't need a mysql blabla.

if the page is voted 2 times:
1.) 5
2.) 1
then the overall value would be 6 and the votecount 2 so you can just calculate it: 6 / 2 = 3 (not 2.5 stars as you stated)

you simply have to track the overall value of all votes and the number of votes (in a file for example).

as brett said, you there are 1000s of such scripts in different languages and you'll get one for free for shure.

vibgyor79

4:02 pm on Jan 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Okay thanks. Will start looking - no point in reinventing the wheel.

6 / 2 = 3 (not 2.5 stars as you stated)

<dunce> I hope my math teacher doesn't see my post :) </dunce>

hakre

8:54 pm on Jan 22, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



lol ;). i had to think about it afterwards, because there is no possibility to vote 0 on the page. so your 2.5 was quite logical, the first vote is full and the second is nothing. we're both trapped in.