Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Enhanced Reputation Given Checks Details »»
Enhanced Reputation Given Checks
Version: 1.06, by Paul M Paul M is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.x Rating:
Released: 11-28-2005 Last Update: 05-14-2006 Installs: 117
 
No support by the author.

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.
v1.06 : Minor changes, no update necessary.

Show Your Support

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

Comments
  #52  
Old 02-14-2006, 08:45 PM
sinaluna sinaluna is offline
 
Join Date: Feb 2005
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #53  
Old 02-14-2006, 10:30 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sinaluna - yes, you are right, that's a bug which I have fixed.
Reply With Quote
  #54  
Old 02-15-2006, 08:59 PM
MythoLogy's Avatar
MythoLogy MythoLogy is offline
 
Join Date: Mar 2003
Location: Kansas, USA
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*clicks install - exactly what I needed for guild families.
Reply With Quote
  #55  
Old 02-28-2006, 06:15 PM
BigTrucK72 BigTrucK72 is offline
 
Join Date: Oct 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this hack give a user the ability to choose the number of points or is it a fixed total as dictated by admincp setting?
Reply With Quote
  #56  
Old 02-28-2006, 06:57 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I don't really understand what you are asking.
Reply With Quote
  #57  
Old 02-28-2006, 07:07 PM
BigTrucK72 BigTrucK72 is offline
 
Join Date: Oct 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nevermind... doesn't look like there is an option for what I was asking...

On some forums the user can select how many points to give from a drop down menu up to the total rep points the user has earned. This way post scores can better reflect the content rather than some pre-determined number.
Reply With Quote
  #58  
Old 03-02-2006, 10:01 AM
Edmund Tan Edmund Tan is offline
 
Join Date: Feb 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, where do I upload the XML doc to my admincp folder? Exactly which folder? I am using 3.5.3
Reply With Quote
  #59  
Old 03-02-2006, 10:08 AM
Edmund Tan Edmund Tan is offline
 
Join Date: Feb 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michelle
I wonder... Is it ignorance or stupidity?







(sorry mates, couldn't resist the temptation )
Sorry i really do not know. You want to laugh I cant stop you.
Reply With Quote
  #60  
Old 03-02-2006, 10:13 AM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't upload it. You go to the plugin section in your admin control panel and import it, either as a product or as a plugin (I don't know if this is a plugin or a product as I don't use the modification, try both it does no harm). NO ftp involved.
Have a nice day.
Reply With Quote
  #61  
Old 03-02-2006, 10:18 AM
Edmund Tan Edmund Tan is offline
 
Join Date: Feb 2006
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michelle
You don't upload it. You go to the plugin section in your admin control panel and import it, either as a product or as a plugin (I don't know if this is a plugin or a product as I don't use the modification, try both it does no harm). NO ftp involved.
Have a nice day.
thanks. btw, i can accept your comments for my pure ignorance for which i really am still learning. Plain stupidity? I do not need mockery comments from you.
Reply With Quote
Reply

Thread Tools

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 09:22 AM.


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.05839 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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