1
deka87
Delete account buttom
  • 2009/10/16 5:28

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


hi guys, my users have problems deleting their own account. the button just won't work.

the user delete account button looks like this:

<input type="button" value="<{$lang_deleteaccount}>" onClick="location='edituser.php?op=delete'" />

the admin delete user account button looks like this

<input type="button" value="<{$lang_deleteaccount}>" onClick="location='<{$xoops_url}>/modules/profile/admin/user.php?op=delete&amp;id=<{$user_uid}>'" />

is it alright if i replace user delete account button with the admin delete account button?


2
ghia
Re: Delete account buttom
  • 2009/10/16 8:09

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Seems your template is wrong:
<input type="button" value="<{$lang_deleteaccount}>" onclick="location='user.php?op=delete'" />

(Allowing users to delete their account can attract SPAM, because their posts stay after deleting the account and you have no means of blocking them.)

3
deka87
Re: Delete account buttom
  • 2009/10/16 11:38

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


thansk ghia.