Quote:
Originally Posted by Chris.08i
I am not sure - from what Mark posted earlier, I assumed that
PHP Code:
$vbulletin->GPC['points']
was the code to determine the number of points being issued in the infraction.
So from my understanding:
An infraction that don't carry points
PHP Code:
$vbulletin->GPC['points'] == 0
would equal an infraction should skip the bottom code (deduction code).
I have tried either variations, and neither have worked.
|
In that case != 0 should cause it to run the subtraction code, which you said it didn't. I will have to look at the hook some.
--------------- Added [DATE]1450845554[/DATE] at [TIME]1450845554[/TIME] ---------------
based on this post:
Quote:
Originally Posted by MarkFL
If you use the code I posted in post #8, then the deduction will be based on the accumulated active points prior to the infraction being issued. So, for example, suppose a user has 3 active points, and you then issue a warning...$userinfo['ipoints'] will be equal to 3.
But, if you use the hook location and variable I suggested in post #10, then $vbulletin->GPC['points'] will be equal to 0.
|
I would assume that a Warning is
PHP Code:
$vbulletin->GPC['points'] == 0
so an Infraction would be
PHP Code:
$vbulletin->GPC['points'] != 0
You want the points to be deducted with an Infraction, but not a Warning, right?