SWiSHzone.com Support Forums Home

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Star Rating
nevri
post Nov 7 2009, 01:56 AM
Post #1


Advanced Member
***

Group: Members
Posts: 46
Joined: 22-August 06
Member No.: 30692



Pls there is Star Rating System in flash ? thx
Go to the top of the page
 
+Quote Post
Wolf Gross
post Nov 7 2009, 01:12 PM
Post #2


Advanced Member
***

Group: Moderator
Posts: 17192
Joined: --
From: Perth/Australia
Member No.: 25



...what's a "Star Rating System"?

wolf


--------------------

Web Wolf Wonder Web Works

SWiSHsites modified
Go to the top of the page
 
+Quote Post
crslz
post Nov 7 2009, 05:59 PM
Post #3


Advanced Member
***

Group: Members
Posts: 1374
Joined: 9-June 05
From: Belgium, West-vl (dutch language)
Member No.: 20298



hi,

guess you mean this



I have never seen it before in swishmax.. but it's easy to build, the calculation can be done with swishmax but you'll need php to external txt file to store/load the total votes and the rating value..

- you'll need to draw a yellow bar (as background bar) the width = 100% (total width from 5 stars)
- draw 5 stars
- first time, php variable rating = 0
- every star has some code, onpress star 1, rating + 1.. onpress star 2, rating +2.. onpress star 3, rating +3... etc...
- to display the average rating score you can do something like this

a example

visitor 1 press star 5.. rating total = 5
visitor 2 press star 3.. rating total = 8
visitor 3 press star 4.. rating total = 12

rating total = 12 / 3 visitors = average rating score = 4

4 = 80% width for the yellow background bar = 4 stars are yellow, the 5 isn't

grtz

This post has been edited by crslz: Nov 7 2009, 08:06 PM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2009 - 01:02 PM