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:13 AM)Traumax3 Wrote:  AdminCP > Users And Groups > User Group You Want > Edit > Users And Permissions > Uncheck "Can Give Reputation"

That disables their permissions entirely. OP just wants to remove the ability to give negative reputation.

OP I believe it is a MyBB plugin.
It'd help if you specified which forum platform you are talking about...
(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:13 PM)Gory Wrote:  Gravedigging because I could do with an answer.

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))"
(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.".
(Feb 23, 2015 05:36 PM)Gory Wrote:  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.".

That is what comes up when Leets give neg on HF, so I can assume Omni did this as well, not sure if there is another solution.

Gl

Je t'aime
[Image: fpZ5a5g.png]

(Apr 22, 2022 04:39 PM)-Scrub Wrote:  Jokes on you, I'm not smart enough to know what he's talking about.
Next time post a new thread in the right section, better way.
<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 292 May 2, 2017 10:26 AM
Last Post: Nasyr
[MyBB] by PavilionsAug 31, 2016 09:19 AM 2 277 Aug 31, 2016 09:19 AM
Last Post: Maeko