Difference between revisions of "Deleting Profile"

(Deleting a Profile)
Line 18: Line 18:
 
===Deleting a Profile===
 
===Deleting a Profile===
  
This action must be initiated and confirmed by the user only, by clicking on the option displayed in above the picture, and then confirming the deletion by clicking '''Yes, delete my profile'''.<br/>
+
This action must be initiated and confirmed by the user only, by clicking on the option displayed in above the picture, and then confirm the deletion by clicking '''Yes, delete my profile'''.<br/>
  
 
::: [[File:Deletefinish.png]]<br/><br/>
 
::: [[File:Deletefinish.png]]<br/><br/>
Line 24: Line 24:
 
After clicking '''Yes, delete my profile''', the user will automatically be blocked (not deleted) and logged out from site with no ability to log back in again.<br/>
 
After clicking '''Yes, delete my profile''', the user will automatically be blocked (not deleted) and logged out from site with no ability to log back in again.<br/>
 
The email will be sent to the site Admin, notifying the Admin about the user's request to delete his/her profile.
 
The email will be sent to the site Admin, notifying the Admin about the user's request to delete his/her profile.
 +
 +
 +
NOTE: FROM Jomsocial 4.5.4 this option is changed, Now User can delete his community profile data like a stream, message, photos, video etc and his account will not be unpublished.
  
 
===Automatic Profile Deletion===
 
===Automatic Profile Deletion===

Revision as of 07:57, 15 June 2018

Alert-warning.png

This page is obsolete
This article is written for older versions of JomSocial. While chances are that is still valid, It could contain images and information that are not. Are you interested in helping us making best documented Joomla! extension in the world and improve this article? Then click here to find out how.


Overview

As a site Admin, you can allow users to delete their user accounts. This action, however, requires Administrator action because in the Joomla environment, only the site Admin can delete a user completely. Joomla doesn't have the Frontend capabilities to allow such actions; therefore, when a user '"deletes" an account, it is actually only blocked, waiting for an Admin to complete the deletion process.

Enabling the Option

  1. Navigate to the site Backend.
  2. From the Components dropdown menu, select JomSocial, then Configuration
  3. Under the Site pane, you will see the settings regarding registration and in it, the Allow Profile Deletion option, which is enabled by default.
Deleteprofileoption.png

This will allow the users to have the additional option in the edit profile field to delete their user account.

Deleteprofilefrontend.png

Deleting a Profile

This action must be initiated and confirmed by the user only, by clicking on the option displayed in above the picture, and then confirm the deletion by clicking Yes, delete my profile.

Deletefinish.png

After clicking Yes, delete my profile, the user will automatically be blocked (not deleted) and logged out from site with no ability to log back in again.
The email will be sent to the site Admin, notifying the Admin about the user's request to delete his/her profile.


NOTE: FROM Jomsocial 4.5.4 this option is changed, Now User can delete his community profile data like a stream, message, photos, video etc and his account will not be unpublished.

Automatic Profile Deletion

This is not possible in the Joomla environment. As mentioned at the beginning of this tutorial, Joomla does not have any Frontend facilities to accommodate such an action. Since JomSocial relies on the Joomla User Object, it is impossible for us to delete the user account from the Frontend of the site.

One of the other issues that also prevents us from implementing this feature include: hooks that are triggered when user is deleted. These hooks are only triggered in the Backend and are used in the JomSocial User Plugin to delete all the associated data from the deleted user.