vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Who has given reputation to who (https://vborg.vbsupport.ru/showthread.php?t=62200)

Boofo 03-05-2004 10:07 PM

Who has given reputation to who
 
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):

PHP Code:

        $quicklinks array_merge(
            
$quicklinks,
            array( 

Add above:

PHP Code:

                // 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? ;)

PHP Code:

 $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

PHP Code:

 $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

Quote:

Originally Posted by Roody
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

Quote:

Originally Posted by Giveit2u43
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 09: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 04:06 PM

Quote:

Originally Posted by JohnK
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 11:27 AM

Quote:

Originally Posted by Roody
Any updates?

I am interested on this hack too. Can some one direct me where to get the code at?

Gladys


All times are GMT. The time now is 04:03 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01800 seconds
  • Memory Usage 1,759KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (17)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete