PDA

View Full Version : [3.0.7 to 3.0.3] De-anonymizing Reputation


memobug
04-20-2005, 10:00 PM
Background: The existing vB Reputation System is anonymous, which is fine in a perfect world, but here on earth this can lead to problems: Some users abuse the system by reputation "sniping," and others could potentially abuse its anonymity by "signing" a different username to their negative reps and stir up even more trouble.

With that in mind, here is an ultra simple hack that removes the anonymity of reputation by "signing" reputation comments with the username.

One code modification to reputation.php. Installation & test time is under five minutes.

Right before this bit near line 192:


$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "reputation (postid, reputation, userid, whoadded, reason, dateline)
VALUES ($postid, $score, $userid, $bbuserinfo[userid], '" . addslashes(fetch_censored_text($reason)) . "','" . TIMENOW . "')
");


Insert this

$reason.=" ({$vbphrase[leftby]} {$bbuserinfo[username]})";


Now send a rep to a test account and check it out through the existing admincp tool: User Reputation ->View Reputation Comments (BTW - I always have to set the end date a day forward to catch all of today's reps on that query tool. I think it had a bug at one time)


Notes:
1. Screenshot? See attachment (the first reputation was left before I found the right phrase. The circled one is how it comes out.
2. You might also want to add something to your reputationbit template and/or your FAQ to let people know that the reputation system is not anonymous. This could go somewhere like this (new part in italics

[your_comments_on_this_post]:<br />
NOTE: Your username will be automatically signed!<br />

3. A more involved hack might display something akin to what the admin can see by viewing reputation - seeing the sender's clickable username in a column of its own. The main reason I can't do that is I don't want to reveal the senders of past reps made under the anonymous system, but I'd agree it is the "right way."

Regards,

Matt

P.S. The attachments below are different colors 'cause they came from two different templates!

kall
04-21-2005, 09:08 AM
Maybe I am missing something but...doesn't enabling the Group Permission 'Can See Who Left Reputation' kinda 'de anonymise' the reputation?

msimplay
04-21-2005, 09:35 AM
thanks since i've disabled negative reputations my users would love to know who they recieve their comments / reputations from

One question since moderators and above can see reputation comments by default isn't there a way to make this available to normal users instead of having the name signed as then all previous comments would also show who the comments were left by as now as an admin i got two places where it shows who its left by

sabret00the
04-21-2005, 09:46 AM
Maybe I am missing something but...doesn't enabling the Group Permission 'Can See Who Left Reputation' kinda 'de anonymise' the reputation?
that's what i thought :happysad:

kall
04-21-2005, 09:56 AM
that's what i thought :happysad:
*points at post above sabe's*

Maybe it was only enabled in our versions... :)

msimplay
04-21-2005, 10:24 AM
its not enabled in 3.0 i had to change the templates around in which case i don't need this hack anymore either :P

Corriewf
04-21-2005, 12:11 PM
Yeah, my members can see who gone and up and done it anyhow.... hmmm

Polo
04-21-2005, 02:12 PM
nice.. thanks for the contribution to the community...

Paul M
04-21-2005, 03:11 PM
Seeing who left rep comments is a standard feature of vB 3.0.x so I don't see what this is about. The comment "The existing vB Reputation System is anonymous" is simply not true.

deathemperor
04-21-2005, 04:31 PM
lol is this a vb3 hack ? if yes then why it's in a beta of vb2 hacks ?!?

Corriewf
04-21-2005, 07:11 PM
lol is this a vb3 hack ? if yes then why it's in a beta of vb2 hacks ?!?


I would like a mod that would insert a smart remark when I do this <insert a smart remark> .......

memobug
04-21-2005, 07:37 PM
Sorry.

1. I can't blithely TURN ON the reputation display feature because we have a mature board with 100s of "anonymous" reputation comments. If I turn that on now it would start a range war.

2. I posted a request on this about four months ago but no one said anything. So maybe this hack will be useful for someone. Maybe not.

3. But I do agree it should be moved to the right section (Vb3 beta hacks or trash!) in locating the hack I noticed that the picklist let me select vb3.0.7 so I thought I was in the right forum.

If this isn't of any use please delete it. Given this response i think my first hack will be my last.

bye,

Matt

Corriewf
04-21-2005, 07:50 PM
Awww cmon.... What about my request?

kall
04-23-2005, 09:19 PM
3. But I do agree it should be moved to the right section (Vb3 beta hacks or trash!) in locating the hack I noticed that the picklist let me select vb3.0.7 so I thought I was in the right forum.

If this isn't of any use please delete it. Given this response i think my first hack will be my last.

"Releasing" a feature that is standard to all versions post 3.0.4 as a "hack" and saying it is for 3.0.7 is a little pointless, that's all.