close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Ratings system

Thread began 10/25/2013 3:25 am by iainmacdonald331081 | Last modified 10/28/2013 8:22 am by iainmacdonald331081 | 2517 views | 6 replies

iainmacdonald331081

I've been having a rummage on the net to see what I could find, and actually found what looks like a great script:

http://megarush.net/5-star-rating-system-with-php-mysql-jquery-and-aja x/

For something that could have been quite daunting, I've managed to replicate the basic demo, and also apply it to my existing data.

I know ideally each lodge page would be a details page, but because the site owners wanted the lodge name to be in the URL, each lodge actually has its own page. So all I needed to do was replace the array values with the LodgeID, and it seems to be working pretty well. It doesn't seem to write the average score to a database field, but that might be a good little exercise to see if I can figure it out. Although for our purposes, as long as the average rating is appearing on the site, we won't need it in the data. Although we will need the total score.

Similarly with the users, I don't think we'll need site visitors to be logged in to vote, but at a later stage we will need a user group, Judges, to log in and vote.

The long term plan as I understand it is to be able to come up with a Total Score for each Lodge, where site visitors can give a score out of 3, and judges give a score out of 15 (their votes deemed to carry more weight than passing visitors).

So in theory I just need to have a second version of the basic voting behind a login, that mutiplies the score by 3 for votes made by the Judges.

I don't think we need to record who is voting, which should hopefully keep it more straightforward.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...