By stackideas newbie on Wednesday, 11 May 2016
Posted in Technical Issues
Replies 12
Likes 0
Views 501
Votes 0
Dear Support Team,

It appears that the voting function may not be operating correctly. Could you please help verify the following and guide me on what to do?
1) Own Posts: Able to vote up to 1 or down to -1 but never back to 0. Once the button is pressed, one can only alternate between 1 and -1, which means erroneous votes cannot be corrected.
2) Others' Posts: Changing vote will produce error message as shown in the attached.

Thanks!
Thanks for reported.

1) Own Posts: Able to vote up to 1 or down to -1 but never back to 0. Once the button is pressed, one can only alternate between 1 and -1, which means erroneous votes cannot be corrected.

I already create a ticket in our issue tracker, will fix this in next release version.

2) Others' Posts: Changing vote will produce error message as shown in the attached.

Can you list down the instruction how to replicate this issue? Because I've tried in my locally, it seems work fine.

By the way, this is my current IP address : 175.139.128.120 because I can't able to access your site.
·
Wednesday, 11 May 2016 16:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, Arlex,

You should be able to get in now.

The second error occurs whenever I vote down a post.

Thanks!
·
Wednesday, 11 May 2016 16:24
·
0 Likes
·
0 Votes
·
0 Comments
·
it seems like hitting this fatal error :
Fatal error: Call to undefined method EasyDiscussPost::get() in /xxxx/components/com_easydiscuss/views/votes/view.ajax.php on line 172


Can you try download my attached file and replace into JoomlaFolder/components/com_easydiscuss/views/votes/view.ajax.php and see how it goes?

1) Own Posts: Able to vote up to 1 or down to -1 but never back to 0. Once the button is pressed, one can only alternate between 1 and -1, which means erroneous votes cannot be corrected.

By the way, I already consult with our developer regarding this, actually that was default behaviour for example :

Discussion Z
-------------------
User A - upvote +1
User B - downvote -1 (when this user click downvote, it will show -1)
User C - if this user click downvote again , that total vote is -2 , because the vote will not reset to 0
·
Wednesday, 11 May 2016 17:58
·
0 Likes
·
0 Votes
·
0 Comments
·
Attached fix file.
·
Wednesday, 11 May 2016 17:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, Arlex,

Let me try the fix and give you an update.

The logic doesn't quite make sense though. You have one person voting up and another voting down, it would only be fair that the post has a neutral rating of 0. This should be the same, whether it is the voter correcting a mistake or new voters adding to/subtracting from the existing score. Please let me know what you think.

Thanks!
·
Thursday, 12 May 2016 07:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am sorry for the confusing in my earlier reply,

Currently when the user click upvote or downvote, that vote will not reset to 0.

For example : Discussion Z
--------------------------------------
Situation A
---------------
User A - upvote +1
User B - downvote -1 (when this user click downvote, it will show 0)

Situation B
---------------
User A - when the user click upvote, it will show 1 , then he decide to downvote, so when it click on downvote, it will show -1 because it voted it before.
·
Thursday, 12 May 2016 16:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, Arlex,

But wouldn't it make more sense to allow a voter to correct a mistake by resetting his/her vote? This would be just like clicking on the like button in error and correcting it by unliking the post.

Thanks again!
·
Thursday, 12 May 2016 17:03
·
0 Likes
·
0 Votes
·
0 Comments
·
I will discuss this with the team and see if this is viable. If my memory serves me correctly, the reason it becomes -1 is to avoid user performing the action more than once.
·
Thursday, 12 May 2016 23:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, Mark! Will wait for your update.

I'll also come back to you on the fix.
·
Friday, 13 May 2016 12:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you for understanding
·
Friday, 13 May 2016 12:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi, Muhammad,

The fix is working.

Will wait for your update about reversing one's own vote, which would only be fair.

Thanks!
·
Friday, 13 May 2016 12:42
·
0 Likes
·
0 Votes
·
0 Comments
·
Your are most welcome
We will keep you update on this
·
Friday, 13 May 2016 12:56
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post