How to create url for deleting account
« on: December 02, 2022, 08:00:31 PM »
Hi

Is it possible to create url for deleting account in user-profile.php?

I wan't to make button for deleting account, but i'm lost  :-\

Thanks

*

Luka93

  • ***
  • 55 posts
Re: How to create url for deleting account
« Reply #1 on: December 03, 2022, 10:52:06 AM »
Here you go:

Code: [Select]
<a href="/index.php?page=user&amp;action=delete&amp;id=1&amp;secret=" onclick="return confirm('Are you sure you want to delete your account? \\nNote that all your listings will be deleted too! \\n\\nWould you like to continue?')">Delete Account</a>

Re: How to create url for deleting account
« Reply #2 on: December 03, 2022, 12:52:18 PM »
Hi Luka93

With this i get warning "Oops! you can not do that"

Perhaps using a plugin "Backoffice Manager" this should work.

Thanks for help, much appreciated  :-*

*

Luka93

  • ***
  • 55 posts
Re: How to create url for deleting account
« Reply #3 on: December 05, 2022, 10:13:10 PM »
You are right, this should do it:

Code: [Select]
<?php echo osc_esc_html(__('Delete account''sigma')); ?>" style="display:none;"><?php _e('Are you sure you want to delete your account?''sigma'); ?>

Re: How to create url for deleting account
« Reply #4 on: December 06, 2022, 08:39:33 PM »
You are right, this should do it:

Code: [Select]
<?php echo osc_esc_html(__('Delete account''sigma')); ?>" style="display:none;"><?php _e('Are you sure you want to delete your account?''sigma'); ?>

Hi Luka93

I tried, still not working :-)

In upcoming days, I will buy backoffice manager and some other plugins, then it should work with this <a href="/index.php?page=user&amp;action=delete&amp;id=1&amp;secret=" onclick="return confirm('Are you sure you want to delete your account? \\nNote that all your listings will be deleted too! \\n\\nWould you like to continue?')">Delete Account</a>

Thanks for help, much appreciated.

Re: How to create url for deleting account
« Reply #5 on: December 10, 2022, 01:24:35 PM »
Hi

Today I bought "Backoffice Manager Pro" (Excellent plugin i recommend  ;))

I finally managed to create button  :-* I created custom <li.. button in

plugins -> backoffice_manager -> index.php on line 618

you can find "User account delete link".

Then I inserted in user-profile.php

Code: [Select]
<?php echo bo_delete_user(); ?>


« Last Edit: December 10, 2022, 01:33:29 PM by Aleš Tomažič »

*

MB Themes

Re: How to create url for deleting account
« Reply #6 on: December 10, 2022, 01:54:41 PM »
Correct, plugin has this feature  :)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots