Notifications
Clear all

wpForo 1.x.x [Solved] I think users shouldn't be able to upvote their own answer in the Q&A layout

9 Posts
3 Users
2 Reactions
2,443 Views
Florian
Posts: 92
Topic starter
(@florian)
Estimable Member
Joined: 6 years ago

The Q&A layout is great, it reminds me of StackExchange.Β 
However, I don't think users should be able to upvote their own answer. Don't you think so?

8 Replies
Sofy
Posts: 4878
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

HiΒ @florian

We've already added a feature that doesn't allow the user to mark his/her answer as right. This changes will be included in the next version release. This also will be also taken into consideration forΒ futureΒ releases.Β 

Florian
Posts: 92
Topic starter
(@florian)
Estimable Member
Joined: 6 years ago

Thank you, I am happy to hear that!

Florian
Posts: 92
Topic starter
(@florian)
Estimable Member
Joined: 6 years ago

@sofy

Actually, I misread that. A user should be able to mark his answer as right if it is right. It works the same on StackOverflow. Please make this feature optional because I don't think it should work that way.

Upvoting his own answer, however, is something he shouldn't be able to do.

3 Replies
 fawp
(@fawp)
Joined: 5 years ago

Reputable Member
Posts: 201
Posted by: @florian

@sofy

Actually, I misread that. A user should be able to mark his answer as right if it is right. It works the same on StackOverflow. Please make this feature optional because I don't think it should work that way.

Upvoting his own answer, however, is something he shouldn't be able to do.

Hi guys, I have just downloaded the latest wpForo 1.7.4 to check if the upvoting/downvoting your own answer had been disabled or whether there was a way to disable it. I could not find a way to do it.

Β 

Has this feature been implemented?

Β 

If not, could it be implemented please? I know that it's lame to upvote your own answer but I have seen people doing it with other technologies and it's just not cool.

Β 

Many thanks.

Β 

Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4878

@fawp,

We're really sorry, but this feature is not implemented yet. It'll be available in near future releases. 

 fawp
(@fawp)
Joined: 5 years ago

Reputable Member
Posts: 201

@sofy it just occurred to me that a really quick way to go about this would be to add a hook in the vote function code just before any change takes place. That way it could be intercepted with a function callback that checks whether the user trying to vote on a question/answer is the same user that wrote that question/answer and bypass it there and then.

Β 

Also, the hook could be made so that if certain users don't want the votes to go negative, it passes the vote parameter so that if it goes below zero the callback function can keep it at zero (if it makes sense?).

Β 

I'm not fully familiar with wpForo code structure, is this something that could be implemented?

Sofy
Posts: 4878
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi @florian,

of course, it's optional. We've added a new CAN optionΒ in Usergroup permissions.Β 

Page 1 / 2