Account Deletion Request

Hello :wave:

This is a theme component to add an account deletion request dropdown to the account page.

The theme component reuse Kris’s awesome code Convert the New Topic button to a have a sub menu - #7 by awesomerobot to add the dropdown. Thank you! :heart:


The dropdown only appears for users if the default Delete My Account is disappears and user can’t delete the account by clicking that button. You can hide the dropdown for staff users with
hide for staff setting.

When user can delete the account :arrow_down_small:
Screenshot 2022-11-09 at 19.53.46

When user can’t delete the account :arrow_down_small:
Screenshot 2022-11-10 at 9.46.10

Clicking on the dropdown it opens two option.

  1. More Info
  2. Account Deletion Request

Screenshot 2022-11-10 at 9.48.09

When user can’t send personal message only the More Info option appears :arrow_down_small:
Screenshot 2022-11-10 at 9.46.51


More Info
It will open a modal where you can describe what will happen if the user send an account deletion request.

Account Deletion Request
It will open the composer (personal message) with some preload texts (recipients, title and description).


There are some settings and translation.
Before you activate the theme component you have to change these…

Theme Settings

Theme Translation

24 Likes

Hi, nice idea. Could you add a config option to use anonymization instead of deletion ?

5 Likes

Hello,

Thanks :slightly_smiling_face: You can do it by simple change the translation.

2 Likes

I installed the component from the git https address, added it to currently used theme, set its settings (wrote ‘admins’ in the first customizable field).

Yet no user is able to find the button on his preferences pages ‘account’ page.

Hello, is that a staff user? Because it won’t appears to staff.

Edit: Maybe better to appear it for staff too for testing purpose… I made this change. Now it appears to staff too by default but I added a setting to hide the dropdown for staff users.

1 Like

I had impersonated as the user also. Whose screen shot was attached.

Now I’ve tested again on admin. But its not appearing.

Do I need to rebuild or something like that before it appears for staff?

It should appear below Save Changes button after you update the theme component.

FWIW It works for me :slight_smile:

Have you attached it to your active themes?

3 Likes

Hadn’t updated the component before, but now it’s updated:

Also applied the component to currently being used theme ‘Light Default’.

Then went into a user’s preferences page thru Admin (myself)'s settings page, but didn’t find the option:

Ah!!
It appears far below. Missed it altogether because its interfering with some other component.
Thank you very much.

I’m giving the screen shot of the same for future users, as to how can this be missed, because of highly bright ‘red’ color of another component:

I’m not an expert on coding even 1%. So to use this component, I’d have to turn that component off. Can you suggest/change something which could move it a bit upwards? Or guide me I can open the component code and make changes to ‘variables’. Not more that!

2 Likes

Oh ok that’s my bad. I use absolute position to put it under the Save Changes button as there is no plugin outlet on that place. I removed the absolute position to fix this now. It will appear above the Save Changes button.

Please update the theme component again.

3 Likes

Oh! You’re great.
Thanks! Otherwise I’d have to choose one of the 2 components.


Now I can use both. Thanks.

P.S. I hope this component button won’t interfere/intercept the default ‘Account Deletion’ button, that is supposed to appear on those user’s pages, which don’t have any posts created by them.

1 Like

Nope, it won’t appear for users when the default Delete My Account button active.

4 Likes

How does this work for users who don’t have permissions to send PMs? For us PM-ing starts at TL2.

That’s covered in the start post

3 Likes

Thanks! One more question: how do I get linebreaks into my modal description? Because right now I’ve got this:

1 Like

have you tried the html <br> line break yet?

2 Likes

I’m going through, setting up the Account Deletion Request theme component settings.

I updated about 5 different fields, and then noticed the save/cancel buttons next to each field. So I hit the one closest to the mouse… and the whole page refreshed - losing all my other edits. :cry:

If you’re going to make me do this on a field level, it should work on a field level. If you’re going to refresh the entire page, then I should have one set of buttons for the entire page.

This is the worse of both worlds. :cry:

6 Likes

This is true for all of the fields specifically in the account deletion request theme component.

Might want to move this request to be a comment under the account deletion request theme component page?

2 Likes

I moved this topic to the account deletion request theme component… although, when I pull that component locally, I can’t reproduce the issue.

Do you have a consistent repro here @ganncamp?