Back to Modification Graveyard

Enhanced Reputation Given Checks
Mod Version: 1.06, by Paul M

This thread is in the Modification Graveyard.
vB Version: 3.5.x Rating: (4 votes - 4.50 average) Installs: 117
Released: 29 Nov 2005 Last Update: 15 May 2006 Downloads: 79
Not Supported  

This modification is no longer available or supported.

This adds a set of extra checks for whenever members try and give reputation to posts.

Reputation Power Cap
Sets the maximum reputation giving power for any member.

Higher Reputation Forum List
Any reputation given in the forums listed will be multiplied by the "Higher Reputation Multiply Factor".

Higher Reputation Multiply Factor
See above : Forums in the "Higher Reputation Forum List" will have any reputation given multiplied by this factor.

No Reputaion Forum List
List of Forums in which members cannot give reputation to posts.

Open Threads Limit
Posts in open threads, that are older than this limit, cannot be given reputation.

Closed Threads Limit
Posts in closed threads, that are older than this limit, cannot be given reputation.

Negative Reputation Multiply Factor
All negative reputation is multiplied by this factor (by default vb sets negative reputation to half of positive reputation).

Require Reputation Comment
Members must leave a comment in order to give a post reputation.

Points to note ;
  • If a member does not have permission to give negative reputation then any negative reputation they give will be set to zero - in default vb they ended up giving positive reputation.
  • The vb fixed admin reputation setting is multiplied by the negative reputation factor - in default vb it was the same value for both positive & negative, while everyone elses negative was half the positive value.
  • If the negative reputation factor is 0.5 (to replicate default vb) then there will be one minor difference, a member whose positive reputation power is 1 will have a negative reputation power of 0, in default vb this would be -1.
  • The reputation cap is checked before any multiplication factors are applied - also the Forum Multiply and Negative Multiply are cumulative (e.g. if the cap is 40, and you have a forum multiply of 3, and a negative multiply of 2, a member could give a rep of -40 * 3 * 2 = -240).


History:

v1.04 : Initial Public Release.
v1.05 : Fixed zero reputation bug reported by sinaluna in Post #51

Spoiler (click to open)


Paul,

I looked at the plugin code for "Reputation Checks (2)" and saw this line (line 12):

Code:
if (!($perms['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cannegativerep'])) $reppower = 0;
This looks like it says that if you cant give negative rep, set your rep power to ZERO. Which is exactly my problem. My guess is that if you moved check down to the end of the plugin, it would work as you wanted it to.

Maybe something like this:
Code:
// Negative Reputation // 
if ($reputation != 'pos') 
{ 
    if (!($perms['genericpermissions'] & $vbulletin->bf_ugp_genericpermissions['cannegativerep'])) 
    {
        $reppower = 0;
    } else {
        $reppower *= -1; 
        $reppower *= $vbulletin->options['negrepfactor']; 
}
For now, commenting out the line I mentioned above fixes my problems. Thanks for the cool hack!

Close
.
v1.06 : Minor changes, no update necessary.

Download

This modification cannot be downloaded.

Screenshots

 

Similar Mods

Administrative and Maintenance Tools Enhanced Reputation Checks Modification Graveyard
Administrative and Maintenance Tools Enhanced Reputation Checks Modification Graveyard

vblts.ru supports vBulletin®, 2022-2024