Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Preventing circle-reps - one member, one score Details »»
Preventing circle-reps - one member, one score
Version: 1.00, by MPDev MPDev is offline
Developer Last Online: Dec 2016 Show Printable Version Email this Page

Version: 3.5.4 Rating:
Released: 06-15-2006 Last Update: Never Installs: 3
Code Changes  
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 06-16-2006, 01:23 PM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 06-19-2006, 09:32 PM
bondjetta's Avatar
bondjetta bondjetta is offline
 
Join Date: Sep 2004
Location: chicago
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have this same problem...i wonder how many users it will tick off if i install it
Reply With Quote
  #4  
Old 06-20-2006, 11:16 AM
MPDev's Avatar
MPDev MPDev is offline
 
Join Date: Oct 2003
Location: Virginia
Posts: 885
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #5  
Old 09-30-2006, 03:40 AM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't really understand how this works.. can you explain further please? Also, will this work in 3.6?
Reply With Quote
  #6  
Old 09-30-2006, 04:01 AM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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)?
Reply With Quote
  #7  
Old 09-30-2006, 08:20 PM
furst furst is offline
 
Join Date: Dec 2005
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's not very practical in smaller communities, now is it?
Reply With Quote
  #8  
Old 09-30-2006, 09:06 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No, unless the users are abusing it. I'm going to add this to my site.
Reply With Quote
  #9  
Old 04-29-2007, 05:11 PM
Pcparts Pcparts is offline
 
Join Date: May 2005
Location: Holland
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is this oging to work in 3.6.5?
Reply With Quote
  #10  
Old 07-07-2007, 01:01 AM
SBlueman SBlueman is offline
 
Join Date: Jan 2006
Posts: 717
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08117 seconds
  • Memory Usage 2,288KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete