Jump to content
  • 0

star rating system function


sugarjones
 Share

Question

Any idea when Caspio Bridge will allow users the capability to collect ratings from site visitors using a star system similar to amazon.com and easily allow us to post average ratings based on all ratings for a particular item?

I have a review site but currently am only able to show numbers for individual reviews. Also the visual of a star system would be nicer than just numbers in a form.

Thanks

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Yes, there are ways to do this.

I assume you already have the averages figured out and that you round the average ratings to whole numbers. Create a table with two fields: \"rating\" and \"icon\". This will be your RatingMap table. The \"rating\" field will have all possible whole number ratings and the icon field should contain a properly formed html img tag of the corresponding icon for that rating. Something like this:

RatingMap table
rating       icon
===============================
1              <img src=\"http://mysite.com/1.gif\">
2              <img src=\"http://mysite.com/2.gif\">
etc.

For displaying your reviews create a view between this table and your review table based on the rating field. Instead of displaying the rating number now you can display the icon field and have it render as HTML.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...