vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Enhanced Reputation Given Checks (https://vborg.vbsupport.ru/showthread.php?t=101841)

sinaluna 02-14-2006 08:45 PM

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!

Paul M 02-14-2006 10:30 PM

sinaluna - yes, you are right, that's a bug which I have fixed.

MythoLogy 02-15-2006 08:59 PM

*clicks install - exactly what I needed for guild families.

BigTrucK72 02-28-2006 06:15 PM

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?

Paul M 02-28-2006 06:57 PM

Sorry, I don't really understand what you are asking.

BigTrucK72 02-28-2006 07:07 PM

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.

Edmund Tan 03-02-2006 10:01 AM

Hi, where do I upload the XML doc to my admincp folder? Exactly which folder? I am using 3.5.3

Edmund Tan 03-02-2006 10:08 AM

Quote:

Originally Posted by Michelle
I wonder... Is it ignorance or stupidity? https://vborg.vbsupport.ru/external/2006/03/25.gif







(sorry mates, couldn't resist the temptation :p)

Sorry i really do not know. You want to laugh I cant stop you.

Lea Verou 03-02-2006 10:13 AM

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. :)

Edmund Tan 03-02-2006 10:18 AM

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.


All times are GMT. The time now is 03: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.01033 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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