Member Page Edit Question

Discussion in 'Templates customization' started by caucus, Apr 5, 2011.

  1. caucus

    caucus Member

    Joined:
    Jan 19, 2006
    Messages:
    45
    Hello

    I was wondering what template I modify to remove the tabs after the user logs in.

    At member.php there are 4 tabs

    Main Page: This I want to keep

    Add/Renew Subscription: I need to remove this I do not want anyone to edit add or renew their sub subscription.

    Your Payment History: I need to remove this I do not want anyone to edit their payment history

    Edit Profile: I need to remove this I do not want anyone to edit their profile
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    You can remove tab using this code(example for add_renew):
    TabMenu::getInstance()->remove(new TabMenu_Tab(null, null, 'add_renew'));
  3. caucus

    caucus Member

    Joined:
    Jan 19, 2006
    Messages:
    45
    Hello

    I tried what you suggested but I think I may have added more than what you wrote.

    Now I think you are saying that I do the following on the
    member_menu.inc.html

    I see this part:
    TabMenu::getInstance()

    {php}
    $tabMenu = TabMenu::getInstance();
    echo $tabMenu->render();
    {/php}

    I do not know what the following means ->


    TabMenu::getInstance()->remove(new TabMenu_Tab(null, null, 'add_renew'));
  4. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Create (or edit) a file called site.inc.php
    put this in it

    <?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'));
    ?>

    Upload to /amember/

    David
  5. evevera

    evevera Member

    Joined:
    Jul 28, 2010
    Messages:
    41
    That only gave me a php error.
  6. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    What error you get exactly?
  7. evevera

    evevera Member

    Joined:
    Jul 28, 2010
    Messages:
    41
    Fatal error: Call to undefined method TabMenu::remove() in /home/tnt/public_html/amember/site.inc.php on line 14
  8. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Possible you need updated tabs.inc.php
    Contact us in helpdesk and ask for it.

Share This Page