Skip to main content

Minor bug in Comments

More
14 years 3 months ago - 14 years 3 months ago #54412 by esotechie
There are two minor bugs in relation to the functionality of the comments in the 'Vote' module.

1) When you have posted a comment, the system allows you to vote on your own comment increasing your "found useful" figure. You should only be able to vote on comments by other users.

2) If you post another comment, the system registers another vote. This means I can comment 10 times and change the vote for a product significantly.
Last edit: 14 years 3 months ago by esotechie. Reason: Added more info

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #54420 by Xavier
Replied by Xavier on topic Re: Minor bug in Comments
Hi,

It has been corrected on our end.

To fix it, you can edit the file: vote / listing.php in Hikashop > Display > Views


And replace the line:
Code:
if($row->hide == 0 && $elt[$i]->already_vote == 0){

By:
Code:
if($row->hide == 0 && $elt[$i]->already_vote == 0 && $elt[$i]->vote_user_id != $hikashop_vote_user_id && $elt[$i]->vote_user_id != hikashop_getIP()){
The following user(s) said Thank You: esotechie

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #54425 by esotechie
Replied by esotechie on topic Re: Minor bug in Comments
Thank you for your (very quick) response Xavier.

That certainly did the trick for the first point.

But the second point is still not fixed. One person can skew the vote for a product by doing more than one comment.

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #54473 by Xavier
Replied by Xavier on topic Re: Minor bug in Comments
Hi,

For the vote and comments, when a user send a vote, he can't do another vote, he can just update the old vote.

If vote and comments are connected, you can limit the number of comments.
The following user(s) said Thank You: esotechie

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #54475 by esotechie
Replied by esotechie on topic Re: Minor bug in Comments
Not a perfect solution, but workable. Thanks for the assistance Xavier. It is appreciated.

Please Log in or Create an account to join the conversation.

Time to create page: 0.229 seconds
Powered by Kunena Forum