Using rating script with 7 stars

Place for comments, problems, questions, or any issue related to the JavaScript / PHP scripts from this site.
kdg
Posts: 1

Using rating script with 7 stars

I'm using the script in subject I wrote, from the page:
https://coursesweb.net/php-mysql/rating- ... jax-php_s2

I'ts only possible to rate 4 stars? What I made wrong?
gunzenhauser.net/momplin/index.php

Thank you for help.

Admin Posts: 805
Hello,
You use the version for 7 stars (it can be used with 5, 7 or 10 Stars).
I noticed in the page you posted that only the first 6 stars can be clicked.
Try make this changes in ratings.css.
- for "srtgs", set the width to 160px:

Code: Select all

.srtgs {
  position: relative;
  width: 160px;
  margin: 0;
/*...*/
}
- for ".stars", change the respectively code with this:

Code: Select all

.srtgs .stars, .srtgs .d_rtg, .srtgs .totalrate {
  width: 157px;
}
- Also, you can make other changes in ratings.css to adapt the style of the script to your pages.