vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Preventing circle-reps - one member, one score (https://vborg.vbsupport.ru/showthread.php?t=118770)

MPDev 06-15-2006 10:00 PM

Preventing circle-reps - one member, one score
 
On our site we have had alot of problem with small groups of people circle-repping each other to boost their rep power. I came up with a simple code modification (no plugin space for this) that resets all previous rep scores a user has given the user they are repping and then applies the new rep score to their reputation.

Esentially this removes the incentive for circle-repping and only those who get repped positively the most end up with the highest rep score.

In reputation.php, at line 160is find:

Code:

        // Determine this user's reputationlevelid.
and above it add:

Code:

        // MDP
        // Reset older rep to 0 and then get new count
        $db->query_write("
                UPDATE " . TABLE_PREFIX . "reputation SET reputation=0 WHERE userid=$userid AND whoadded=" . $vbulletin->userinfo['userid']
    );
       
        // Now get current reputation level
        $newrep = $db->query_first("
                SELECT sum(reputation) AS newtotal
                FROM " . TABLE_PREFIX . "reputation
                WHERE userid=$userid
        ");
       
        $userinfo['reputation'] = $newrep['newtotal'];
        // End

Now when someone reps another member, their old reps are set to 0 (leaving the comments) and their reputation score is reset and then the new power is added.

No more circle-repping.

MPDev 06-16-2006 01:23 PM

I can provide a simple script to reset all prior score if you'd like; this mod will start resetting user scores the next time the user is repped, but users who do not get repped will still have their inflated scores.

bondjetta 06-19-2006 09:32 PM

i have this same problem...i wonder how many users it will tick off if i install it ;)

MPDev 06-20-2006 11:16 AM

I've installed it on two of my sites and the response falls into two categories:

1) Those upset at the loss off their ability to circle-rep each other (and the subsequent loss of their circle-rep power)
2) Those thankful for the level playing field

I have a site with 130k members; it was a mad rush to get groups together to prop each other to the top levels. Then, with their "rep power" they would target other groups with negative rep - it was not very pretty.

This new system makes for no incentive to continually rep people and forces people to actually find ways to get other members to rep them.

So far, it's working out perfectly!

furst 09-30-2006 03:40 AM

I don't really understand how this works.. can you explain further please? Also, will this work in 3.6?

Adrian Schneider 09-30-2006 04:01 AM

I may have a use for this! So basically you can only rep somebody once? Every rep will just overwrite the last one (in terms of score)?

furst 09-30-2006 08:20 PM

It's not very practical in smaller communities, now is it?

Adrian Schneider 09-30-2006 09:06 PM

No, unless the users are abusing it. I'm going to add this to my site.

Pcparts 04-29-2007 05:11 PM

is this oging to work in 3.6.5?

SBlueman 07-07-2007 01:01 AM

Any one have any luck with this for 3.6.5 or higher?


All times are GMT. The time now is 11:18 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.01175 seconds
  • Memory Usage 1,726KB
  • 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
  • (2)bbcode_code_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