Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

How to disable down-votes, only allow UP-votes?

+2 votes
asked Feb 13, 2012 in Q2A Core by max
Is is possible to disable down-votes? I'd like to enable just up-votes, sort of like the FB LIKE concept. So, basicaly, no thumbs-down option would be shown. Just a thumbs-up button.
Q2A version: 1.5

4 Answers

+5 votes
answered Feb 13, 2012 by gidgreen
You can set a separate permission for downvoting posts in the 'Permissions' tab of the 'Admin' panel.
commented Feb 20, 2012 by max
Sorry, I did not phrase that correctly. What I meant to say was: If voting for questions only on questions page is enabled by admin, then the vote icons should not be displayed on the lists. Either that, or if a user clicks on a vote up/down for questions in a list (where admin has disabled list voting) then it would redirect to the question page when clicked. For new users who don't understand that the titles are links to the actual question pages, this might increase the 'stickyness' of Q2A sites for unfamiliar users. Just a thought.
commented Feb 21, 2012 by gidgreen
OK - I understand now. It might surprise people, but I'll think about it...
+4 votes
answered Feb 13, 2012 by Scott

gidgreen is right, but you can also remove the button via an advanced theme, or in CSS by setting

.qa-vote-down-button { display: none; }


+1 vote
answered Jul 21, 2013 by Bruno Vandekerkhove

I implemented that in my theme - you could combine gidgreen's and Scott's ideas by setting the down-vote permission to admins only and altering the css.

commented Jul 22, 2013 by WEST
your theme is so excellent ,is it possible to share it ?
commented Jul 23, 2013 by WEST
sorry,I can not download it ,can you send it to my email please :1379868193@qq.com  .THX SO MUCH
+1 vote
answered Jul 13, 2017 by q2apro

With all solutions provided, you still have HTML output that is not w3c valid ("Error: Duplicate attribute title"). 

<button title="Voting down is only available to some users" type="submit" class="qa-vote-second-button qa-vote-down-disabled" disabled="disabled" title=""></button>

To remove this, use an advanced theme (qa-theme.php) and this function: 

public function post_disabled_button($post, $element, $value, $class)

if (isset($post[$element]) && $element!='vote_down_tags')

$this->output('<input '.$post[$element].' type="submit" value="'.$value.'" class="'.$class.'-disabled" disabled="disabled"/> ');