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.


All times are GMT. The time now is 07:05 AM.

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.02046 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete