The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#31
|
||||
|
||||
On my local dev site, it returns the number of points for the infraction being issued.
|
#32
|
||||
|
||||
Quote:
--------------- Added [DATE]1450894187[/DATE] at [TIME]1450894187[/TIME] --------------- Chris, what version of vBulletin are you running? |
#33
|
||||
|
||||
Yes for a warning it returns 0 and, for example if I issue a custom infraction for 1 point, it returns 1.
|
#34
|
||||
|
||||
Quote:
--------------- Added [DATE]1450894799[/DATE] at [TIME]1450894799[/TIME] --------------- Ok, let's try removing some of the unneeded code and just getting the basics. PHP Code:
|
#35
|
||||
|
||||
Quote:
PHP Code:
PHP Code:
--------------- Added [DATE]1450895509[/DATE] at [TIME]1450895509[/TIME] --------------- Quote:
|
#36
|
||||
|
||||
Quote:
Quote:
Correct, I'm trying to see if the basics work, and then figure out why he is having problems with the if statement. |
#37
|
||||
|
||||
Using the last block of code you posted (with the query edited to remove your test quotes), I tested it on a user on my local dev site who initially had 13 ipoints and 10 rep points. After I issued a 3 point infraction, his ipoints became 16 and his rep became -6490 (which is what we should expect).
This means that at the hook we are using, the ipoints value was still at 13 and $vbulletin->GPC['points'] > 0. Then I issued that same user a warning, and his rep was unaffected. The bottom line is the code you posted works flawlessly for me. |
#38
|
||||
|
||||
Quote:
|
#39
|
||||
|
||||
Oh, if I had a dollar for every time I have wondered, "Why does it work for me, but not the other user?"
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|