Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

How to disable negative rep for a certain usergroup?

I don't want to disable negative reputation completely, but I do want to revoke this privilege from a usergroup.
How do I do it? Is a plugin needed?

This is for myBB.
(Sep 26, 2012 07:15 AM)Dolan. Wrote:  I don't want to disable negative reputation completely, but I do want to revoke this privilege from a usergroup.
How do I do it? Is a plugin needed?

AdminCP > Users And Groups > User Group You Want > Edit > Users And Permissions > Uncheck "Can Give Reputation"
(Sep 26, 2012 10:48 AM)PAЯADOX Wrote:  It'd help if you specified which forum platform you are talking about...

Sorry about that, updated the OP.
I'm using myBB.
Gravedigging because I could do with an answer.
(Feb 23, 2015 05:19 PM)Hуѕтєяιa X™ Wrote:  Edit the reputation.php file.

Find (without quotes):
"if($mybb->settings['negrep'])"

And change it to (without quotes):
"$group = "3,4,6,8";
$groups = explode(",",$group);
if($mybb->settings['negrep'] || in_array($mybb->user['usergroup'],$groups))"

I tried that, it works to an extent. It gives me the option to give a negative reputation to a user when I have negative reputation disabled, where as before it wouldn't.
However when I actually click to give the rep I get "The administrator has disabled negative reputations.".
<if $GLOBALS['mybb']->user['usergroup'] >= GROUP ID HERE then>
Put that in the template for the reputation prompt over neg reps

edit: oh lol this is from 2k12. Back when mybb 1.6 was still going. oh great.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by SIM-587985Oct 16, 2024 10:58 AM 2 155 Oct 16, 2024 10:58 AM
Last Post: SIM-587985
[MyBB] by NyctophiliacMay 2, 2017 10:26 AM 10 295 May 2, 2017 10:26 AM
Last Post: Nasyr
[MyBB] by PavilionsAug 31, 2016 09:19 AM 2 279 Aug 31, 2016 09:19 AM
Last Post: Maeko