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
-
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
-
Here you go:
<a href="/index.php?page=user&action=delete&id=1&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>
-
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 :-*
-
You are right, this should do it:
<?php echo osc_esc_html(__('Delete account', 'sigma')); ?>" style="display:none;"><?php _e('Are you sure you want to delete your account?', 'sigma'); ?>
-
You are right, this should do it:
<?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&action=delete&id=1&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.
-
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
<?php echo bo_delete_user(); ?>
-
Correct, plugin has this feature :)