Support Forums - Classified Ads Script Osclass

Osclass theme support => Sigma Osclass Theme => Topic started by: Aleš Tomažič on December 02, 2022, 08:00:31 PM

Title: How to create url for deleting account
Post by: Aleš Tomažič 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
Title: Re: How to create url for deleting account
Post by: Luka93 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>
Title: Re: How to create url for deleting account
Post by: Aleš Tomažič 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  :-*
Title: Re: How to create url for deleting account
Post by: Luka93 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'); ?>
Title: Re: How to create url for deleting account
Post by: Aleš Tomažič 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.
Title: Re: How to create url for deleting account
Post by: Aleš Tomažič 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(); ?>


Title: Re: How to create url for deleting account
Post by: MB Themes on December 10, 2022, 01:54:41 PM
Correct, plugin has this feature  :)