MyBB Community Forums

Full Version: How can a user delete their own reputation?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is there a way a user can delete their own reputation?

I was told by people that there is ways. Thanks Heart
Do you mean deleting their own reputation that they have given OR received?
They can't delete reputation given to them or reputation given to someone unless they have the privileges to do so.
Then they would delete negative reputation.
If you mean to Delete reputations they received, then you've to do a minor core edit. (Though its not recommended, but here is a core edit to give you a hint how to do that)

Open ./reputations file and find;
	if($mybb->usergroup['cancp'] != 1 && $mybb->usergroup['issupermod'] != 1 && $existing_reputation['adduid'] != $mybb->user['uid'])
	{
		error_no_permission();
	}
and Change it to;
	if(!$mybb->user['uid'])
	{
		error_no_permission();
	}

This'll allow them to Not see No Permissions error.

Now, within same file, find;
		if($mybb->usergroup['cancp'] == 1 || $mybb->usergroup['issupermod'] == 1 || ($mybb->usergroup['cangivereputations'] == 1 && $reputation_vote['adduid'] == $mybb->user['uid'] && $mybb->user['uid'] != 0))
		{
			$delete_link = "[<a href=\"reputation.php?action=delete&amp;uid={$reputation_vote['rated_uid']}&amp;rid={$reputation_vote['rid']}\" onclick=\"MyBB.deleteReputation({$reputation_vote['rated_uid']}, {$reputation_vote['rid']}); return false;\">{$lang->delete_vote}</a>]";
		}

and Change it into;
		if($mybb->usergroup['cangivereputations'] == 1 && $user['uid'] == $mybb->user['uid'] && $mybb->user['uid'] != 0)
		{
			$delete_link = "[<a href=\"reputation.php?action=delete&amp;uid={$reputation_vote['rated_uid']}&amp;rid={$reputation_vote['rid']}\" onclick=\"MyBB.deleteReputation({$reputation_vote['rated_uid']}, {$reputation_vote['rid']}); return false;\">{$lang->delete_vote}</a>]";
		}

This'll allow them to see [Delete Rating] link on reputation report pages (But only on their own Reputation page Wink ).

Now your users are allowed to Delete those Reputations as well which they have received. =)
Well the owner of the forum said users can delete their own reputation, but he wants us to find out how to do it on our own.

I'm also talking about the received reputation.
(2011-05-27, 12:08 AM)ShookOne Wrote: [ -> ]Well the owner of the forum said users can delete their own reputation, but he wants us to find out how to do it on our own.

I'm also talking about the received reputation.

Wrong. You can't. Either you misunderstood or he's an idiot.