• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Delete own account [Deleted]

wang

Well-known member
#1
wang submitted a new resource:

Delete own account - Allow users to delete their own accounts

About this add-on

This simple add-on is designed to give groups the ability to delete their own accounts based on group permissions.

Permissions
  • Delete own accounts. It can be found under the General permission set.
Once you set the permissions for groups to be able to delete their own accounts, they will see a link, Delete Account, on their visitor drop down navigation menu. The link will take them to a page where they can confirm the deletion...
Read more about this resource...
 
#8
Added it manually through account_wrapper template
adding code for link/phrase

Edit: Ultimately I created a template modification for the link.
 
Last edited:
#9
Seems like a simple thing I should be able to do but I can't get the backround color around the "delete account" to match the rest of drop down menu...is there a specific spot I can edit for just the backround of this new menu item?
upload_2016-5-11_11-39-41.png
 

wang

Well-known member
#10
That link is added at the navigation_visitor_tab template modification. But the forum must be in dev mode for that to be edited.
 

James

Well-known member
#11
What does deleting ones account do? Remove every reference to their user name/account from forums including posts threads profile posts etc? Or are posts turned to guest etc?
 

wang

Well-known member
#12
What does deleting ones account do? Remove every reference to their user name/account from forums including posts threads profile posts etc? Or are posts turned to guest etc?
They will appear as guest. It is the same thing when the admin deletes an uer from the admin panel. Only in this case, the users can delete their own accounts.
 
#13
Seems like a simple thing I should be able to do but I can't get the backround color around the "delete account" to match the rest of drop down menu...is there a specific spot I can edit for just the backround of this new menu item?
View attachment 133999
I myself am a bit confused as to the choice of default code used in template modifications.

navigation_visitor_tab current default
Code:
$0

<xen:if is="{$visitor.permissions.general.deleteOwnAccounts}">
     <li><a class="{xen:if "{$selectedKey} == 'account/deleteaccount'", 'secondaryContent', 'primaryContent'}" href="{xen:link account/delete-account}">{xen:phrase wang_delete_own_account}</a></li>
</xen:if>

Removed Class for this template as it shows in original template. This will solve background issue.
Code:
$0

<xen:if is="{$visitor.permissions.general.deleteOwnAccounts}">
     <li><a href="{xen:link account/delete-account}">{xen:phrase wang_delete_own_account}</a></li>
</xen:if>

account_wrapper
uses that class for anyone that wants to put link on sidebar of member accounts.
Code:
$0

<xen:if is="{$visitor.permissions.general.deleteOwnAccounts}">
     <li><a class="{xen:if "{$selectedKey} == 'account/deleteAccount'", 'secondaryContent', 'primaryContent'}"
href="{xen:link account/delete-account}">{xen:phrase wang_delete_own_account}</a></li>
</xen:if>
The Find: portion of template modification can place the link where desired. Hope this helps. ;)
 
#14
I myself am a bit confused as to the choice of default code used in template modifications.

navigation_visitor_tab current default
Code:
$0

<xen:if is="{$visitor.permissions.general.deleteOwnAccounts}">
     <li><a class="{xen:if "{$selectedKey} == 'account/deleteaccount'", 'secondaryContent', 'primaryContent'}" href="{xen:link account/delete-account}">{xen:phrase wang_delete_own_account}</a></li>
</xen:if>

Removed Class for this template as it shows in original template. This will solve background issue.
Code:
$0

<xen:if is="{$visitor.permissions.general.deleteOwnAccounts}">
     <li><a href="{xen:link account/delete-account}">{xen:phrase wang_delete_own_account}</a></li>
</xen:if>

account_wrapper
uses that class for anyone that wants to put link on sidebar of member accounts.
Code:
$0

<xen:if is="{$visitor.permissions.general.deleteOwnAccounts}">
     <li><a class="{xen:if "{$selectedKey} == 'account/deleteAccount'", 'secondaryContent', 'primaryContent'}"
href="{xen:link account/delete-account}">{xen:phrase wang_delete_own_account}</a></li>
</xen:if>
The Find: portion of template modification can place the link where desired. Hope this helps. ;)
perfect. Thanks!
 
#15
#16
It's make useless all plugins for troll or multi account detection. It's better to place self deleted users to custom user group and delete all private information (conversation, about, avatar and etc)
 

wang

Well-known member
#17
It's make useless all plugins for troll or multi account detection. It's better to place self deleted users to custom user group and delete all private information (conversation, about, avatar and etc)
I can develop those things that you mentioned if you are willing to fund their developement.
 

wang

Well-known member
#19
will any of there posts be deleted?
and will there posts still show there profile name or say guest?
It does not touch post deleting at all. Al it does is what it says, it adds a permission for users to delete their account.