Difference between revisions of "Deleting Profile"

(I want my users to be automatically deleted, without admin action)
(Overwiew)
Line 1: Line 1:
==Overwiew==
+
==Overview==
As a site admin, you can allow users to ''delete'' their user account. This action however, requires Administrator action, because in Joomla environment, only the site admin can delete user completely. Joomla! dont have the Front end facilities to allow such action, therefore when user ''delete'' account, it is actually only blocked, waiting for admin to complete the deletion process.
+
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===
+
===Enabling the Option===
Navigate to the site backend and from '''Components''' dropdown menu select '''JomSocial''' then '''Configuration'''<br/>
+
Navigate to the site Backend.
Under '''Site''' pane, you will see the settings regarding registration. and in it, '''Allow Profile Deletion''' option, which is enabled by default
+
From the '''Components''' dropdown menu, select '''JomSocial''', then '''Configuration'''
 +
Under the '''Site''' pane, you will see the settings regarding registration and in it, the '''Allow Profile Deletion''' option, which is enabled by default.<br/>
  
[[File:Deleteprofileoption.png]]
+
[[File:Deleteprofileoption.png]]<br/><br/>
  
This will allow the users to have additional option in the edit profile field, to delete their user account.
+
This will allow the users to have the additional option in the edit profile field to delete their user account.
  
 
[[File:Deleteprofilefrontend.png]]
 
[[File:Deleteprofilefrontend.png]]
===Deleting Account===
 
The action must be initiated and confirmed by user itself by clicking on the option displayed in above picture, and then confirming the deletion by clicking on the '''Yes delete my profile'''
 
  
[[File:Deletefinish.png]]
+
===Deleting an Account===
  
After clicking on the '''Yes, delete my profile''' the user will be automatically blocked (not deleted) and logged out from site with no ability to login back again.<br/>
+
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/>
The email will be sent to site admin, notifying them about user request to delete profile.
+
 
 +
[[File:Deletefinish.png]]<br/><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.
  
 
==I want my users to be automatically deleted, without admin action==
 
==I want my users to be automatically deleted, without admin action==

Revision as of 07:29, 8 March 2013

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

Navigate to the site Backend.
From the Components dropdown menu, select JomSocial, then Configuration
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 an Account

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.

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.

I want my users to be automatically deleted, without admin action

This is not possible in Joomla environment. As mentioned at the begining of this tutorial, Joomla! does not have any Front End facilities to accommodate such action. Since jomSocial relies on Joomla User Object, it is impossible for us to delete the user account from the Front End of the site.
Another things also stops us from implementing this feature. Those are hooks that are triggered when user is deleted
These hooks are triggered only in backend, and are used in JomSocial User Plugin to delete all the trails from deleted user.