Action on user delete

Discussion forum for MOD Writers regarding MOD Development.
Locked
shmk
Registered User
Posts: 197
Joined: Fri Jun 06, 2008 7:47 am
Location: Italy

Action on user delete

Post by shmk »

I've developed a mod that has a separate table containing data linked to users.

What is the best/right method to remove the linked data from my table when a user is deleted from PHPBB?
Graduate in Computer Science looking for freelance job.
MY MODs: ShMk User Feedback 1.0.6

User avatar
m157y
Registered User
Posts: 482
Joined: Mon Apr 30, 2007 9:39 am
Location: Russia, Moscow, Khimki
Contact:

Re: Action on user delete

Post by m157y »

includes/functions_user.php
function user_delete()
place it here..
best way if in your table you have a field user_id, just update an $table_ary array, by default it looks like

Code: Select all

	$table_ary = array(USERS_TABLE, USER_GROUP_TABLE, TOPICS_WATCH_TABLE, FORUMS_WATCH_TABLE, ACL_USERS_TABLE, TOPICS_TRACK_TABLE, TOPICS_POSTED_TABLE, FORUMS_TRACK_TABLE, PROFILE_FIELDS_DATA_TABLE, MODERATOR_CACHE_TABLE, DRAFTS_TABLE, BOOKMARKS_TABLE, SESSIONS_KEYS_TABLE);
m157y aka Misty
NO SUPPORT VIA PM
KarmaMOD for phpBB 3.0.x | bbAJAX
Follow me on twitter

Locked

Return to “[3.0.x] MOD Writers Discussion”