How can i let my registered users delete their own account from the front-end?
Take a look at this extension called Delete My Account:
It allows users to delete their own account via the frontend. There is also a feature where it notifies all admins if a user has deleted their account. Looks like a promising extension and exactly what you need. Compatible with Joomla 2.5 and 3.x
I have just tested this plugin on my localhost and it works perfectly fine.
- Install the plugin
- Enable it and in the options, set Action to be taken to delete
- You then need to place a blank with wit a specific class. You can place this link literally anywhere you want. I decided to put it in an article, simply to test. So add the following somewhere on your site:
<a href="#" class="f90-delete-my-account">Delete my account</a>
- When you click on this link in the frontend, it should load a modal box asking you to confirm that you want to delete your account.
Community Builder Profile Privacy plugin also does this, if you use Community Builder for your membership management.
Besides deleting an account, it also allows user to temporarily disable their account on front-end, so it's not active but keeps the data to reactivate later. And it includes options for administrators to allow front-end privacy controls on a field-by-field basis (e.g. force showing name & city, but allow hiding street & phone number).
To set up, install Community Builder, then add CB Privacy from the Community Builder plugin management. Make sure it's enabled, which will automatically add the disable & delete options to the bottom of the user profile.
To add privacy to specific fields, select the field, find the Privacy tab in "Integrations" section of the field editing and select the options you prefer. To leave it out for any field choose "Normal CB Settings". You can also used "Forced privacy control" to make sure a field stays private that you don't want users publishing by accident.
More info here: https://www.joomlapolis.com/addons/cb-privacy (Requires active membership to download)