Back to vBulletin 3.5 Add-ons

Preventing circle-reps - one member, one score
Mod Version: 1.00, by MPDev

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 3
Released: 16 Jun 2006 Last Update: Never Downloads: 0
Not Supported Code Changes  

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:

Code:
	// Determine this user's reputationlevelid.
and above it add:

Code:
	// 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.

Download

No files for download.

Similar Mods

green circle ranks vBulletin Rank Sets
red circle ranks vBulletin Rank Sets
orange circle ranks vBulletin Rank Sets

vblts.ru supports vBulletin®, 2022-2025