Remove Edit Profile Version 3

Discussion in 'Customization & add-ons' started by kenmomentum, Feb 14, 2012.

  1. kenmomentum

    kenmomentum New Member

    Joined:
    Apr 1, 2011
    Messages:
    26
    Hello Forum

    I have done this before but I cannot find how to remove the edit profile tab on the membership page.

    How do I remove the tab for "Edit Profile"

    I have removed two others using the following in mt site.inc.php
    <?php
    if (!defined('INCLUDED_AMEMBER_CONFIG'))
    die("Direct access to this location is not allowed");
    TabMenu::getInstance()->remove(new TabMenu_Tab(null, null, 'add_renew'));
    TabMenu::getInstance()->remove(new TabMenu_Tab(null, null, 'payment_history'));
    ?>

    However the edit profile is still there. I have to remove that so the admin is the only one that can edit the user.

    Of course I am going to leave the ability for the user to updater her password.

    Thanks for your help with this.
  2. kenmomentum

    kenmomentum New Member

    Joined:
    Apr 1, 2011
    Messages:
    26
    Hello

    I did get my answer and I was able to remove the the tab with the following line
    TabMenu::getInstance()->remove(new TabMenu_Tab(_TPL_PROFILE_TITLE, 'profile.php', null));

    Now How do you make so the user can only change her password?
  3. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    amember CP -> Setup -> Global -> User can change these fields

Share This Page