View Full Version : Who has given reputation to who
Boofo
03-05-2004, 10:07 PM
Is there a hack avavilable that will show the Admin who has given reputation to who? It would be nice to have that ability in the Admin CP. Maybe a listing or in the user's profile. Who they have given reputation to and who they have received it from.
NTLDR
03-06-2004, 06:42 PM
Oddly enough you can view and edit users reputation from the Mod CP, yet not the Admin CP.
Boofo
03-06-2004, 06:53 PM
But that only shows their reputation, it doesn't show who they gave it to. Any way to add that to it and have it in the Admin CP, too? ;)
NTLDR
03-06-2004, 07:15 PM
In admin/user.php find: (note this code is from vB3 Gamma, however its probably still the same):
$quicklinks = array_merge(
$quicklinks,
array(
Add above:
// EDIT ################################################## ######################
// reputation edit link
if ($bbuserinfo['userid'] == X) {
$quicklinks["../$modcpdir/user.php?action=reputation&userid=$userid"] = $vbphrase['edit_reputation'];
}
You either need to remove the if statement if you want it for all admins or replace X with your userid. The link then appears in the drop down with the others like Email Password Reminder.
Boofo
03-06-2004, 07:38 PM
Yeah, I was going to do it that way but I went ahead and copied the code for the reputation stuff from the modcp/user.php to the admincp/user.php and chnaged a couple of the links to bring it back to the Admin CP when I clicked on the username's link. Otherwise it did it all from the modcp which is kindof restricted for Admins. I put the link in where you said but I linked it to the admincp/user.php instead. Noiw, how do we go about finding out who the user has given reputation to (now that we have who they got it from)? ;)
Boofo
03-06-2004, 08:45 PM
Well, I got this far but I can't get it to pull the names of the people the user has given reutation to. Can anyone tell me why this code isn't working? ;)
$recipients=$DB_site->query("
SELECT reputation.userid,user.username
FROM " . TABLE_PREFIX . "reputation
LEFT JOIN " . TABLE_PREFIX ."user ON user.userid=reputation.userid
WHERE reputation.whoadded='".$reputation['userid']."'
ORDER BY username ASC
");
NTLDR
03-06-2004, 09:14 PM
$recipients=$DB_site->query("
SELECT reputation.userid,user.username
FROM " . TABLE_PREFIX . "reputation
LEFT JOIN " . TABLE_PREFIX ."user ON(user.userid=reputation.userid)
WHERE reputation.whoadded='".$reputation['userid']."'
ORDER BY username ASC
");
Boofo
03-06-2004, 10:07 PM
No, that didn't change anything. The names do not show up. :(
Roody
03-07-2004, 02:32 PM
Id be interested in this one also.
calldaffer
03-21-2004, 03:36 AM
Id be interested in this one also.
same here, I already have members abusing my rep system. Right now I have them believing that I can see what everyone is doing with the rep system but I doubt I can fool them forever. If this isn't something I can control then I will have to take it down because its only going to cause problems on my site without regulation.
Boofo
03-21-2004, 03:50 AM
Well, I've got it partly working now. It will list who has given reputation to who. I am working on the part to be able to edit the comments. ;)
Giveit2u43
03-21-2004, 04:47 AM
Okay I have this done and working, but I need one more thing before I can release it.. currently it has no pagination (So if you`ve got over 1,000 reps like we do, it's one hell of a mammoth page) can someone point me in the right direction on that..
Boofo
03-21-2004, 04:50 AM
Okay I have this done and working, but I need one more thing before I can release it.. currently it has no pagination (So if you`ve got over 1,000 reps like we do, it's one hell of a mammoth page) can someone point me in the right direction on that..
Do you have it where you can edit the comments, too? That is the part I was working on. I have the other done (like you do) and the pagenation is almost done, too. Maybe we should collaberate? ;)
Giveit2u43
03-21-2004, 05:08 AM
Yep.. Edit & Delete on the comments. and I`ve limited it to just the last 10 reps shown at the moment for testing, but would like to get that pagenation in.. PM me your email and I`ll send my code as it stands now.
JohnK
04-19-2004, 10:40 AM
I would like this too, how's it going?
At the moment I am just browsing the reputation table using phpMyAdmin which works OK, but it's a pain having to translate userid numbers into names :tired:
Being able to sort by userid, reputation and whoadded fields would be useful as well as displaying the most recent entries.
Thanks!
John
Roody
05-06-2004, 05:06 PM
I would like this too, how's it going?
At the moment I am just browsing the reputation table using phpMyAdmin which works OK, but it's a pain having to translate userid numbers into names :tired:
Being able to sort by userid, reputation and whoadded fields would be useful as well as displaying the most recent entries.
Thanks!
John
Any updates?
globalstrata
05-08-2004, 12:27 PM
Any updates?
I am interested on this hack too. Can some one direct me where to get the code at?
Gladys
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.