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
|