solved jrRating replacing previous rating

SteveX
SteveX
@ultrajam
11 years ago
2,589 posts
Logged in as 2 different users (normal profile user accounts) in two different browsers, they both can both rate an item successfully.

But whilst the rating value changes, the rating_count does not increase. Subsequent ratings are replacing the previous rating, not adding to it.

If I set the rating delay timer to 1, only the first user can rate the item. It becomes locked for all users once it has been rated once.

Could be because I’m on a localhost setup, but I thought that logged in users ratings relied on the _user_id, not the ip address.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

updated by @ultrajam: 03/27/14 01:00:55PM
brian
@brian
11 years ago
10,149 posts
SteveX:
Logged in as 2 different users (normal profile user accounts) in two different browsers, they both can both rate an item successfully.

But whilst the rating value changes, the rating_count does not increase. Subsequent ratings are replacing the previous rating, not adding to it.

This is correct - it's changing an existing value, not adding a new one.

Quote:
If I set the rating delay timer to 1, only the first user can rate the item. It becomes locked for all users once it has been rated once.

This is because you are rating from the same IP address - the rating module tries to prevent cheating/gaming of the rating system by looking at multiple identifiers and won't let a user rate an item multiple times just cause they log out and back in as another user.

Quote:
Could be because I'm on a localhost setup, but I thought that logged in users ratings relied on the _user_id, not the ip address.

It looks at both.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
SteveX
SteveX
@ultrajam
11 years ago
2,589 posts
Ok thanks Brian, that explains it.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)

Tags