*

max

Delete account
« on: February 07, 2016, 12:34:19 PM »
2 problem:
first very important :
pressing delete account the account is canceled without displaying your security question

second:
the traslate "Delete account" it does not happen

both are on the same string :o

look picture

thanks ;D

*

MB Themes

Re: Delete account
« Reply #1 on: February 07, 2016, 01:07:30 PM »
@max
I have tested on demo and security/confirm question is shown.
Translation should be updated.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by on Yesterday at 04:37:45 PM
*

max

  • Undo Best Answer
  • Re: Delete account
    « Reply #2 on: February 07, 2016, 01:12:56 PM »

    I have tested on demo and security/confirm question is shown....ummm I'm going to try another browser...
    Translation should be updated. what, I have to do?

    thanks see you later ;D

    *

    MB Themes

    Re: Delete account
    « Reply #3 on: February 07, 2016, 01:13:50 PM »
    @max
    Welcome, should work.
      To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

    *

    max

    Re: Delete account
    « Reply #4 on: February 07, 2016, 02:09:41 PM »
    nothing Michal not the message (you're sure....ecc) but directly your account was deleted successfully!
    I have chrome
    I have tried it with firefox
    can you give it a try? http://www.corsi-vendita-online.com/

    the translation it made directly to the file that you see after (Delete account vs Elimina account)

    it's a problem only with backoffice manager plugin (index.php)

    /* ------------------------------ User account delete link --------------------------------------*/
    function bo_delete_user() {
      $allow_delete = osc_get_preference('bo_mgr_allow_delete_user_account', 'plugin-bo_mgr') <> '' ? osc_get_preference('bo_mgr_allow_delete_user_account', 'plugin-bo_mgr') : 1;

      if($allow_delete == 1) {
        $user_id = osc_logged_user_id();
        $user = User::newInstance()->findByPrimaryKey( $user_id );

        echo '<li class="opt_del_user" 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', 'backoffice_manager') . '?\')"><a href="' . osc_base_url() . 'oc-content/plugins/backoffice_manager/delete_user.php?user_id=' . $user_id . '&secret=' . $user['s_secret'] . '">Delete account</a></li>';
      }
    }

    osc_add_hook('user_menu', 'bo_delete_user');
    /* ----------------------------------------------------------------------------------------*/

    attached

    [attachment deleted by admin]
    « Last Edit: February 07, 2016, 04:23:01 PM by max »

    *

    MB Themes

    Re: Delete account
    « Reply #5 on: February 07, 2016, 05:38:50 PM »
    @max
    I see.
    Go to file:


    Find line:
    Code: [Select]
        echo '<li class="opt_del_user" 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', 'backoffice_manager') . '?\')"><a href="' . osc_base_url() . 'oc-content/plugins/backoffice_manager/delete_user.php?user_id=' . $user_id . '&secret=' . $user['s_secret'] . '">Delete account</a></li>';
    Replace it with:
    Code: [Select]
        echo '<li class="opt_del_user"><a href="' . osc_base_url() . 'oc-content/plugins/backoffice_manager/delete_user.php?user_id=' . $user_id . '&secret=' . $user['s_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', 'backoffice_manager') . '?\')">' . __('Delete account', 'backoffice_manager') . '</a></li>';
      To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

    *

    max

    Re: Delete account
    « Reply #6 on: February 07, 2016, 06:36:42 PM »
    Code: [Select]
    /* ------------------------------ User account delete link --------------------------------------*/
    function bo_delete_user() {
      $allow_delete = osc_get_preference('bo_mgr_allow_delete_user_account', 'plugin-bo_mgr') <> '' ? osc_get_preference('bo_mgr_allow_delete_user_account', 'plugin-bo_mgr') : 1;

      if($allow_delete == 1) {
        $user_id = osc_logged_user_id();
        $user = User::newInstance()->findByPrimaryKey( $user_id );
        echo '<li class="opt_del_user"><a href="' . osc_base_url() . 'oc-content/plugins/backoffice_manager/delete_user.php?user_id=' . $user_id . '&secret=' . $user['s_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', 'backoffice_manager') . '?\')">' . __('Delete account', 'backoffice_manager') . '</a></li>';
      }
    }

    Michal still not working :o :D :D


    *

    MB Themes

    Re: Delete account
    « Reply #7 on: February 07, 2016, 06:46:26 PM »
    @max
    Then you did not do it correctly because I can see on demo everything is OK.
    We will release update next week.
      To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

    *

    max

    Re: Delete account
    « Reply #8 on: February 07, 2016, 07:05:44 PM »
    @max
    Then you did not do it correctly because I can see on demo everything is OK.
    We will release update next week.


    but before the demo works the same  ;D

    poedit updated and works "Delete account" you can see in the file, it's ok

    I try again ;D

    *

    MB Themes

    Re: Delete account
    « Reply #9 on: February 07, 2016, 07:45:28 PM »
    @max
    Backoffice Manager Plugin demo, not theme (as you do not ask about theme functionality).
      To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

    *

    max

    Re: Delete account
    « Reply #10 on: February 07, 2016, 08:53:04 PM »
    @max
    Backoffice Manager Plugin demo, not theme (as you do not ask about theme functionality).

    oh yes! I am confused! i'm sorry!
    but now I'm tired and unfortunately I do not find the solution,
    I hope you find it
    otherwise I have to turn it off
    it is too dangerous so just click to delete account
    thanks
    bye