PDA

View Full Version : Preventing circle-reps - one member, one score


MPDev
06-15-2006, 10:00 PM
On our site we have had alot of problem with small groups of people circle-repping each other to boost their rep power. I came up with a simple code modification (no plugin space for this) that resets all previous rep scores a user has given the user they are repping and then applies the new rep score to their reputation.

Esentially this removes the incentive for circle-repping and only those who get repped positively the most end up with the highest rep score.

In reputation.php, at line 160is find:

// Determine this user's reputationlevelid.

and above it add:

// MDP
// Reset older rep to 0 and then get new count
$db->query_write("
UPDATE " . TABLE_PREFIX . "reputation SET reputation=0 WHERE userid=$userid AND whoadded=" . $vbulletin->userinfo['userid']
);

// Now get current reputation level
$newrep = $db->query_first("
SELECT sum(reputation) AS newtotal
FROM " . TABLE_PREFIX . "reputation
WHERE userid=$userid
");

$userinfo['reputation'] = $newrep['newtotal'];
// End

Now when someone reps another member, their old reps are set to 0 (leaving the comments) and their reputation score is reset and then the new power is added.

No more circle-repping.

MPDev
06-16-2006, 01:23 PM
I can provide a simple script to reset all prior score if you'd like; this mod will start resetting user scores the next time the user is repped, but users who do not get repped will still have their inflated scores.

bondjetta
06-19-2006, 09:32 PM
i have this same problem...i wonder how many users it will tick off if i install it ;)

MPDev
06-20-2006, 11:16 AM
I've installed it on two of my sites and the response falls into two categories:

1) Those upset at the loss off their ability to circle-rep each other (and the subsequent loss of their circle-rep power)
2) Those thankful for the level playing field

I have a site with 130k members; it was a mad rush to get groups together to prop each other to the top levels. Then, with their "rep power" they would target other groups with negative rep - it was not very pretty.

This new system makes for no incentive to continually rep people and forces people to actually find ways to get other members to rep them.

So far, it's working out perfectly!

furst
09-30-2006, 03:40 AM
I don't really understand how this works.. can you explain further please? Also, will this work in 3.6?

Adrian Schneider
09-30-2006, 04:01 AM
I may have a use for this! So basically you can only rep somebody once? Every rep will just overwrite the last one (in terms of score)?

furst
09-30-2006, 08:20 PM
It's not very practical in smaller communities, now is it?

Adrian Schneider
09-30-2006, 09:06 PM
No, unless the users are abusing it. I'm going to add this to my site.

Pcparts
04-29-2007, 05:11 PM
is this oging to work in 3.6.5?

SBlueman
07-07-2007, 01:01 AM
Any one have any luck with this for 3.6.5 or higher?

MPDev
07-12-2007, 10:43 PM
Yep. Works fine. Keep rep from being abused on our site - promotes those who have gotten more rep from a greater number of people versus the same people over and over again.