diff -ubBwr --exclude=uploads --exclude=images --exclude=images_pcf --exclude=config.php --exclude=languages --exclude=settings.php Upload/reputation.php forum/reputation.php
--- Upload/reputation.php	2006-09-26 11:24:25.000000000 +0200
+++ forum/reputation.php	2006-09-28 11:28:41.000000000 +0200
@@ -332,6 +333,21 @@
 
 	// Check the sorting options for the reputation list
 	$sort_select = '';
+	// KK: reputation_hide_voter_username.mod
+	// Orig:
+//	switch($mybb->input['sort'])
+//	{
+//		case "username":
+//			$order = "u.username ASC";
+//			$sort_selected['username'] = 'selected="selected"';
+//			break;
+//		default:
+//			$order = "r.dateline DESC";
+//			$sort_selected['last_updated'] = 'selected="selected"';
+//			break;
+//	}
+	if ($mybb->usergroup['cancp'] == "yes")
+	{
 	switch($mybb->input['sort'])
 	{
 		case "username":
@@ -343,6 +359,13 @@
 			$sort_selected['last_updated'] = 'selected="selected"';
 			break;
 	}
+	}
+	else
+	{
+		$order = "r.dateline DESC";
+		$sort_selected['last_updated'] = 'selected="selected"';
+	}
+	// KK^
 	// Fetch the total number of reputations for this user
 	$query = $db->simple_select(TABLE_PREFIX."reputation r", "COUNT(r.rid) AS reputation_count", "r.uid='{$user['uid']}' $conditions");
 	$reputation_count = $db->fetch_field($query, "reputation_count");
@@ -452,8 +475,19 @@
 	while($reputation_vote = $db->fetch_array($query))
 	{
 		// Format the username of this poster
+		// KK: reputation_hide_voter_username.mod
+//		$reputation_vote['username'] = format_name($reputation_vote['username'], $reputation_vote['user_usergroup'], $reputation_vote['user_displaygroup']);
+//		$reputation_vote['username'] = build_profile_link($reputation_vote['username'], $reputation_vote['uid']);
+		if ($mybb->usergroup['cancp'] == "yes")
+		{
 		$reputation_vote['username'] = format_name($reputation_vote['username'], $reputation_vote['user_usergroup'], $reputation_vote['user_displaygroup']);
 		$reputation_vote['username'] = build_profile_link($reputation_vote['username'], $reputation_vote['uid']);
+		}
+		else
+		{
+			$reputation_vote['username'] = '' ;
+		}
+		// KK^
 
 		// This is a negative reputation
 		if($reputation_vote['reputation'] < 0)
@@ -481,7 +515,17 @@
 		{
 			$reputation_vote['user_reputation'] = 0; 
 		}
-		$reputation_vote['user_reputation'] = get_reputation($reputation_vote['user_reputation'], $reputation_vote['adduid']);
+		// KK: reputation_hide_voter_username.mod
+//		$reputation_vote['user_reputation'] = get_reputation($reputation_vote['user_reputation'], $reputation_vote['adduid']);
+ 		if ($mybb->usergroup['cancp'] == "yes")
+ 		{
+ 			$reputation_vote['user_reputation'] = '(' . get_reputation($reputation_vote['user_reputation'], $reputation_vote['adduid']) . ')';
+ 		}
+ 		else
+ 		{
+ 			$reputation_vote['user_reputation'] = '' ;
+ 		}
+ 		// KK^
 
 		// Format the date this reputation was last modified
 		$last_updated_date = my_date($mybb->settings['dateformat'], $reputation_vote['dateline']);

