Minor bug in Comments

  • Posts: 180
  • Thank you received: 13
11 years 11 months ago #54412

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: 11 years 11 months ago by esotechie. Reason: Added more info

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

  • Posts: 13201
  • Thank you received: 2322
11 years 11 months ago #54420

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:

if($row->hide == 0 && $elt[$i]->already_vote == 0){

By:
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.

  • Posts: 180
  • Thank you received: 13
11 years 11 months ago #54425

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #54473

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.

  • Posts: 180
  • Thank you received: 13
11 years 10 months ago #54475

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.073 seconds
Powered by Kunena Forum