By Ronny Weidner on Monday, 30 July 2018
Posted in General Issues
Likes 0
Views 821
Votes 0
Hi, I'm trying to use Komento as a testimonials page, only allowing guests to comment and using the average rating to 'show off'
For some reason the overall rating shown on the comments page only counts the last comment.
I think its the same bug like this guy had: https://stackideas.com/forums/don-t-know-is-it-s-a-bug-but
Support said this will be fixed in next release but unfortunatly it doesnt seem like it is.

First I thought Komento doesn't count ratings if they're from the same IP Adress, so I commented with my smartphone but that didn't work.
I think I fixed it by editing the comments.php model file, but I dont think this will last long because it might get overwritten by updates, right?
I commented out parts of the sql query in the comments model php -> Komento seems to give every comment a user id in the database in 'created_by' but since its all guests everyone has ID 0 so it only shows the last rating (created date). I checked this by changing one of the comments created_by value to a different number.
The page I'm testing this right now: http://neu.küchenprofis.de/erfahrungsberichte
Hi there,

Seems like there are issues if those comments made using guest users currently. Can you try to upload attached files at this path .../administrator/components/com_komento/models/comments.php and see how it goes.

Logged this issues and will included them on our next release version. Thanks for your understanding.
·
Tuesday, 31 July 2018 13:19
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the reply, I see that you changed a small bit in the sql query, and it worked. Thanks
·
Tuesday, 31 July 2018 14:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

You are most welcome. Glad to hear that your issue has been resolved now.

Just for your information, I have locked and marked this thread as resolved to avoid confusions in the future. Please start a new thread if you have any other issue in the future so it will be easier for us to manage your inquiries.

Thanks for understanding
·
Tuesday, 31 July 2018 15:37
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post