Thanks. I believe that's the oneYou have to be searching wrong somehow. Just search for “Deleted” it should be somewhere around sixth in the list that shows.
View attachment 255191
Feature suggestion
When someone deletes their account, automatically put any posts they've done in the last x minutes in approvals.
To stop the people that dramatically announce their departure and aim shots at mods.
Anyone else think this would be useful?
It is the same as how you would delete a user normally. Posts will remain with the username grayed out.
Once the user is deleted, there is no option to undelete or re-assign the user.
There is another option in this add-on. Instead of deleting the user, you can move the user to a special usergroup. You can revoke all access for this usergroup, but it is not the same a real delete.
We don’t have legal obligation, but as courtesy i anonimize the content after que exclusion (choosing a profile name to “Profile Deleted By Member".
Like if he creates his account again and same passwords, can his old threads/posts be connected to his account again?
I've read something on the main forums about this, but not sure if this still can be done after a self deletion with this mod. Or only if I do or don't enable/disable certain options?
UPDATE `xf_post`
SET `user_id` = replace(user_id, '0', '7615')
WHERE username = 'Deleted member 6441'
Thank you. I knew I'd seen such option via database somewhere on the forum.sThis can be done via a database query
Thank you, it's important that the posts and old name remain the same.It is the same as how you would delete a user normally. Posts will remain with the username grayed out.
// Remove profile details
$profile = $this->user->Profile;
$profile->dob_day = 0;
$profile->dob_month = 0;
$profile->dob_year = 0;
$profile->signature = '';
$profile->website = '';
$profile->location = '';
$profile->about = '';
$profile->custom_fields = [];
$profile->save();
// Set Privacy to None
$privacy = $this->user->Privacy;
$privacy->allow_view_profile = 'none';
$privacy->allow_post_profile = 'none';
$privacy->allow_receive_news_feed = 'none';
$privacy->allow_send_personal_conversation = 'none';
$privacy->allow_view_identities = 'none';
$privacy->save();
// Remove avatar
/** @var \XF\Service\User\Avatar $avatarService */
$avatarService = $this->service('XF:User\Avatar', $this->user);
$avatarService->deleteAvatar();
// Remove banner
/** @var \XF\Service\User\ProfileBanner $bannerService */
$bannerService = $this->service('XF:User\ProfileBanner', $this->user);
$bannerService->deleteBanner();
// Remove albums
$albumRepo = \XF::repository('XFMG:Album');
$albumList = $albumRepo->findAlbumsForUser($this->user);
$albums = $albumList->fetch();
foreach ($albums AS $album)
{
/** @var \XFMG\Service\Album\Deleter $deleter */
$deleter = $this->service('XFMG:Album\Deleter', $album);
$deleter->delete('soft');
}
deleted_member
followed by a space and the user id.request confirmation via email link to start the process + auto-cancel if not confirmed within x days
I think you should create a paid pro version of this addon so you can get something back from your work.I’ll look into it when I get some free time.
We use essential cookies to make this site work, and optional cookies to enhance your experience.