The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
hook for user ban and registration
I am trying to run some code whenever a user is banned or his ban is lifted. There is no direct hooks for that, I have tried using userdata_postsave hook but that only gets fired when I change user data. In most cases, I just wish to ban the user without changing any user data, so does any have any insights on what hook can I use to run my code when a user is banned or his ban is lifted.
Other problem I am facing is, that my registration hook is not executed. I am using register_addmember_complete and I am testing by adding a user from admincp, please let me know if I am doing it wrong. What should be the hook to execute code for user registration and also when a user is added via admincp. Thanks in Advance |
#2
|
|||
|
|||
When a user is banned, the usergroup gets updated to the banned group. In the two places I looked it was done using the user data manager, so it seems like the hook you tried to use would be fired (BTW, I'm looking at vb 3.8.3 because it's what I have here - it's possible it's different in vb3.6).
As for registration, that hook doesn't get called when a user is added via the adminCP. It doesn't look like there's any hook in the adminCP code, but it does use the data manager. IIRC there's a way in the datamanger code to compare the existing fields to the update values, and I think in the case of adding a user the existing userid would be 0. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|