solved Delete Member trigger

Developer Networks
Developer Networks
@developer-networks
11 years ago
566 posts
Is there a listener I can use when a profile/user is deleted on the Jamroom system?

Thanks.
updated by @developer-networks: 02/02/14 06:19:06AM
brian
@brian
11 years ago
10,148 posts
Yes - you'll want to listen for the jrCore "db_delete_item" event, and in your event check $_args['module'] and make sure it is either jrUser or jrProfile (depending on what you want to work with).

For a full list of core triggers, make sure developer mode is enabled in your JR and view the "info" tab for the core module.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Developer Networks
Developer Networks
@developer-networks
11 years ago
566 posts
Thanks. I was looking for the one to use when a profile is deleted from the Jamroom system so i can start the function as well with my phpbb module. I have my developer mode turned on and looked under the info tab but only see log in out and sign up and updated. nothing on when its deleted.
updated by @developer-networks: 12/20/13 11:07:41AM
brian
@brian
11 years ago
10,148 posts
Have you registered a db_delete_item listener in your module init?


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
Developer Networks
Developer Networks
@developer-networks
11 years ago
566 posts
no this is all i have found i can work with.

     jrCore_register_event_listener('jrUser', 'signup_activated', 'myPhpbb_signup_activated_listener');
    jrCore_register_event_listener('jrUser', 'signup_created', 'myPhpbb_signup_created_listener');
    jrCore_register_event_listener('jrUser', 'login_success', 'myPhpbb_login_success_listener');
    jrCore_register_event_listener('jrUser', 'logout', 'myPhpbb_logout_listener'); 

So i just need to register the

 jrCore_register_event_listener('jrUser', 'db_delete_item', 'myPhpbb_delete_listener');
brian
@brian
11 years ago
10,148 posts
Wrong module - the db_delete_item event is from the jrCore module - NOT jrUser.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags