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

Delete own account 1.0

Allow users to delete their own accounts

  1. wang

    wang Well-Known Member

    wang submitted a new resource:

    Delete own account - Allow users to delete their own accounts

    Read more about this resource...
     
    Brick likes this.
  2. Brick

    Brick Member

    Is there any type a grace period for users to confirm or disregard?
    Alerts to staff?
     
  3. wang

    wang Well-Known Member

    No sir, there is not. What you see at the screenshots and description is what you get.
     
  4. Brick

    Brick Member

    Ok, simple and to the point. Thanks for prompt reply. (y)
     
  5. wang

    wang Well-Known Member

    No problem sir :)
     
  6. reddy ink

    reddy ink Active Member

  7. Brick

    Brick Member

    Last edited: May 10, 2016
    davs likes this.
  8. Brick

    Brick Member

    Added it manually through account_wrapper template
    adding code for link/phrase

    Edit: Ultimately I created a template modification for the link.
     
    Last edited: May 10, 2016
  9. davs

    davs Member

    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
     
  10. wang

    wang Well-Known Member

    That link is added at the navigation_visitor_tab template modification. But the forum must be in dev mode for that to be edited.
     
    davs likes this.
  11. James

    James Well-Known Member

    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?
     
    jauburn likes this.
  12. wang

    wang Well-Known Member

    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.
     
    James likes this.
  13. Brick

    Brick Member

    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. ;)
     
    davs and wang like this.
  14. davs

    davs Member

    perfect. Thanks!
     
  15. Brick

    Brick Member

    wang likes this.
  16. Azaly

    Azaly Member

    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)
     
  17. wang

    wang Well-Known Member

    I can develop those things that you mentioned if you are willing to fund their developement.
     
  18. Sam F

    Sam F Active Member

    will any of there posts be deleted?
    and will there posts still show there profile name or say guest?
     
  19. wang

    wang Well-Known Member

    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.
     

Share This Page