Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Solved: 8 Years, 8 Months, 4 Weeks ago Reputation system
#1
Solved: 8 Years, 8 Months, 4 Weeks ago
Hello

I wanted to ask if it is possible to make it such that only admins can delete the reputations and not the moderators.

Thanks
#2
Solved: 8 Years, 8 Months, 4 Weeks ago
Open ./reputation.php file and find; (around line # 348)
	if($mybb->usergroup['cancp'] != 1 && $mybb->usergroup['issupermod'] != 1 && $existing_reputation['adduid'] != $mybb->user['uid'])
and replace it with;
	if($mybb->usergroup['cancp'] != 1 && $mybb->usergroup['issupermod'] == 1 && $existing_reputation['adduid'] != $mybb->user['uid'])
#3
Solved: 8 Years, 8 Months, 4 Weeks ago
Yaldaram, I don't see any change in that.
#4
Solved: 8 Years, 8 Months, 4 Weeks ago
Are you saying once you update, or the code itself? I do see an edit.
#5
Solved: 8 Years, 8 Months, 4 Weeks ago
(01-12-2011, 08:27 AM)Renegader Wrote: Yaldaram, I don't see any change in that.

There's a difference in here;
    Toungue
#6
Solved: 8 Years, 8 Months, 4 Weeks ago
Thanks Yaldaram. I suppose that will work.
#7
Solved: 8 Years, 8 Months, 4 Weeks ago
Don't forget to hit the solve button. Wink
#8
Solved: 8 Years, 8 Months, 4 Weeks ago
This is what I did in the reputation.php
Changed
if($mybb->usergroup['cancp'] == 1 || $mybb->usergroup['issupermod'] == 1 || ($mybb->usergroup['cangivereputations'] == 1 && $reputation_vote['adduid'] == $mybb->user['uid'] && $mybb->user['uid'] != 0))

To
if($mybb->usergroup['cancp'] == 1 || ($mybb->usergroup['cangivereputations'] == 1 && $reputation_vote['adduid'] == $mybb->user['uid'] && $mybb->user['uid'] != 0))
#9
Solved: 8 Years, 8 Months, 4 Weeks ago
No, don't remove isssupermod group variable.

(01-12-2011, 07:14 AM)Yaldaram Wrote: Open ./reputation.php file and find; (around line # 348)
	if($mybb->usergroup['cancp'] != 1 && $mybb->usergroup['issupermod'] != 1 && $existing_reputation['adduid'] != $mybb->user['uid'])
and replace it with;
	if($mybb->usergroup['cancp'] != 1 && $mybb->usergroup['issupermod'] == 1 && $existing_reputation['adduid'] != $mybb->user['uid'])

#10
Solved: 8 Years, 8 Months, 4 Weeks ago
(01-14-2011, 05:32 AM)Yaldaram Wrote: No, don't remove isssupermod group variable.

Why not? Huh
It works perfectly that way.


Forum Jump:


Users browsing this thread: 1 Guest(s)