[Skip to main content](#vessel-content)

#   Minor bug in Comments

##

- **[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")**
- [![esotechie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7143.jpg)](/forum/user/7143-esotechie "View esotechie's Profile") Topic Author
- [ Offline](/forum/user/7143-esotechie)

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

14 years 4 months ago -  14 years 4 months ago [\#54412](#54412) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  *[Minor bug in Comments](/forum/3-bug-report/54412-minor-bug-in-comments#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 &quot;found useful&quot; 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.")* was created by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")*

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 4 months ago by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile"). Reason: Added more info

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDQxMi1taW5vci1idWctaW4tY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 4 months ago [\#54420](#54420) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Minor bug in Comments](/forum/3-bug-report/54412-minor-bug-in-comments#54420 "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 &quot;found useful&quot; 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.")*

Hi,

It has been corrected on our end.

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

And replace the line: Code:

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

By: Code:

if($row-&gt;hide == 0 &amp;&amp; $elt[$i]-&gt;already_vote == 0 &amp;&amp; $elt[$i]-&gt;vote_user_id != $hikashop_vote_user_id &amp;&amp; $elt[$i]-&gt;vote_user_id != hikashop_getIP()){

The following user(s) said Thank You: [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDQxMi1taW5vci1idWctaW4tY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")**
- [![esotechie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7143.jpg)](/forum/user/7143-esotechie "View esotechie's Profile") Topic Author
- [ Offline](/forum/user/7143-esotechie)

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

14 years 4 months ago [\#54425](#54425) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  Replied by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")* on topic *[Re: Minor bug in Comments](/forum/3-bug-report/54412-minor-bug-in-comments#54425 "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 &quot;found useful&quot; 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.")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDQxMi1taW5vci1idWctaW4tY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 4 months ago [\#54473](#54473) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Minor bug in Comments](/forum/3-bug-report/54412-minor-bug-in-comments#54473 "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 &quot;found useful&quot; 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.")*

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](/forum/user/7143-esotechie "View esotechie's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDQxMi1taW5vci1idWctaW4tY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")**
- [![esotechie's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar7143.jpg)](/forum/user/7143-esotechie "View esotechie's Profile") Topic Author
- [ Offline](/forum/user/7143-esotechie)

Less More

- Posts: 180
- Thank you received: 13
-
-
-
- [](http://www.halare.co.uk/)
-

14 years 4 months ago [\#54475](#54475) by [esotechie](/forum/user/7143-esotechie "View esotechie's Profile")  Replied by *[esotechie](/forum/user/7143-esotechie "View esotechie's Profile")* on topic *[Re: Minor bug in Comments](/forum/3-bug-report/54412-minor-bug-in-comments#54475 "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 &quot;found useful&quot; 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.")*

Not a perfect solution, but workable. Thanks for the assistance Xavier. It is appreciated.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81NDQxMi1taW5vci1idWctaW4tY29tbWVudHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.050 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
